[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
olcAuthzRegexp not matching
- To: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Subject: olcAuthzRegexp not matching
- From: Brendan Kearney <bpk678@gmail.com>
- Date: Wed, 06 May 2015 11:55:13 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=3xu9M0KH+fdw0nmcfVc7i2hCoWkljx+aPn2EJEmHUMk=; b=oOPWSApUo/1e10Y8B5yTUhz41qa65y2syMr48BkmnYjUUaIJQaoYiiH4OQwc0YtLgQ hLwJKX8v0OxYJH2JRAJmJcQVfssN+6l5Xi5LUCKV6Kb58vQu2mb1kz4kHjzlRMs3tVDl JlhesBW4NSUrhEnJABiwhO4zBPTVL9F42Zf4nPKRh4jrLdafixNpS223lg4dmcYDnXu9 ytfj39XGhX3jV/+pLjTeu7ehi6LVSqjHfJCmwblu1bJtHDRCM16wgyCJe1jGfIBh1VxP Tw0QBZ8iPic9QrXdwl8mTbdMLTUuID+snhfHV+pgl0XCRpWaF2p7h472sjV24DAvOqUp VbEA==
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
i am trying to get kerberos id <--> ldap object mapping down for
dovecot, and seem to have hit a wall.
i have the kerberos service principal created and a keytab populated. i
can successfully kinit using the keytab and get a TGT for the
imap/test.bpk2.com@BPK2.COM id. when i run ldapwhoami i get:
SASL/GSSAPI authentication started
SASL username: imap/test.bpk2.com@BPK2.COM
SASL SSF: 56
SASL data security layer installed.
dn:uid=imap/test.bpk2.com,ou=domainusers,ou=users,dc=bpk2,dc=com
the olcAuthzRegexp i am trying to use is not matching and the mapping
falls through to the regular user mappings. i have tried all the
permutations i can thing of in the RegEx, but cannot get the match to occur.
as a reference, i looked at the matching i do for the computer accounts,
and there is nothing obviously wrong.
olcAuthzRegexp attempts:
{2}uid=imap\/(.*).bpk2.com,cn=bpk2.com,cn=gssapi,cn=auth
uid=mda,ou=processUsers,ou=Users,dc=bpk2,dc=com
{2}uid=imap\/(.*),cn=bpk2.com,cn=gssapi,cn=auth
uid=mda,ou=processUsers,ou=Users,dc=bpk2,dc=com
{2}uid=imap\/(.*),cn=gssapi,cn=auth
uid=mda,ou=processUsers,ou=Users,dc=bpk2,dc=com
{2}uid=imap\/(.*),cn=auth uid=mda,ou=processUsers,ou=Users,dc=bpk2,dc=com
klist output:
Ticket cache: KEYRING:persistent:0:0
Default principal: imap/test.bpk2.com@BPK2.COM
Valid starting Expires Service principal
05/06/2015 11:42:08 05/07/2015 11:40:16 ldap/server2.bpk2.com@BPK2.COM
renew until 05/13/2015 11:40:16
05/06/2015 11:40:16 05/07/2015 11:40:16 ldap/server1.bpk2.com@BPK2.COM
renew until 05/13/2015 11:40:16
05/06/2015 11:40:16 05/07/2015 11:40:16 krbtgt/BPK2.COM@BPK2.COM
renew until 05/13/2015 11:40:16
how do i find what i am doing wrong? note the below olcAuthzRegexp
works to map hosts to computer accounts:
{0}uid=host\/(.*).bpk2.com,cn=bpk2.com,cn=gssapi,cn=auth
cn=$1,ou=Computers,dc=bpk2,dc=com
thanks,
brendan