Hi,
I have CPPM setup where I am trying to accomplish following for Sponsor Restriction.
1- User will manually type in the sponsor email address in the Text field. I am using Sponsor Email Field for the same.
2- That email ID should be looked up in AD Database to verify if it is part of a specific group or not.
3- If, Yes it should allow the email ID to be an Sponsor, else it should deny that email to be a valid sponsor.
Here is my current configuration:
Sponsor Email:
I have configured Sponsor_Email Field with a email validation using the below query:
array (
'allow' =>
array (
0 => 'shire.com',
),
'deny' =>
array (
0 => '*',
),
)
Server LDAP Filter:
I have configured customer LDAP Filter under the Server Configuration as below:
(&
(objectClass=user)
(objectCategory=person)
(|
# Match users in this group
(memberOf=CN=GL-CPPM_SPONSORS,OU=Security-Groups,OU=Domain-Groups,DC=corp,DC=shire,DC=com)
)
(|
# Match users by any of these criteria
(sAMAccountName=*@SEARCH@*)
(displayName=*@SEARCH@*)
(cn=*@SEARCH@*)
(mail=*@SEARCH@*)
)
)
DO_LDAP_Lookup:
I have enabled the Do Ldap Lookup as hidden field to perform the lookup and give the results.
With this configuration, it is doing the lookup for all valid emails but not restriting to the Sponsors part of the specified group. Any help will be greatly appreciated.
Regards
Nalin