/[virtual-ldap]/sql/hreduperson.sql
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /sql/hreduperson.sql

Parent Directory Parent Directory | Revision Log Revision Log


Revision 54 - (hide annotations)
Wed Apr 29 11:48:10 2009 UTC (15 years ago) by dpavlin
File size: 526 byte(s)
create organizationlUnit for each categorycode from Koha

1 dpavlin 47
2     select
3     concat('uid=',trim(userid)) as dn,
4     'person
5     organizationalPerson
6     inetOrgPerson
7     hrEduPerson' as objectClass,
8    
9     trim(userid) as uid,
10     firstname as givenName,
11     surname as sn,
12     concat(firstname,' ',surname) as cn,
13    
14     -- SAFEQ specific mappings from UMgr-LDAP.conf
15     borrowernumber as objectGUID,
16     surname as displayName,
17     rfid_sid as pager,
18     email as mail,
19 dpavlin 54 categorycode as memberOf,
20     categorycode as ou,
21 dpavlin 47 concat('/home/',borrowernumber) as homeDirectory
22     from borrowers
23    

  ViewVC Help
Powered by ViewVC 1.1.26