Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
UserPath = "LDAP://Domain/CN=Rosenthal\, David,OU=Users,DC=domain,DC=com" Groups = dsGetUsersGrps(UserPath) Count = ItemCount(Groups, @Tab)Count returns 28 Groups in about 2 - 3 seconds. The user is a direct member of 15 of these groups.
Using a different user:
UserPath = "LDAP://Domain/CN=Rosenthal\, David-1,OU=Users,DC=domain,DC=com"Winbatch Studio “dies” after about 3 minutes. This user is a direct member of 13 groups. Some of these groups are universal, and others distribution groups. Are there any known problems with dsGetUsersGrps() or might I have some other problem?
The user was a member of a global group, which was the member of a local group, which in turn was a member of itself (!?!). How that happened, I don’t know. It shouldn’t be possible. The following error should always be returned: “A group cannot be added to itself.”. After removing the group from itself, the problem was gone.
The ADSI Extender has been updated to handle these types of issues:
Version 44018: Jan 26, 2011 Fixed problem in dsGetUsersGrps function that could cause an unhandled exception.
Article ID: W16798
File Created: 2011:01:26:11:52:22
Last Updated: 2011:01:26:11:52:22