-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
objectGUID as pivot attribute? #43
Comments
If I remember correctly, you should be able to use it as a binary pivot, without conversion: |
EDIT: I have the config pushing data through the binary attribute to the LDS tree, however, the data is all mangled by the time it gets there... I thought it might just be a presentation problem so I tried to use it as the pivot attribute and it tries to add new users every sync. So, in my scenario I have LDAP tree A and LDAP tree B. Each has a unique objectGUID for each object. And I need to track the link between accounts across samAccountName, UPN and DN changes. So, I was thinking of copying the ldapA.objectGUID to ldapB.ldapAGUID and using those two attributes for the pivot attribute. Is that feasible? I see your code example, but I'm trying to figure out how to put that in action via the configuration file... Thanks |
I'm running into the same issue. I've looked at the source code links @rouazana link to. If I'm reading things correctly, I really need to go look at https://github.com/lsc-project/lsc/blob/master/src/test/resources/etc/lsc.xml to see how the configuration was implemented. If I look at the Ldap2LdapBinaryPivotSyncTest.java example, it doesn't show needing to use the However in our testing using the Should this be working using 2.1.4 or was this something just fixed in master? Also, is there somewhere the better explains what the "conversion" example? I'm guessing it's the |
@soisik please provide utility code to convert objectGUID value |
Some code example here: https://stackoverflow.com/a/18384620 |
taking a look... |
Code found on the mailing list: // Where GUID is a byte array returned by a previous LDAP search
String byteGUID = "";
for (int c=0;c<GUID.length;c++) {
byteGUID = byteGUID + "\\" + AddLeadingZero((int)GUID[c] & 0xFF);
}
static String AddLeadingZero(int k) {
return (k <= 0xF)?"0" + Integer.toHexString(k):Integer.toHexString(k);
} |
Sample Perl code: sub guid2string {
my $objectGUID = shift;
my $stringGUID = unpack("H*", $objectGUID);
$stringGUID =~ s/^(\w\w)(\w\w)(\w\w)(\w\w)(\w\w)(\w\w)(\w\w)(\w\w)(\w\w\w\w)/$4$3$2$1-$6$5-$8$7-$9-/;
return uc($stringGUID);
} |
…bute from AD to a UUID string representation lsc-project#43
…bute from AD to a UUID string representation lsc-project#43
…bute from AD to a UUID string representation #43
…bute from AD to a UUID string representation lsc-project#43
I saw there was an old request to make the objectGUID convert to a string so that it could be used as the pivot attribute. Did that ever get handled? I see in the docs the it says the pivot has to be a string... I'm trying to setup a synchronization that maintains user connections across email address and UPN changes.
Here is the old link to the mailing list:
https://lists.lsc-project.org/pipermail/lsc-users/2012-April/000926.html
The text was updated successfully, but these errors were encountered: