Does anyone have a working ypldap.conf that can work with AD?

Here4s mine:

# cat
/etc/ypldap.conf

interval 100
domain "osalva.net"

provide map "passwd.byname"
provide map "passwd.byuid"
provide map "group.byname"
provide map "group.bygid"

directory "ad.osalva.net" {
   # directory options
   binddn "uxs...@osalva.net"
   bindcred "pass123"
   basedn "ou=UNIX,dc=osalva,dc=net"

   # passwd maps configuration
   passwd filter "(&(objectClass=user))"

   attribute name maps to "uid"
   fixed attribute passwd "*"
   attribute uid maps to "uidNumber"
   attribute gid maps to "gidNumber"
   attribute gecos maps to "cn"
   attribute home maps to "homeDirectory"
   fixed attribute shell "/bin/ksh"
   fixed attribute change "0"
   fixed attribute expire "0"
   fixed attribute class "ldap"

   # group maps configuration
   group filter "(objectClass=group)"

   attribute groupname maps to "cn"
   fixed attribute grouppasswd "*"
   attribute groupgid maps to "gidNumber"
   list groupmembers maps to "memberUid"
}

ypldap -dv gets stuck at:

# ypldap -dv
startup [debug mode]
configuration starting
applying configuration
connecting to directories
starting directory update
updates are over, cleaning up trees now
flattening trees

Running ldapsearch returns the info I want, but there might be something
wrong with ypldap configuration.
Please let me know if you have any working setup.


Regards,

--
Eduardo Alvarenga

Reply via email to