krb5-libs 1.2.5 openldap 2.2.15 cyrus-sasl 2.1.10 (will be upgrading to latest stable releases this summer)
Thank you!
testsaslauthd successful:
./testsaslauthd -u user -p password 0: OK "Success."
Simple Bind is not working:
SASL bind is working correctly:
ldapsearch -s sub -b "ou=People,dc=example,dc=com" -u "uid=username" SASL/GSSAPI authentication started SASL username: username@REALM.EXAMPLE.COM SASL SSF: 56 SASL installing layers # extended LDIF # # LDAPv3 # base <ou=People,dc=example,dc=com> with scope sub # filter: uid=username # requesting: ALL #
# username, People, example.com
dn: uid=username,ou=People,dc=example,dc=com
objectClass: krb5Principal
uid: username
cn: User Name
sn: Name
mail: username@example.com
krb5PrincipalName: username@REALM.EXAMPLE.COM
userPassword: {SASL}username@REALM.EXAMPLE.COM
ldapwhoami SASL/GSSAPI authentication started SASL username: username@REALM.EXAMPLE.COM SASL SSF: 56 SASL installing layers dn:uid=username,ou=people,dc=example,dc=com
************************* local configuration files ************************* /usr/local/lib/sasl2/slapd.conf pwcheck_method: saslauthd mech_list: gssapi plain login saslauthd_path: /var/state/saslauthd/mux keytab: /usr/local/var/krb5kdc/ldap.keytab
/usr/local/etc/saslauthd.conf ldap_servers: ldap://127.0.0.1/ ldap_bind_dn: <proxy user DN> ldap_bind_pw: <proxy user password> ldap_auth_method: fastbind ldap_search_base: dc=example,dc=com
/usr/local/etc/openldap/slapd.conf (excerpts from)
#SASL configuration
sasl-realm REALM.EXAMPLE.COM
sasl-host ldap.example.com
sasl-secprops noanonymous
sasl-regexp
uid=(.*),cn=realm.example.com,cn=(.*),cn=auth
ldap:///ou=People,dc=example,dc=com??sub?(userPassword=\{SASL\}$1@REALM.EXAMPLE.COM)
#Access Lists
access to attr=userPassword
by dn="cn=Manager,dc=example,dc=com" write
by dn="uid=ldapadm.+\+(realm=REALM\.EXAMPLE\.COM)" write
by anonymous auth
by * noneaccess to *
by dn="cn=Manager,dc=example,dc=com" write
by dn="uid=ldapadm.+\+(realm=REALM\.EXAMPLE\.COM)" write
by * readldapsearch - simple bind - with debug level "-1"
** Outstanding Requests:
* msgid 1, origid 1, status InProgress
outstanding referrals 0, parent count 0
** Response Queue:
Empty
ldap_chkResponseList for msgid=1, all=1
ldap_chkResponseList returns NULL
ldap_int_select
read1msg: msgid 1, all 1
ber_get_next
ldap_read: want=8, got=8
0000: 30 0c 02 01 01 61 07 0a 0....a..
ldap_read: want=6, got=6
0000: 01 31 04 00 04 00 .1....
ber_get_next: tag 0x30 len 12 contents:
ber_dump: buf=0x080889e8 ptr=0x080889e8 end=0x080889f4 len=12
0000: 02 01 01 61 07 0a 01 31 04 00 04 00 ...a...1....
ldap_read: message type bind msgid 1, original id 1
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x080889e8 ptr=0x080889eb end=0x080889f4 len=9
0000: 61 07 0a 01 31 04 00 04 00 a...1....
read1msg: 0 new referrals
read1msg: mark request completed, id = 1
request 1 done
res_errno: 0, res_error: <>, res_matched: <>
ldap_free_request (origid 1, msgid 1)
ldap_free_connection
ldap_free_connection: refcnt 1
ldap_parse_result
ber_scanf fmt ({iaa) ber:
ber_dump: buf=0x080889e8 ptr=0x080889eb end=0x080889f4 len=9
0000: 61 07 0a 01 31 04 00 04 00 a...1....
ber_scanf fmt (}) ber:
ber_dump: buf=0x080889e8 ptr=0x080889f4 end=0x080889f4 len=0ldap_msgfree ldap_perror ldap_bind: Invalid credentials (49)
-- Karen R. McArthur <kmcarthu@bates.edu> Systems Administrator Information and Library Services, Bates College Lewiston, Maine 04240 ph:(207) 786-8236 fax:(207) 786-6057
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature