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

Renee S’s picture

Title: LDAP User Sync Ldap -> Drupal form, "-user token-" column doesn't appear » LDAP User Sync "-user token-" column doesn't appear
madhusudan’s picture

experiencing the same problem here..!!

madhusudan’s picture

Status: Active » Needs review

Temp 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!?.

nielsvoo’s picture

subscribe, where is the token key column?

nielsvoo’s picture

Please 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

johnbarclay’s picture

Assigned: Unassigned » johnbarclay
Issue summary: View changes
nielsvoo’s picture

Still need some help here, someone?

Thanks

nielsvoo’s picture

Sometimes 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. :-(

stdunn12’s picture

Does anyone have an answer to this issue?

heinemann’s picture

Same problem here. Anyone?

Thanks in advance

nielsvoo’s picture

Still need an answer!, please

RRLAG’s picture

I'm trying to get this working, but don't have any luck with #3. Am I missing something?

RRLAG’s picture

To 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.

ysaid’s picture

Can anyone help with this issue please ?

alexandrezia’s picture

Having the same issue here

akmal90’s picture

need help on this issue please

Saoirse1916’s picture

Still 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.

Yerwol’s picture

I'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?

dddave’s picture

Status: Needs review » Active

Needs review is for patches, this issue is still active as far as I can see.

madhusudan’s picture

Priority: Normal » Major

This issue still exists!, why cannot someone commit this.?

dddave’s picture

#20 a patch to review might eventually get committed. So far nobody has provided one.

queenvictoria’s picture

Assigned: johnbarclay » Unassigned

  • grahl committed 9f8c7f2 on 7.x-2.x
    Issue #2047205: LDAP User Sync "-user token-" column doesn't appear
    
grahl’s picture

Title: LDAP User Sync "-user token-" column doesn't appear » Misleading user tokens column in sync to Drupal
Status: Active » Fixed

I 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.