Home › Forums › OS X Server and Client Discussion › Questions and Answers › LDAP Tools?
- This topic has 4 replies, 2 voices, and was last updated 17 years, 4 months ago by
mosx86.
-
AuthorPosts
-
December 11, 2007 at 5:32 pm #370765
mosx86
ParticipantDoes anyone know of a good tutorial on using tools such as slapcat, etc… to manage, repair and backup an ldap directory?
December 11, 2007 at 10:49 pm #370775mosx86
Participant[QUOTE][u]Quote by: MacTroll[/u][p]You have some specific action in mind?[/p][/QUOTE]
Above wanting to wrap my head around the ldap toolset better, I’m looking into an issue where our OD replica does not fail over should our OD master become unavailable. I don’t see any errors in the replication logs, but I do see an error via ServerAdmin for slurpd. I’ve been reading some discussions on slapcat failing in 10.4 <http://lists.apple.com/archives/Macos-x-server/2006/Aug/msg01055.html> and am wondering if it may be related.
We’re running 10.4.9 Server on both the master and replica.
December 12, 2007 at 9:07 pm #370788mosx86
Participant[QUOTE][u]Quote by: MacTroll[/u][p]The man pages and openldap.org is probably where I would start.
The O’Reilly book on LDAP isn’t a bad overview, although it doesn’t get very advanced.
Having said that I don’t think your problem has much to do with LDAP.
To ensure that you can slapcat both databases and then diff the outputs. As far as slapcat being broken, that’s specifically around using SSL certs that require a password IIRC.
For your failover issues I’d start looking at the OD client config record in cn=config in the LDAP db and making sure that it lists the master and the replicas correctly.
After that I would do a tcpdump from a client and then pull the cable on the master. See what happens.[/p][/QUOTE]
Thanks for the starting points…
One thing I forgot to add, is that the replica functions properly while the master is online and will authn/authz just fine. Only when the master goes down does the replica fail.
Here is my ldap entry for the replica (IPs obfuscated):
dn: cn=ldapreplicas,cn=config,dc=xxxx,dc=yyy,dc=zzz
cn: ldapreplicas
apple-ldap-replica: ldap://ODmaster.IP
apple-ldap-replica: ldap://ODrep.IP
apple-ldap-writable-replica: ldap://ODmaster.IP
objectClass: apple-configuration
objectClass: topHere it is in dscl:
apple-ldap-replica: ldap://ODmaster.IP ldap://ODrep.IP
apple-ldap-writable-replica: ldap://ODmaster.IP
cn: ldapreplicas
objectClass: apple-configuration top
AppleMetaNodeLocation: /LDAPv3/FQHN.OD.master
LDAPReadReplicas: ldap://ODmaster.IP ldap://ODrep.IP
LDAPWriteReplicas: ldap://ODmaster.IP
PasswordPlus: ********
RecordName: ldapreplicas
RecordType: dsRecTypeStandard:ConfigI’ll take a look at slapcat’ng both the master and replica after hours. Thanks again…
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed