Problem
So i have been having issues with Apple Open Directory on OS X mavericks 10.9.2, Issues that range from computers losing their bindings and not applying login scripts to complete inability to reimage machines with Deploystudio.Errors
After getting a error message's such as.
Error: Connection failed to the directory server. (2100)
orDS Error: -14006(eDSCannotAccessSession) LDAPv3/zeta.curric.lhsc.edu.vic.gov.au node is unavailable, new attempt in 10 seconds
or the Ip address of the open directory server is missing in Server Under the Open Directory Tab.
Diagnostic
After Running this command from the command line on Open Directory Server we get some clues on where to look for what is going on.$sudo serveradmin settings dirserv
dirserv:treeConfiguration:odTree:_array_index:0:PrimaryMaster = "zeta.curric.lhsc.edu.vic.gov.au"
dirserv:treeConfiguration:odTree:_array_index:0:IPaddresses = _empty_array
dirserv:treeConfiguration:odTree:_array_index:0:GUID = "369E6792-929E-467C-8311-187D6B371315"
dirserv:treeConfiguration:odTree:_array_index:0:ReplicaName = "Master"
dirserv:treeConfiguration:odTree:_array_index:0:treeSource = "PrimaryMaster"
dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:0:IPaddresses = _empty_array
dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:0:GUID = "369E6792-929E-467C-8311-187D6B371315"
dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:0:ReplicaName = "zeta.curric.lhsc.edu.vic.gov.au"
dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:0:Replicas:_array_index:0:GUID = "E3BFD0E9-07A3-452C-ABBE-43169C6FF597"
dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:0:Replicas:_array_index:0:ReplicaName = "geta.curric.lhsc.edu.vic.gov.au"
dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:1:IPaddresses:_array_index:0 = "10.129.64.123"
dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:1:GUID = "E3BFD0E9-07A3-452C-ABBE-43169C6FF597"
dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:1:ReplicaName = "geta.curric.lhsc.edu.vic.gov.au"
dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:1:Replicas:_array_index:0:GUID = "369E6792-929E-467C-8311-187D6B371315"
dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:1:Replicas:_array_index:0:ReplicaName = "zeta.curric.lhsc.edu.vic.gov.au"
Fix
I have highlighted the thing that immediately stands out as not quite right. Where are the ip addresses of the OD Master. So after much faffing around with google and everyone saying it is a DNS issue and telling people to backup there LDAP database and restore it on a newly built server. The solution to this is simply to go into network settings and change your ip address to something else. i change my one from x.x.x.111 to x.x.x.180 and then back again and lo and behold it is fixed. dirserv:treeConfiguration:odTree:_array_index:0:PrimaryMaster = "zeta.curric.lhsc.edu.vic.gov.au" dirserv:treeConfiguration:odTree:_array_index:0:IPaddresses = "x.x.x.111"
dirserv:treeConfiguration:odTree:_array_index:0:GUID = "369E6792-929E-467C-8311-187D6B371315" dirserv:treeConfiguration:odTree:_array_index:0:ReplicaName = "Master" dirserv:treeConfiguration:odTree:_array_index:0:treeSource = "PrimaryMaster" dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:0:IPaddresses= "x.x.x.111"
dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:0:GUID = "369E6792-929E-467C-8311-187D6B371315"
dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:0:ReplicaName = "zeta.curric.lhsc.edu.vic.gov.au" dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:0:Replicas:_array_index:0:GUID = "E3BFD0E9-07A3-452C-ABBE-43169C6FF597" dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:0:Replicas:_array_index:0:ReplicaName = "geta.curric.lhsc.edu.vic.gov.au" dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:1:IPaddresses:_array_index:0 = "10.129.64.123" dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:1:GUID = "E3BFD0E9-07A3-452C-ABBE-43169C6FF597" dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:1:ReplicaName = "geta.curric.lhsc.edu.vic.gov.au" dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:1:Replicas:_array_index:0:GUID = "369E6792-929E-467C-8311-187D6B371315" dirserv:treeConfiguration:odTree:_array_index:0:Replicas:_array_index:1:Replicas:_array_index:0:ReplicaName = "zeta.curric.lhsc.edu.vic.gov.au"
I hope this helped.
No comments:
Post a Comment