Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.