added rewrite of LDAP bind CN username@domain.com -> uid=username,dc=domain,dc=com
[virtual-ldap] / sql / organizationalunit.sql
index 8c07ff9..d87aa38 100644 (file)
@@ -3,6 +3,8 @@ select
        concat('ou=',c.categorycode,',dc=ffzg,dc=hr')   as dn,
        'organizationalunit'            as objectClass,
        c.categorycode                  as ou,
-       c.description                   as description
+       c.description                   as description,
+       -- fake for SafeQ, we don't have numeric primary key
+       crc32(categorycode) % 1000      as objectGUID
 from categories c