Hi,
root@fbsd [7:26pm] [...cyrus-sasl-2.1.18/sample]# klist Credentials cache: FILE:/tmp/krb5cc_0 Principal: sam@ROCK.COM
Thanks sam
The Shell wrote:
Hi,
I finally got GSSAPI compiled with SASL, but error occured when testing the sample client and server.
The klist command of Heimdal Kerberos 5 shown the following priciples:
root@fbsd [5:13pm] [...cyrus-sasl-2.1.18/sample]# klist
Credentials cache: FILE:/tmp/krb5cc_0
Principal: sam@ROCK.COM
Issued Expires Principal Jun 3 17:17:53 Jun 3 23:57:53 krbtgt/ROCK.COM@ROCK.COM Jun 3 17:18:53 Jun 3 23:57:53 host/fbsd.rock.com@ROCK.COM
root@fbsd [5:31pm] [...cyrus-sasl-2.1.18/sample]#
Message from the sample server::
./sample-server -s host -p ../plugins/.libs
.......
got 'GSSAPI'
Sending response...
S: YGwGCSqGSIb3EgECAgIAb10wW6ADAgEFoQMCAQ+iTzBNoAMCARCiRgREAEQM3hY7ovvFlIeYJwJOZzxv+NwWaQnhoHi6007SbsVDMiJfeHZpYU/PHelUTE6CwS46H8N10ObrvAAwKDzXXb2nIh0=
Waiting for client reply... ^C root@fbsd [5:22pm] [...cyrus-sasl-2.1.18/sample]#
Message from sample client:
./sample-client -s host -n fbsd.rock.com -u root -p ../plugins/.libs
.....
C:
Waiting for server reply...
S: YGwGCSqGSIb3EgECAgIAb10wW6ADAgEFoQMCAQ+iTzBNoAMCARCiRgREAEQM3hY7ovvFlIeYJwJOZzxv+NwWaQnhoHi6007SbsVDMiJfeHZpYU/PHelUTE6CwS46H8N10ObrvAAwKDzXXb2nIh0=
recieved 110 byte message
lt-sample-client: SASL Other: GSSAPI Error: A token was invalid (Unknown error: 0)
lt-sample-client: Performing SASL negotiation: generic failure
root@fbsd [5:21pm] [...cyrus-sasl-2.1.18/sample]#
I m using the latest version of Cyrus-sasl, Heimdal Kerberos in FreeBSD 5.2.1
thanks
sam
eBSD4.9, the slave is openldap-2.1.22 on RH-7.3.
So, it looks like the master is sending ldifs via slurpd to the slave, and the slave is refusing to make the modifications, possibly due to a hardcoded schema.
The slurpd reject file looks like this:
ERROR: entryCSN: no user modification allowed replica: ldap:0 time: 1086269077.0 dn: uid=myuser,ou=radius,dc=mydomain,dc=com changetype: modify replace: userPassword userPassword:: ******** - replace: entryCSN entryCSN: 2004060313:24:37Z#0x0001#0#0000 - replace: modifiersName modifiersName: uid=myadmin,dc=mydomain,dc=com - replace: modifyTimestamp modifyTimestamp: 20040603132437Z
slurpd shows:
Initializing session to ldap:0
bind to ldap:0 as uid=myadmin,dc=mydomain,dc=com (simple)
request 1 done
replica ldap:0 - modify dn "uid=myuser,ou=radius,dc=mydomain,dc=com"
request 2 done
Error: ldap_modify_s failed modifying "entryCSN: no user modification allowed": uid=myuser,ou=radius,dc=domain,dc=com
Error: ldap operation failed, data written to "/var/db/openldap-slurp/replica/ldap:0.rej"
Have I missed something? Is it obvious what's wrong?
Thanks,
Gavin