Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

LDAP ObjectSID Convert Hex

Lylys
Giga Contributor

Hi Everybody,

I have a question about the LDAP user import.

In my Customer, the coaslesce is objectSID. 

I need to convert the value on the objectSID on hex 

Exemple:

Base 64:  AQUAAAAAAAUVAAAAPt85e78Lxl5Dn58Z+J0AAA== 

Hex: 01 05 00 00 00 00  ........ (with no space) 

My investiguations:

- Sys properties: glide.ldap.binary_attributes  = objectsid,objectguid

- Mid Server properties: Add propertie:  glide.ldap.binary_attributes  = objectsid,objectguid

 

I test this script but I have the same value on all users.

https://community.servicenow.com/community?id=community_question&sys_id=7b8c8fa5db9cdbc01dcaf3231f96196f&view_source=searchResult

Have you an idea?

 

Thanks 

3 REPLIES 3

Sebastian R_
Kilo Sage

Can you prepare some examples, what you get in the import and what the result should be?

What do you mean exactly with "I test this script but I have the same value on all users.?" What have you tried?

Developer3
Tera Expert

Hi Lylys,

I am also facing the same issue. Please let me know if you found a solution for this.

Johnny Chong1
Tera Contributor

I wrote some script for this issue, and seems working fine for past few months.

Hope this will help you too.

https://community.servicenow.com/community?id=community_question&sys_id=37ed6bfddb056c1066f1d9d968961994&view_source=searchResult