Creation of new user in wordpress doesn't fill in username, email, …
-
hi,
great news that there is a new version of this plugin, but i found some errors.
it works for me to login with a ldap user not existent in wordpress and the user gets created, BUT no name, surname, email etc gets filled in ??i digged into the code and found a problem in get_user_data:
when i write the content of $ladpuser to a file i get:Array
(
[count] => 1
[0] => Array
(
[givenname] => Array
(
[count] => 1
[0] => Givenname
)[0] => givenname
[sn] => Array
(
[count] => 1
[0] => Surname
)[1] => sn
[uid] => Array
(
[count] => 1
[0] => userid
)[2] => uid
[mail] => Array
(
[count] => 1
[0] => [email protected]
)[3] => mail
[count] => 4
[dn] => uid=myid,dc=xxxxxxx,dc=xxxx
))
(i edited the original username and dn settings, don’t want to share them here ?? )
2 lines later there is a array_shift array_values thing, after that when i write $userinfo to the file i get:
1so there has to be a problem here causing my user to be created with only a username, but without a name, email etc.
- The topic ‘Creation of new user in wordpress doesn't fill in username, email, …’ is closed to new replies.