We're using the stock ldapsearch command that comes with RHN,
I believe it's from openldap. Here's a command log
[06/Mar/2014:16:55:18 -0500] conn=1387
fd=64 slot=64 connection from 192.168.232.4 to 192.168.232.4
[06/Mar/2014:16:55:18 -0500] conn=1387
op=0 BIND dn="" method=sasl version=3 mech=GSSAPI
[06/Mar/2014:16:55:18 -0500] conn=1387
op=0 RESULT err=14 tag=97 nentries=0 etime=0, SASL bind in
progress
[06/Mar/2014:16:55:18 -0500] conn=1387
op=1 BIND dn="" method=sasl version=3 mech=GSSAPI
[06/Mar/2014:16:55:18 -0500] conn=1387
op=1 RESULT err=14 tag=97 nentries=0 etime=0, SASL bind in
progress
[06/Mar/2014:16:55:18 -0500] conn=1387
op=2 BIND dn="" method=sasl version=3 mech=GSSAPI
[06/Mar/2014:16:55:18 -0500] conn=1387
op=2 RESULT err=0 tag=97 nentries=0
etime=0 dn="uid=usera,ou=accounts,ou=gtaccounts,ou=departments,dc=gted,dc=gatech,dc=edu"
[06/Mar/2014:16:55:18 -0500] conn=1387
op=3 SRCH base="" scope=0 filter="(objectClass=*)" attrs=ALL
[06/Mar/2014:16:55:18 -0500] conn=1387
op=3 RESULT err=0 tag=101 nentries=1 etime=0
[06/Mar/2014:16:55:18 -0500] conn=1387
op=4 UNBIND
[06/Mar/2014:16:55:18 -0500] conn=1387
op=4 fd=64 closed - U1
[06/Mar/2014:16:55:25 -0500] conn=1388
fd=64 slot=64 connection from 192.168.232.4 to 192.168.232.4
[06/Mar/2014:16:55:25 -0500] conn=1388
op=0 BIND dn="" method=sasl version=3 mech=GSSAPI
[06/Mar/2014:16:55:25 -0500] conn=1388
op=0 RESULT err=14 tag=97 nentries=0 etime=0, SASL bind in
progress
[06/Mar/2014:16:55:25 -0500] conn=1388
op=1 BIND dn="" method=sasl version=3 mech=GSSAPI
[06/Mar/2014:16:55:25 -0500] conn=1388
op=1 RESULT err=14 tag=97 nentries=0 etime=0, SASL bind in
progress
[06/Mar/2014:16:55:25 -0500] conn=1388
op=2 BIND dn="" method=sasl version=3 mech=GSSAPI
[06/Mar/2014:16:55:25 -0500] conn=1388
op=2 RESULT err=0 tag=97 nentries=0
etime=0 dn="uid=userb,ou=accounts,ou=gtaccounts,ou=departments,dc=gted,dc=gatech,dc=edu"
[06/Mar/2014:16:55:25 -0500] conn=1388
op=3 SRCH base="" scope=0 filter="(objectClass=*)" attrs=ALL
[06/Mar/2014:16:55:25 -0500] conn=1388
op=3 RESULT err=0 tag=101 nentries=1 etime=0
[06/Mar/2014:16:55:25 -0500] conn=1388
op=4 UNBIND
[06/Mar/2014:16:55:25 -0500] conn=1388
op=4 fd=64 closed - U1
The issue is that if we do the ldapsearch without specifying
an authzid (the "-X" option to ldapsearch), the bind correctly
binds to DN that maps to the Kerberos principal name. However,
if we specify an authzid that's different than what we kinitted
to, the directory server binds to the DN that maps to that
authzid even though we don't have the credentials for that user.
It uses usera's credentials to bind to userb's DN.
My question is, is there a configuration setting somewhere
that would make the directory server ignore any passed in
authzid when using GSSAPI and just use what's in the credential
cache?