André Ribas wrote:
Ok, then I'll have all the posix users in my ldap base, but how about
the samba users?
And a lot of samba users... but Samba needs that the user exists in
the linux too. So my problem is how to migrate both posix _and_ samba
users.
you migrate the posix users first with the migrate_passwd.pl script.
then set up nss_ldap using /etc/ldap.conf and then edit
/etc/nsswitch.conf and add ldap to the end of the passwd group and
shadow lines, so that pam will look for users in the ldap directory,
then migrate your samba users over using the pdbedit command in your
first email. be sure to set up migrate_common.ph, you want the
EXTENDED_SCHEMA=1 so that it will load samba attributes. also you will
need include /etc/openldap/schema/samba.schema in slapd.conf