[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
help adding a group
I'm trying to add a group with 2 users to LDAP, but i'm running into
problems. When I add my group and then search for it, it shows a
userPassword, and garbles the memberUid of the first user I added to the
group. Any ideas?
testgroup.ldif:
dn: cn=testgroup,ou=Group,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us
objectClass: posixGroup
objectClass: top
cn: testgroup
userPassword: {crypt}x
gidNumber: 102
memberUid: adam
memberUid: testuser
ldapadd -D "cn=Manager,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us" -w
txxxxxxxx -x -v -f
testgroup.ldif
ldap_initialize( <DEFAULT> )
add objectClass:
posixGroup
top
add cn:
testgroup
add userPassword:
{crypt}x
add gidNumber:
102
add memberUid:
adam
testuser
adding new entry
"cn=testgroup,ou=Group,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us"
modify complete
ldapsearch -D 'cn=Manager,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us' -b
"cn=testgroup,ou=Group,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us" -w tical123 -x
# extended LDIF
#
# LDAPv3
# base <cn=testgroup,ou=Group,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us>
with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# testgroup, Group, gomer.mdah.state.ms.us
dn: cn=testgroup,ou=Group,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us
objectClass: posixGroup
objectClass: top
cn: testgroup
userPassword:: e2NyeXB0fXg=
gidNumber: 102
memberUid:: YWRhbSA=
memberUid: testuser
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1