gokul nath wrote:
> Dear sir,
>
> i have found something peculiar here. i having my
> samba-ldap as my primary domain controller. Now when i
> try to send a mail using
>
>
> echo "to: [EMAIL PROTECTED]" |
> /var/qmail/bin/qmail-inject
>
> tail /var/qmail/log/qmail/current | tai64nlocal
>
> i get unable to login to ldap server, bad
> credentials.
>
> I am using openldap server
> i have found that the rootdn is
> cn=Manager,dc=sun,dc=ad
^^
how come, it's "ad" here? You wrote "sf" below.
>
> I have given the same in ldaplogin file in
> /var/qmail/control/ldaplogin
>
> Now i tried pulling the details using the ldapsearch
> command
>
> ldapsearch -x -b "dc=sbs,dc=sf" "(ou=users)" dn
>
> i get the all the users listed
>
> Now when i try to pull the details with this command
>
> ldapsearch -x -b "cn=Manager,dc=sbs,dc=sf"
> "(ou=users)" dn
>
> Ldap doesnt pull the details.
With -b, you specify the basedn. Do you have all your users below
"cn=Manager,dc=sbs,dc=sf"? I thought, they are at
"ou=users,dc=sbs,dc=sf" and the dn above is just your root-dn, like your
LDAP-"username".
>
> I guess that it is because of the cn=Manager i'm not
> able to login to the server.
doesn't look like that to me. Have a look at the file
/var/qmail/control/ldapbasedn, and check if your basedn is set correctly
and if the permissions are right.
You can also try
qmail-ldaplookup -u UID
UID refers to the ldap attribute "uid", use whatever you specified there
(probably either your whole e-mail address or just the part before the @
-sign).
Philipp
Philip