24dbfc9f8be029cc72fcb20114c6f28100df3114
[virtual-ldap] / sql / organizationalunit.sql
1
2 select
3         concat('ou=',categorycode)      as dn,
4         'top
5         organizationalUnit'             as objectClass,
6         categorycode                    as ou,
7         description                     as description,
8
9         -- fake objectGUID since we don't have primary key
10         crc32(categorycode)             as objectGUID
11
12 from categories