Home Forums OS X Server and Client Discussion Open Directory dsimport duplicate checking problem

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #366963
    khagel
    Participant

    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.

    #366964
    dlepiane
    Participant

    dsimport -g OD_TEST.txt /LDAPv3/ldap.bethelsd.org O -n 3 -u diradmin -p password

    As per man:dsimport, the “O” after your ldap location specifies the policy for handling duplicates. You may want to try “N” for “no duplicate checking” instead of “O”.

    #366965
    khagel
    Participant

    I need to do some duplicate checking because of different things in the record that could change. Either way, if I do no duplicate checking, then won’t the second record just not get added?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed