Anonymous_User Absent Member.
Absent Member.
665 views

Activate User form non-required attributes


I am setting up the Activate User module in SSPR 3.0. I have givenName
and sn set to required in the options, and postalCode and employeeID set
as not required. However, the non-required attributes seems to be
required anyway to activate the user even though it is not required in
the form. The help tag says that "Any attributes that are listed in the
form but are not used in the search filter will tested by attempting an
ldap compare with the user supplied value."

I have tried setting the Activation Search Filter to
(&(objectClass=person)(givenName=%givenName%)(sn=%sn%)) and
(&(objectClass=person)(givenName=%givenName%)(sn=%sn%)(postalCode=%postalCode%)(employeeID=%employeeID%)).
The first way it matches the user, then does a compare with a blank
postalCode (LDAP trace shows filter: "(postalCode=)"). The second way
it fails to find the user because the initial filter includes
(postalCode=). If I populate postalCode, the same thing happens with
employeeID.

Is there a way not to require some of the attributes included in the
form, but to use them if they are present?
Thanks
Russ


--
oyarsa
------------------------------------------------------------------------
oyarsa's Profile: https://forums.netiq.com/member.php?userid=193
View this thread: https://forums.netiq.com/showthread.php?t=50941

0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Activate User form non-required attributes

oyarsa,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit http://www.netiq.com/support and search the knowledgebase and/or check all
the other support options available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.netiq.com)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.netiq.com/faq.php

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your NetIQ Forums Team
http://forums.netiq.com


0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Activate User form non-required attributes


I'm not sure about the optional form field, but perhaps an OR clause in
the filter would do what you want. Assuming you set a field called
"value1" that was labeled "EmployeeID or Portal Code" you could use a
filter like:

(&(objectClass=person)(givenName=%givenName%)(sn=%
sn%)(|(postalCode=%value1%)(employeeID=%value1%)))

Will this work?


--
jrivard
------------------------------------------------------------------------
jrivard's Profile: https://forums.netiq.com/member.php?userid=541
View this thread: https://forums.netiq.com/showthread.php?t=50941

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.