0 votes

Hi guys,

We would like to store the user's GUID (after user creation through web services) to be able to query the user afterwards.

How to interpret the value returned in SPML answer ? It's not in the same format than in AD and it seems not possible to use it to lookup the user

<attr name="objectGUID" xmlns="urn:oasis:names:tc:DSML:2:0:core">
<value>F4c9c6PjOUKxMyIfXuYoNw==</value>
</attr>

Thanks for your help

Regards

by (740 points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello,

The thing is that object GUIDs are stored in Active Directory in binary form, as an array of byte (Byte[]). The SPML protocol allows exchanging data in the form of XML documents, which are text only. Thus, to represent a binary value in text form, it is converted into a Base64 string. You can use the Convert.FromBase64String method in your code to get the binary value of the object GUID.

Related questions

0 votes
1 answer

We were used to bind to group member object using: $member = $Context.BindToObjectByDN("%member%") which worked perfectly, but now it is not. Its because %member% is returning ... ? And is it possible to get DN of added/removed member using another variable?

asked Sep 14, 2020 by KIT (960 points)
0 votes
1 answer

Hello again! I discovered to make the password reset function with default account options (force password reset on first logon checked, User Cannot Change Password and password never expired ... that I can add to my script, I just can't find the darn thing.

asked Nov 20, 2015 by drew.tittle (810 points)
+1 vote
1 answer

I'm trying to enable SSO using SAML with AzureAD as the IDP. I'm struggling to get it to work, we use a BIG-IP as our loadbalancer which handles the SSL offloading. ... offloading or am I forced to remove the SSL offloading and do it on the server itself?

asked May 12, 2020 by Quinten (100 points)
0 votes
1 answer

Hello again! I'm building a script that will create Adaxes Security Roles for each new customer we bring on I'm trying to create a Role with the ability to change ... properties for user or group objects it would really help me get the script finished up.

asked Nov 14, 2015 by drew.tittle (810 points)
0 votes
1 answer

Is it possible to call execution of Adaxes custom command via SPML?

asked Oct 16, 2019 by Dmytro.Rudyi (920 points)
3,538 questions
3,229 answers
8,222 comments
547,739 users