Support » Plugin: Simple LDAP Login » 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] => user@domain.com
    )

    [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:
    1

    so there has to be a problem here causing my user to be created with only a username, but without a name, email etc.

    http://wordpress.org/plugins/simple-ldap-login/

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is fixed in the latest update, 1.5.4

    I just updated and deleted users previously created in test and then logged in again with them. It appears to be working.

    thanks for this very fast fix.

    now it works, just one thought:
    you use sanitize_title on the surname and givenname for the get_user_data, causing the names to be all lowercase. is this absolutely necessary? wouldn’t it be enough to use sanitize_title for user_nicename and display_name?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creation of new user in wordpress doesn't fill in username, email, …’ is closed to new replies.