[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: kadmin: kadm5_create_principa: ldap_add_s: Can't contact LDAP server



Hi,

Lara Adianto <m1r4cle_26@yahoo.com> writes:

> Hello,
>
> I have a problem of using ldap as the backend of
> Heimdal.
> I've followed the instructions given in PADL
> Documentation, but I still get "Can't connect to
> server" when trying to initialize a new REALM in
> Heimdal using kadmin.
>
> By turning on the debug mode, I can see that the
> database is opened:
> --snip--
> slapd startup: initiated.
> bdb_db_open: ou=KPrincipals,dc=laras,dc=com
> bdb_db_open: dbenv_open(/var/lib/ldap)
> slapd starting
> --snip--
>
> but running this returns me error:
> [root@localhost libexec]# ldapsearch -H 'ldapi:///'
> ldap_sasl_interactive_bind_s: Can't contact LDAP
> server (81)

Three questions:
1. did you start slapd -h ldapi:/// ?
2. Is the socket ldapi world executable, that is set to mod 777?
3. are ldapsearch and slapd of the same version? 

If all three questions can be answered 'yes' than add the escaped path
to the uri, that is ldapsearch -H ldapi://%2Fsome%2Fpath

-Dieter

-- 
Dieter Kluenter  | Systemberatung
Tel:040.64861967 | Fax: 040.64891521
mailto: dkluenter(at)dkluenter.de
http://www.avci.de