I think ldap.conf resides in /etc and it comes with nss_ldap

> G'day,
> 
> In my debian, I couldn't find 'ldap.conf' file in my debian box. Is this
> will have a big impact on my server?
> 
> After running the LDAP server with slapd.conf, I was hoping that I can
> export my local groups and user into LDAP. But after I run the server
> and query from it, it looks like that I only have 3 organisation
> structure (ou): Admin, People, Roaming.
> 
> The ou(s) are made from schema that we imported inside slapd.conf, and I
> think I import the necessary schema file already, at least the most
> common ones.
> 
> Anyhow, these are some of my confs files and some executed command with
> its result trhown by my terminal. Hopefully somebody can guide me :-)
> 
> Best Regards,
> 
> Phillip.
> 
> 
> /etc/ldap/slapd.conf
> 
> include         /etc/ldap/schema/core.schema
> include         /etc/ldap/schema/cosine.schema
> include         /etc/ldap/schema/nis.schema
> include         /etc/ldap/schema/inetorgperson.schema
> include         /etc/ldap/slapd.conf.access
> 
> schemacheck     on
> 
> pidfile         /var/run/slapd.pid
> argsfile        /var/run/slapd.args
> replogfile      /var/lib/ldap/replog
> loglevel        0
> 
> database        ldbm
> suffix  "dc=mylan,dc=net"
> rootdn  "cn=root,dc=mylan,dc=net"
> rootpw  secret
> directory       /var/lib/ldap
> index           objectClass,uid,uidNumber,gidNumber     eq
> index           cn,mail,surname,givenname                       eq,subinitial
> 
> --------------------------------------------
> 
> Some commands to review my configuration:
> 
> > ldapadd -x -D "cn=root,dc=mylan,dc=net" -W -f hosts.ldif
> Enter LDAP password: secret
> adding new entry
> "cn=localhost,ou=Hosts,dc=mylan,dc=net"
>         ldap_add :  no such object
>         matched DN "dc=mylan,dc=net"
>         additional info :  parent does not exist
> 
> ldif_record() = 32
> 
> ------------------------------------------
> 
> > ldapsearch -LL -H ldap://localhost -b"dc=mylan,dc=net" -x
> "(cn=localhost)"
> version: 1
> 
> ------------------------------------------
> 
> > ldapsearch -LL -H ldap://localhost -b"dc=mylan,dc=net" -x "(cn=*)"
> version: 1
> 
> dn: cn=admin,dc=mylan,dc=net
> objectClass: organizationalRole
> objectClass: simpleSecurityObject
> cn: admin
> description: LDAP administrator
> 
> ------------------------------------------
> 
> > ldapsearch -LL -H ldap://localhost -b"dc=mylan,dc=net" -x "(ou=*)"
> version: 1
> 
> dn: ou=People,dc=mylan,dc=net
> objectClass: organizationalUnit
> ou: People
> 
> dn: ou=Roaming,dc=mylan,dc=net
> objectClass: organizationalUnit
> ou: Roaming
> 
> -----------------------------------------
> 
> > ldapsearch -x -b 'dc=mylan,dc=net' '(objectclass=*)'
> version: 2
> 
> #
> # filter: (objectclass=*)
> # requesting: ALL
> #
> 
> # admin, mylan, net
> dn: cn=admin,dc=mylan,dc=net
> objectClass: organizationalRole
> objectClass: simpleSecurityObject
> cn: admin
> description: LDAP administrator
> 
> # People, mylan, net
> dn: ou=People,dc=mylan,dc=net
> objectClass: organizationalUnit
> ou: People
> 
> # Roaming, mylan, net
> dn: ou=Roaming,dc=mylan,dc=net
> objectClass: organizationalUnit
> ou: Roaming
> 
> # search result
> search: 2
> result: 0 Success
> 
> # numResponses: 4
> # numEntries: 3
> 
> --------------------------------------------
> 
> > ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
> version: 2
> 
> #
> # filter: (objectclass=*)
> # requesting: namingContexts 
> #
> 
> # search result
> search: 2
> result: 0 Success
> 
> # numResponses: 1
-- 
Regards,

Kevin Saenz
 
Spinaweb
I.T consultants
 
Ph: 02 4620 5130
Fax: 02 4625 9243
Mobile: 0418455661
Web: http://www.spinaweb.com.au

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to