Skip to main content

Thread: openLDAP with memberOf attribute


hi,

new ldap , wanted know how authenticate user based on group belong in. trying setup ldap server following structure: (on ubuntu server 9.10)

dn: dc=example,dc=com
objectclass: top
objectclass: dcobject
objectclass: organization
o: example organization
dc: example

dn: cn=admin,dc=example,dc=com
objectclass: simplesecurityobject
objectclass: organizationalrole
cn: admin
description: ldap administrator
userpassword: secret


dn: ou=people,dc=example,dc=com
objectclass: organizationalunit
ou: people

dn: ou=groups,dc=example,dc=com
objectclass: organizationalunit
ou: groups

dn: cn=test,ou=people,dc=example,dc=com
objectclass: inetorgperson
uid: test
sn: test
givenname: test
cn: test test
displayname: test test
userpassword: mypass
mail: test@example.com
title: system administrator

dn: cn=developers,ou=groups,dc=example,dc=com
objectclass: groupofnames
cn: developers
member: cn=test,ou=people,dc=example,dc=com



have followed guide here until populating database. https://help.ubuntu.com/11.04/server...ap-server.html

ldap server sets , can access using apache directory studio when try following filter (uid=test), hit back. when (&(uid=test)(memberof=cn=developers,ou=groups,dc=e xample,dc=com)) don't hits. using following filter in bugzilla authenticate valid users developers group:

(memberof=cn=developers,ou=groups,dc=example,dc=co m) gets , ldaploginattribute of "uid". if don't specify attribute can login user test in bugzilla, filter fails.

can please me?

it fails because there no 'memberof' attribute defined user.
ldap not create memberof if have mentioned 'member' under group
you'll have change filter


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Installation & Upgrades [ubuntu] openLDAP with memberOf attribute


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account