[CentOS] Problem with first login

Alexander Dalloz ad+lists at uni-x.org
Mon Apr 19 09:24:24 UTC 2010


> Hi , guys:
>
>     I have a problem  on the openldap Manager account login :

>     rootdn         "cn=Manager,dc=my-domain,dc=com"

>    If I do the following command...
>
>     ldapsearch -x -D "cn=Manager,dc=my-domain,dc=com" -W
>
>    from the command line it asks for a password.
>
>    If  I type the password I created with slapppassd and have as rootpw in
> slapd.conf it carries on and returns the following (with comments
> removed)...
>
>    search: 2
>    result: 32 No such object
>
>    So it appears that from the command line authentication with ldap is
> working.
>
>    In my phpldapadmin config.php file i've modified the following lines...
>   $ldapservers->SetValue($i,'server','host','127.0.0.1');
>    $ldapservers->SetValue($i,'server','port','389');
>   $ldapservers->SetValue($i,'server','auth_type','session');

>    If I try and login with user "Manager" and the password I use on the
> command line, it doesn't work giving me... "Bad username or password.
> Please try again."

Your login user is "cn=Manager,dc=my-domain,dc=com", not just "Manager".

Alexander






More information about the CentOS mailing list