grouper-users - [grouper-users] Grouper Loader LDAP with AD
Subject: Grouper Users - Open Discussion List
List archive
- From: Gagné Sébastien <>
- To: <>
- Subject: [grouper-users] Grouper Loader LDAP with AD
- Date: Wed, 9 May 2012 11:29:50 -0400
Hello, I’m trying to configure the Grouper Loader LDAP to work with our AD, but I’m stuck with a problem. Basically what we would like is to retrieve all groups in AD and load them in Grouper. I’ve set the loader type to LDAP_GROUP_LIST with a filter (objectClass=group) (dev AD has 5-6 groups). This properly returns all groups and they are added in Grouper. The problem is with the members : it sees them in the AD group, but cannot find them in the source, which is the same AD. I’ve set the subject attribute name to member and my source ID is ldap (I’m also using the PSP) The group’s member attribute is a multivalued set of “Distinguished Name” (e.g. CN=gagns,OU=People,DC=dev,DC=umontreal,DC=ca). This is a problem since my subject ID is the sAMAccountName (i.e. gagns). What I did, is use the search type subjectIdentifier and modified the filter in sources.xml to use the full DN : <searchType>searchSubjectByIdentifier</searchType> <param> <param-name>filter</param-name> <param-value> (&(distinguishedName=%TERM%)(objectclass=person)) </param-value> </param> Unfortunately it doesn’t work and I don’t know why. When manually running the loader job (i.e. loaderRunOneJob(group) in gsh.sh), in the logs I see that it find the members of the groups, but that the every search for one of the subject fails : 2012-05-09 09:06:24,001: [main] ERROR GrouperLoaderResultset$Row.getSubject(1112) - - Problem with subjectIdentifier: CN=gagns,OU=People,DC=dev,DC=umontreal,DC=ca, subjectSourceId: ldap, in jobName: LDAP_GROUP_LIST__etc:confLDAPLoader__e7b97262558b477fab09c0b48f98ed1c edu.internet2.middleware.subject.SubjectNotFoundException: No results: searchSubjectByIdentifier filter:(&(distinguishedName=%TERM%)(objectclass=person)) searchValue: CN=gagns,OU=People,DC=dev,DC=umontreal,DC=ca at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getLdapUnique(LdapSourceAdapter.java:655) at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getSubjectByIdentifier(LdapSourceAdapter.java:336) at edu.internet2.middleware.grouper.subj.SourcesXmlResolver.findByIdentifier(SourcesXmlResolver.java:403) [contd...] I tried an ldapsearch and manually changing the %TERM% to the DN and it works fine : ldapsearch -h husky.devsim.umontreal.ca -D "<grouper service account DN>" -w <pass> -b "OU=People,DC=dev,DC=umontreal,DC=ca" "(&(distinguishedName=CN=gagns,OU=People,DC=dev,DC=umontreal,DC=ca)(objectclass=person))" CN=gagns,OU=People,DC=devsim,DC=umontreal,DC=ca objectClass=top objectClass=person objectClass=organizationalPerson objectClass=user cn=gagns [continued...] Anyone has an idea what might be happening here ? Anyone did a successful AD configuration ? Thank you What I find weird is if I use subjectId (not subjectIdentifier), I get slightly different results in the exceptions. JobName is different and membership count also. 2012-05-09 10:22:49,165: [main] ERROR GrouperLoaderResultset$Row.getSubject(1112) - - Problem with subjectId: CN=gagns,OU=People,DC=devsim,DC=umontreal,DC=ca, subjectSourceId: ldap, in jobName: groups:UdeM:fromAD1 edu.internet2.middleware.subject.SubjectNotFoundException: No results: searchSubject filter:(&(sAMAccountName=%TERM%)(objectclass=person)) searchValue: CN=gagns,OU=People,DC=devsim,DC=umontreal,DC=ca with subjectIdentifier : loader ran successfully, inserted 0 memberships, deleted 0 memberships, total membership count: 0 with subjectId : loader ran successfully, inserted 0 memberships, deleted 0 memberships, total membership count: 40 Sébastien Gagné, | Analyste en informatique 514-343-6111 x33844 | Université de Montréal, | Pavillon Roger-Gaudry, local X-100-11 |
- [grouper-users] Grouper Loader LDAP with AD, Gagné Sébastien, 05/09/2012
- [grouper-users] RE: Grouper Loader LDAP with AD, Chris Hyzer, 05/09/2012
Archive powered by MHonArc 2.6.16.