Quantcast
Viewing all articles
Browse latest Browse all 310

Sync ldap user attributes

Hi all,
I'm new here in this forum but haven't found what I'd like to archieve here so far.
We're using Znuny 6.0.38. The documentation lacks of information here, I tried to figure out from many different sources.

The connection to out Active Directory (AD) was made by me a year and a half ago and the auth works as expected.

Now I'd like to map several user attributes to use them in out templates but it seems that I did not fully understand the mechanism.
I added the following to my Config.pm:

Code:

$Self->{AuthSyncModule} = 'Kernel::System::Auth::Sync::LDAP';$Self->{'AuthSyncModule::LDAP::Host'} = 'ldaps://mydom.local';$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=mydom,dc=local';$Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = '[...]';$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = '[...]';
(this is basically the same what I've added before to do the ldap auth, $Self->{AuthModule} = 'Kernel::System::Auth::LDAP';)

Code:

$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {    'UserFirstname' => 'givenName',    'UserLastname'  => 'sn',    'UserEmail'     => 'mail',    'UserLogin'     => 'sAMAccountName',    'UserTitle'     => 'personalTitle',    'UserJobTitle'  => 'title',    'UserDescription' => 'description',    'UserDepartment' => 'department',};
Now I'm stuck. Is this the right approach? Where are those attributes supposed to be stored? I can't see anything in the database.
Also I tried to add dynamic fields but do not see any data, too.

Any help would greatly appreciated!
Manu

Statistics: Posted by aboManu — 05 Aug 2024, 11:28 — Replies 1 — Views 46



Viewing all articles
Browse latest Browse all 310

Trending Articles