Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an LDAP user with this schema:

dn: uid=portal,ou=Special Accounts,dc=example,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
sn: portal
cn: portal
uid: portal

Can anyone tell me why this would work:

ldapwhoami -h yorktown -U portal

but this:

ldapwhoami -h yorktown -D "uid=portal,ou=Special Accounts,dc=example,dc=com"

results in

ldap_sasl_interactive_bind_s: Invalid credentials (49)
        additional info: SASL(-13): user not found: no secret in database
share|improve this question
What's your sasl-regexp in slapd.conf (if you have one)? What SASL authentication mechanism are you using? – Mark Wagner Mar 2 '11 at 23:19
up vote 0 down vote accepted

I guess -D is for simple authentication and -U is only for SASL. When I do ldapwhoami -h yorktown -D "uid=portal,ou=Special Accounts,dc=example,dc=com" -x it works fine.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.