Sync ldap user attributes

Moderator: crythias

Locked
aboManu
Znuny newbie
Posts: 14
Joined: 02 Aug 2024, 12:14
Znuny Version: 6.0.38
Real Name: Manu
Company: abo

Sync ldap user attributes

Post by aboManu »

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: Select all

$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: Select all

$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
aboManu
Znuny newbie
Posts: 14
Joined: 02 Aug 2024, 12:14
Znuny Version: 6.0.38
Real Name: Manu
Company: abo

Re: Sync ldap user attributes

Post by aboManu »

To be more clear: we're using agents only for our staff. There we'd like to have more attributes.
Locked