[Koha] [Koha-devel] ldap / uid

Travis Elliott Davis elliott at bywatersolutions.com
Thu Nov 22 02:49:20 NZDT 2012


Samuel,

If you want to map the userid field in Koha to "SupannAliasLogin" from your ldap configuration simply change <userid is="uid"></userid> to <userid is="SupannAliasLogin"></userid>.

If you are asking how to bind on SupannAliasLogin you should be able to perform the step above and in the principal name field just enter %s and nothing else.  That will try and bind on the username without joining any other strings.

Best,


Travis Elliott Davis
Development Support Specialist
903.571.4257
Elliott at ByWaterSolutions.com



On Nov 21, 2012, at 3:34 AM, Samuel Desseaux <samuel.desseaux at ecp.fr> wrote:

> Hi,
> 
> I've a technical question about ldap.
> 
> My connexion with the ldap is enabled. The mapping is correct but we would like to use "SupannAliasLogin" instead of "uid".
> Why? Our uid is  like this  [year of entry in the school]+supannAliasLogin
> 
> example:2012desseauxs
> 
> 2012:year of entry in the school
> desseauxs:SupannAliasLogin
> 
> 
> I don't know how to do and i i have to change the principal name
> 
> Actually, we have the following configuration
> 
> <ldapserver id="ldapserver" listenref="ldapserver">
> <hostname>*******</hostname>
> <base>ou=people,dc=ecp,dc=fr</base>
> <user>cn=syncrepl,ou=applications,dc=ecp,dc=fr</user>
> <pass>******</pass>
> <replicate>1</replicate>
> <update>1</update>
> <auth_by_bind>1</auth_by_bind>
> <principal_name>uid=%s,ou=people,dc=ecp,dc=fr</principal_name>
> <mapping>
> <firstname is="givenname"></firstname>
> <surname is="sn"></surname>
> <address is="">Ecole Centrale Paris</address>
> <city is="">Chatenay-Malabry</city>
> <zipcode is="">92290</zipcode>
> <branchcode is="">ECAM</branchcode>
> <userid is="uid"></userid>
> <password is="userpassword"></password>
> <cardnumber is="ecpbadgenumber"></cardnumber>
> <email is="mail"></email>
> <categorycode is="supannetudiplome">employee</categorycode>
> <phone is="telephonenumber">903-566-7654</phone>
> <dateenrolled is="">2012-09-01</dateenrolled>
> <dateexpiry is="">2013-09-01</dateexpiry>
> </mapping>
> </ldapserver>
> 
> 
> Many thanks
> 
> samuel
> 
> 
> 
> 
> <samuel_desseaux.vcf>_______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/



More information about the Koha mailing list