I am having problems dealing with “duplicate users” in Open Directory. What I mean by that is people that have the same real name. Their uid and short names are diffferent, when two people with the same real name exist, dsimport shouldn’t overwrite the first with the second. Here’s what I have been doing:
I am importing my file using dsimport, with the command below. I have used to -n flag to tell dsimport which field to check against for duplicates, but it doesn’t seem to be working.
dsimport -g OD_TEST.txt /LDAPv3/ldap.bethelsd.org O -n 3 -u diradmin -p password
Below is the header of my delimited file.
0x0A 0x5C 0x3A 0x2C dsRecTypeStandard:Users 14 dsAttrTypeStandard:RecordName dsAttrTypeStandard:AuthMethod dsAttrTypeStandard:Password dsAttrTypeStandard:UniqueID dsAttrTypeStandard:PrimaryGroupID dsAttrTypeStandard:RealName dsAttrTypeStandard:UserShell dsAttrTypeStandard:NFSHomeDirectory dsAttrTypeStandard:HomeDirectory dsAttrTypeStandard:FirstName dsAttrTypeStandard:LastName dsAttrTypeStandard:EMailAddress dsAttrTypeStandard:PhoneNumber dsAttrTypeStandard:IMHandle
But when I run everything with two users that have the same real name, the second users information is what is there with the exception of the short name because that isn’t overwritten.
Comments are closed