[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
back-sql : defining groups
- To: openldap-technical@openldap.org
- Subject: back-sql : defining groups
- From: DavidHornung <hornuda@googlemail.com>
- Date: Sun, 27 Jan 2013 17:20:07 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=x-received:message-id:disposition-notification-to:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=qG5Qv6YdBQKSZD7MSoWBVIX40DFz6izNPj7lQktxruY=; b=QQR22Miv0u1pDDWRWOjutAq0IEuvOO4SYYz6VxdNk+SfUr9AWHoU3Hgw/yhj7OMJ7n INO69O1ZcYbrjjXYRsfPOlRjLtpjLENekwyxvYkOl+kTeiqskCz0IO1sP1vLSUzIdHrN oSQE7O9S8M8KQdM0EtA5ZqRZDfmvfWcES3eYH7oSXSLgfCc5f2R9placbXnHi0ds0deI mjb0dd+lkCJ2ao3CZq8B0IPsP1q9xEWP2Yc7O0MP6dmhm9pO2qwWKAvYEwjgW85hPLvE Ww/3FD3JClgK7ayE2P5hRVvFkXmjBHJkrdeR/3hkYI2hiN5bXDszbUt53vbuqouQLHW5 WjFA==
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2
Hello,
until now I don't understand how to add users to a group in Openldap
with back-sql
I use a VIEW for ldap_entries like described in the manual pages of
slapd-sql.
CREATE VIEW ldap_entries (id, dn, oc_map_id, parent, keyval)
AS
SELECT 0, UPPER(’o=MyCompany,c=NL’),
3, 0, ’baseObject’ FROM unixusers WHERE userid=’root’
UNION
SELECT (1000000000+userid),
UPPER(CONCAT(CONCAT(’cn=’,gecos),’,o=MyCompany,c=NL’)),
1, 0, userid FROM unixusers
UNION
SELECT (2000000000+groupnummer),
UPPER(CONCAT(CONCAT(’cn=’,groupnaam),’,o=MyCompany,c=NL’)),
2, 0, groupnummer FROM groups;
How can I add users to a group?
1.) build additional entries like
uid=testuser,cn=group1,o=MyCompany,c=NL
OR 2.) use the memberOf Attribute (but how?)
Thank you for your answers
Cheers,
David