added while loop since we are starting from rc.local
[virtual-ldap] / sql / organizationalunit.sql
1
2 select
3         concat('ou=',c.categorycode,',dc=ffzg,dc=hr')   as dn,
4         'organizationalunit'            as objectClass,
5         c.categorycode                  as ou,
6         c.description                   as description,
7         -- fake for SafeQ, we don't have numeric primary key
8         crc32(categorycode) % 1000      as objectGUID
9 from categories c
10