• Resolved marco_b

    (@marco_b)


    Hi there

    I would like to sync the AD attribute “departmentNumber” the type in AD is “Multi-valued String”. In the configuration I selected the type “list” other AD fields of this type are synced. What could be wrong?

    2022-09-22 08:32:41 [DEBUG] NextADInt_Adi_User_Manager::{closure} [line 538] AD attribute ‘departmentNumber” is empty. Local value ‘Attribute next_ad_int_departmentNumber={type=’list’, syncable=”, viewable=’1′, overwriteWithEmpty=’}’ left unchanged.

    Best regards
    Marco

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author schakko

    (@schakko)

    @marco_b
    Hey Marco, can you rename the attribute mapping from “departmentNumber” to “departmentnumber” (lower-case “n”) and check if it works?

    Thread Starter marco_b

    (@marco_b)

    @schakko I’ve deleted the old entry and created a new one, but without luck.

    2022-09-22 09:38:24 [DEBUG] NextADInt_Adi_User_Manager::{closure} [line 538] AD attribute ‘departmentnumber” is empty. Local value ‘Attribute next_ad_int_depnr={type=’list’, syncable=”, viewable=’1′, overwriteWithEmpty=’}’ left unchanged.

    Any other ideas?

    Best regards
    Marco

    Plugin Author schakko

    (@schakko)

    You can try to var_dump-debug the code in classes/Adi/User/Manager.php (https://github.com/NeosIT/active-directory-integration2/blob/c35e1389669eca9e77df373383472242e63e19b9/classes/Adi/User/Manager.php) line 458 with

    
    // that should contain "departmentnumber" => [...]:
    var_dump($ldapAttributes);
    // that should contain also "departmentnumber" => [type=>'list']
    var_dump($attributeWhitelist);
    // that should also contain "departmentnumber" => [...]
    var_dump($filteredAttributes);
    
    • This reply was modified 2 years, 2 months ago by schakko.
    Thread Starter marco_b

    (@marco_b)

    I tried the mentioned var_dump

    var_dump($ldapAttributes); returns [“departmentnumber”]=> string(0) “” }

    var_dump($attributeWhitelist); returns NULL

    var_dump($filteredAttributes);returns nothing

    I’m a little bit lost now, as everything should be correct configured.

    Plugin Author schakko

    (@schakko)

    Hm, the obvious question is: Does the user you are trying to synchronize have the “departmentNumber” attribute filled? Even if we are both pretty sure that it is filled, can you check with ADSIEdit?

    Have connected NADI to your AD’s LDAP port (389, 636) or to the Global Catalog (3268, 3269)?

    Thread Starter marco_b

    (@marco_b)

    I did the connection to 3268, now I’ve changed it to 389 and tada, the departmentNumber is there. Didn’t realize that this will give another result back.

    Thanks for the hint and your help.

    Best regards,
    Marco

    Plugin Author schakko

    (@schakko)

    The field departmentNumber is – by default – not avavilable in the Global Catalog. If you have to use the GC because of other reasons, you have also make the attribute to be replicated in the AD.

    Plugin Author schakko

    (@schakko)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Sync to WordPress not syncing departmentNumber’ is closed to new replies.