Like I said, if I try to match anything other than the first entry in the groupMembership attribute this code returns an LDAP_CONSTRAINT_VIOLATION rather than the expected LDAP_COMPARE_TRUE or LDAP_COMPARE_FALSE.$mesg = $ldap->search(base => "o=UMMC", filter => $filter, attrs => ["dn"]); ... $entry = $mesg->shift_entry; $mesg = $ldap->bind($entry->dn, password => "$passWord"); ... #The following is meant to convert the group name passed #in to cn form, because only "group01" would be passed $groupCmp = $entry->dn; $groupCmp =~ s/(cn=)(.*?)(,.*)/$1$group$3/; $mesg = $ldap->compare($entry->dn, attr => "groupMembership",va +lue => "$groupCmp");
In reply to Net::LDAP, groupMembership, and compare by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |