Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Trying to set up LDAP User sync from LDAP to Drupal. Selecting the "-user token-" option causes nothing to happen. It works on the alternate form (Drupal->LDAP sync), but not on the LDAP->Drupal form. The error message on save is: User tokens selected in server %sid row mapping to ldap attribute [givenname], but user tokens column empty.
... which makes sense, as no column exists.
Comments
Comment #1
Renee S CreditAttribution: Renee S commentedComment #2
madhusudan CreditAttribution: madhusudan commentedexperiencing the same problem here..!!
Comment #3
madhusudan CreditAttribution: madhusudan commentedTemp solution..
edit file LdapUserConfAdmin.class.php in ldap_user Directory
search line "$id = $id_prefix . 'sm__user_tokens__' . $row;"
and disable the if loop which is just above the searched line..
don't know why its been made one side!?.
Comment #4
nielsvoo CreditAttribution: nielsvoo commentedsubscribe, where is the token key column?
Comment #5
nielsvoo CreditAttribution: nielsvoo commentedPlease help me with this, is there a manual or something?
I use the profile2 module and want to fill my fields with ldap data but my fields are not in the list. Creating a token is not possible because of the missing column. Am i missing something?
Thanks
Nielsvoo
Comment #6
johnbarclay CreditAttribution: johnbarclay commentedComment #7
nielsvoo CreditAttribution: nielsvoo commentedStill need some help here, someone?
Thanks
Comment #8
nielsvoo CreditAttribution: nielsvoo commentedSometimes this forum is really fast with answering questions, but this question although it is for me an important one simply won't get any answer. :-(
Comment #9
stdunn12 CreditAttribution: stdunn12 commentedDoes anyone have an answer to this issue?
Comment #10
heinemann CreditAttribution: heinemann commentedSame problem here. Anyone?
Thanks in advance
Comment #11
nielsvoo CreditAttribution: nielsvoo commentedStill need an answer!, please
Comment #12
RRLAG CreditAttribution: RRLAG commentedI'm trying to get this working, but don't have any luck with #3. Am I missing something?
Comment #13
RRLAG CreditAttribution: RRLAG commentedTo clarify my previous comment. When remove the if statement I get the box to appear where I can enter a user token. However, I have no luck with any data being imported. Also, I'm limited to adding one user token field, new ones are simply overwritten.
Example
[givenName] ---> [field.field_first_name]
Is that the correct format? I have field_first_name in my Profiles2 form, but nothing appears when I login even with both sync boxes checked in the ldap user page.
All I want to do is to sync First and Last Name to Drupal from ldap, I was hoping this wasn't going to be this complicated.
Comment #14
ysaid CreditAttribution: ysaid as a volunteer commentedCan anyone help with this issue please ?
Comment #15
alexandrezia CreditAttribution: alexandrezia commentedHaving the same issue here
Comment #16
akmal90 CreditAttribution: akmal90 commentedneed help on this issue please
Comment #17
Saoirse1916 CreditAttribution: Saoirse1916 commentedStill a problem -- is there a trick to enable the non-existent tokens column?
#3 does expose the "Convert From Binary" column when -- user tokens -- is selected under Target Drupal Attribute and saving changes does indeed save the token (I used [field.field_phone_number] as an example) but doing so accomplishes nothing in that when a user signs on the field doesn't get populated with LDAP data.
Comment #18
Yerwol CreditAttribution: Yerwol commentedI'm still seeing this issue on the latest dev version.
Is there something we're missing here, as I can't imagine this has been broken for 30+months now since first being reported?
Or is it as simple as the module isn't even attempting to perform LDAP > Drupal functionality, and the fact that there is the "- user tokens -" entry is the actual bug?
Comment #19
dddave CreditAttribution: dddave commentedNeeds review is for patches, this issue is still active as far as I can see.
Comment #20
madhusudan CreditAttribution: madhusudan commentedThis issue still exists!, why cannot someone commit this.?
Comment #21
dddave CreditAttribution: dddave commented#20 a patch to review might eventually get committed. So far nobody has provided one.
Comment #22
queenvictoria CreditAttribution: queenvictoria at Holly commentedComment #24
grahlI believe Yerwol is correct in speculating that the "- user tokens -" entry is a bug and I had removed it in 8.x. Since the defect is the current state of the 7.x-2.x branch without an indication for a proper fix, and it's confusing users, I've removed that line.
See https://www.drupal.org/node/2211079 if you are interested in full Token support.