Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Folks
I have figured out how to access LDAP, however, I am having trouble getting hold of the MemberOf values, the following query
ldap_Groups:
SQL
SELECT memberOf
FROM '$(vLDAP)' WHERE objectClass='user' AND SAMAccountName='$(vUserName)';
Returns an error as shown below (always a favourite of mine when an error message states SQL Error: No Error, provides so much information!), I am suspecting that I might need to do something special with this as the contents of memberOf field is quite large.
Anybody have any clues as to what I would need to do????
Any help greatly appreciated.
Hi Rob,
Thanks for making this available - just saved me a whole heap of time. My load was failing on a few names with non standard characters in them. I've resolved this by setting errormode and having it fetch more rows after fail (as it does for the batched rows). For this to get all rows (and I think it may be a requirement due to the batch size in AD) you need to order both of the selects to be by the 'name' field.
Thanks again,
Steve
Hello Rob,
I managed to get all the users, groups, and group members using the following; but what is not working is getting the description field from LDAP, I tried the macro you used and it didnt work.
Is there any other way to reading the group description field, i need this info since the description field contains an additional layer of security that i need to apply