wolfd / pwm

PWM is an open source password self service application for LDAP directories. - exported from code.google.com/p/pwm
http://pwmdemo.weisberg.net/
0 stars 1 forks source link

Random usernames need help #515

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. New user Activation
2. reading logs
3. looking at Ldap server

What is the expected output? What do you see instead?
A user account with a name    cn=name
random generated account i.e. cn=26GSF2Y5WHWJGB3A

What version of PWM are you using?
1.7

What ldap directory and version are you using?
OpenDJ 2.7.0

Please paste any error log messages below:
ue Nov 26 11:09:48 GMT 2013, INFO , password.pwm.servlet.CommandServlet, 
{cn=26GSF2Y5WHWJGB3A,ou=users,dc=cloudnovem,dc=com} user response set needs to 
be configured, redirecting to setupresponses page [10.1.1.24]
Tue Nov 26 11:08:59 GMT 2013, WARN , password.pwm.config.Configuration, invalid 
challenge set configuration: too few challenges are required
Tue Nov 26 11:08:59 GMT 2013, INFO , password.pwm.servlet.CommandServlet, 
{cn=26GSF2Y5WHWJGB3A,ou=users,dc=cloudnovem,dc=com} user response set needs to 
be configured, redirecting to setupresponses page [10.1.1.24]
Tue Nov 26 11:08:47 GMT 2013, INFO , password.pwm.event.AuditManager, audit 
event: 
{"eventCode":"CREATE_USER","perpetratorDN":"cn\u003d26GSF2Y5WHWJGB3A,ou\u003duse
rs,dc\u003dcloudnovem,dc\u003dcom","timestamp":"Nov 26, 2013 11:08:47 
AM","targetDN":"cn\u003d26GSF2Y5WHWJGB3A,ou\u003dusers,dc\u003dcloudnovem,dc\u00
3dcom","sourceAddress":"10.1.1.24","sourceHost":"10.1.1.24"}
Tue Nov 26 11:08:47 GMT 2013, INFO , password.pwm.event.AuditManager, audit 
event: 
{"eventCode":"AUTHENTICATE","perpetratorDN":"cn\u003d26GSF2Y5WHWJGB3A,ou\u003dus
ers,dc\u003dcloudnovem,dc\u003dcom","timestamp":"Nov 26, 2013 11:08:47 
AM","message":"AUTHENTICATED","targetDN":"cn\u003d26GSF2Y5WHWJGB3A,ou\u003dusers
,dc\u003dcloudnovem,dc\u003dcom","sourceAddress":"10.1.1.24","sourceHost":"10.1.
1.24"}
Tue Nov 26 11:08:47 GMT 2013, INFO , password.pwm.util.Helper, added 
objectclass 'pwmUser' to user cn=26GSF2Y5WHWJGB3A,ou=users,dc=cloudnovem,dc=com 
[10.1.1.24]
Tue Nov 26 11:08:47 GMT 2013, INFO , 
password.pwm.util.operations.UserAuthenticator, successful ssl authentication 
for cn=26GSF2Y5WHWJGB3A,ou=users,dc=cloudnovem,dc=com (11ms) [10.1.1.24]
Tue Nov 26 11:08:47 GMT 2013, TRACE, null, adding StatisticsWrapper to provider 
instance

Original issue reported on code.google.com by mkn...@novemgroup.co.uk on 26 Nov 2013 at 11:56

GoogleCodeExporter commented 9 years ago
This is working as designed. Make sure to add "cn" to the form if you don't 
want random user names.

Original comment by menno.pi...@gmail.com on 26 Nov 2013 at 12:14

GoogleCodeExporter commented 9 years ago
Thanks for the quick reply

Please elaborate on your answer
Make sure to add "cn" to the form      

Where exactly does this need to be implemented, is it in the user registration 
or LDAP form  in the PWM  config 

Original comment by mkn...@novemgroup.co.uk on 26 Nov 2013 at 1:43

GoogleCodeExporter commented 9 years ago
You need to configure the new user form with the desired/required attributes. 
In your case you should allow the user to choose a user name (cn). This is 
found under modules -> New User Registration -> New User Form

Original comment by menno.pi...@gmail.com on 26 Nov 2013 at 2:01

GoogleCodeExporter commented 9 years ago
O.K thanks

I've added as you suggested and can now see the username as well as random 
generated
under common name in OpeDJ LDAP

When I try and activate the account 

Unable to find username. Please try again. { 5016 ERROR_CANT_MATCH_USER (an 
ldap user was not found) }

Original comment by mkn...@novemgroup.co.uk on 26 Nov 2013 at 2:52

Attachments:

GoogleCodeExporter commented 9 years ago
The log doesn't show anything strange. I don't see any duplicate 'cn'.

Original comment by menno.pi...@gmail.com on 26 Nov 2013 at 9:08