How to add user to multiple groups in AD using LDAP protocol?

138 views Asked by At

Using this code I can add user to group

val addUser: Modification = Modification(ModificationType.ADD, "member", userDn)
val ldapResult = ldapConnectionPool.modify(groupDn, addUser)

Now I want to add user to multiple groups.

I underdstand that I can use loop but it will require multiple ldap requests. Is there way to do it using single ldap request ?

0

There are 0 answers