Need Customer ID

Post Reply
sfludena
Znuny newbie
Posts: 2
Joined: 16 May 2015, 00:35
Znuny Version: Business
Real Name: Santiago
Company: CNE

Need Customer ID

Post by sfludena »

Hola, espero puedan ayudarme con este problema, entiendo que falta algo pero no se que es, ya realicé la integración con el directorio activo pero cuando intento acceder con una cuenta ldap sale un mensaje que dice se ha autenticado correctamente pero que al no existir datos de backend no puede iniciar sesión.

Esto es lo que tengo en mi archivo config.pm
#Enable LDAP authentication for Customers / Users
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = 'miserver.midominio.com';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'ou=Funcionarios EMPRESA,dc=empresa,d$
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';

#The following is valid but would only be necessary if the
#anonymous user do NOT have permission to read from the LDAP tree
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'cn=itop,ou=EMPRESA,Dc=empresa,$
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'Clave_2015';

#Enable LDAP authentication for Customers / Users
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = 'miserver.midominio.com';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'ou=Funcionarios EMPRESA,dc=empresa,d$
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';

#The following is valid but would only be necessary if the
#anonymous user do NOT have permission to read from the LDAP tree
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'cn=itop,ou=EMPRESA,Dc=empresa,$
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'Clave_2015';

#CustomerUser
#(customer user database backend and settings)
$Self->{CustomerUser} = {
Module => 'Kernel::System::CustomerUser::LDAP',

#anonymous user do NOT have permission to read from the LDAP tree
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'cn=itop,ou=EMPRESA,Dc=empresa,$
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'Clave_2015';

#CustomerUser
#(customer user database backend and settings)
$Self->{CustomerUser} = {
Module => 'Kernel::System::CustomerUser::LDAP',
Params => {
Host => 'miserver.midominio.com',
BaseDN => 'OU=Funcionarios EMPRESA,DC=empresa,DC=gob,DC=ec',
SSCOPE => 'sub',
UserDN =>'cn=itop,ou=EMPRESA,dc=empresa,dc=gob,dc=ec',
UserPw => 'Clave_2015',
},
# customer unique id
CustomerKey => 'sAMAccountName',
# customer #
CustomerID => 'cn',

SSCOPE => 'sub',
UserDN =>'cn=itop,ou=EMPRESA,dc=empresa,dc=gob,dc=ec',
UserPw => 'Clave_2015',
},
# customer unique id
CustomerKey => 'sAMAccountName',
# customer #
CustomerID => 'cn',
CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
CustomerUserSearchPrefix => '',
CustomerUserSearchSuffix => '@empresa’,
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown, required, storage-type
#[ 'UserSalutation', 'Title', 'title', 1, 0, 'var' ],

CustomerUserSearchSuffix => '@empresa',
CustomerUserSearchListLimit => 250,
CustomerUserPostMasterSearchFields => ['mail'],
CustomerUserNameFields => ['givenname', 'sn'],
Map => [
# note: Login, Email and CustomerID needed!
# var, frontend, storage, shown, required, storage-type
#[ 'UserSalutation', 'Title', 'title', 1, 0, 'var' ],
[ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ],
[ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ],
[ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ],
[ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ],
[ 'UserCustomerID', 'CustomerID', 'mail', 0, 1, 'var' ],
[ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ],
#[ 'UserAddress', 'Address', 'postaladdress', 1, 0, 'var' ],
#[ 'UserComment', 'Comment', 'description', 1, 0, 'var' ],
],
};
Post Reply