2014/1/23 Warron S French <[email protected]>

> Low Sensitivity/Aerospace Internal Use Only
>
> So, I finally got my slapd running after 4 weeks of working on LTB
> Project's OpenLDAP.
>
> I added some DN entries for OUs of Groups and Users, exactly like the
> following:
>
> Dn:                ou=Groups,dc=lab,dc=aero,dc=org
> ObjectClass:        organizationalUnit
> Ou:                Groups
>
>
> Dn:                ou=Users,dc=lab,dc=aero,dc=org
> ObjectClass:        organizationalUnit
> Ou:                Users
>
> I experience success adding these two DN entries.
>
> This morning I attempt to add some users, but my script tells me that I
> don't have any groups.  <THIS is true! I forgot to add actual groups>.
> So I go back and add actual groups, named staff and colux, by adding the
> following:
>
> Dn:                cn=staff,ou=Groups,dc=lab,dc=aero,dc=org
> ObjectClass:        posixGroup
> Cn:                staff
> GidNumber:        14000
>
> ---and---
>
>
> Dn:                cn=colux,ou=Groups,dc=lab,dc=aero,dc=org
> ObjectClass:        posixGroup
> Cn:                colux
> GidNumber:        1001
>
> These DN entries were also added to my LDAP DIT, but when I do an
> ldapsearch I get back an error response from ldapsearch.  The error I get,
> by running the following command:
>
> ldapsearch -x -D "cn=Directory Manager,dc=lab,dc=aero,dc=org"  -W  -LLL
> objectclass=posixGroup
>
> ERROR result:  "No such object (32)"
>


You forgot to specify search base. Use -b 'dc=areo,dc=org'.


> So, I say, I know I added these successfully, so let me readd them again.
>
> When I perform another ldapadd command of the 2 separate files for the 2
> DN entries above, I get the following response & error:
>
> Adding new entry "cn=staff,ou=Groups,dc=lab,dc=aero,dc=org"
> ldap_add: Already exists (68)
>
> So, do I have entries or not?  If I have entries, why can't I do an
> ldapsearch on them so that I can continue with my script to add users.
>
>
>

Just use correct arguments in ldapsearch like said above.


Clément.
_______________________________________________
ltb-users mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-users

Reply via email to