[Samba] Domain Member Server on Samba 3 with LDAP

mallapadi niranjan niranjan.ashok at gmail.com
Mon Dec 26 12:49:46 GMT 2005


Hi all

I have a Samba 3 PDC with LDAP, i want to configure another
Linux system as File server where all users home directories and other
shares
will be there. which i want to use with PDC,
I have made the file server as Domain Member server to my PDC . The
configuration files are below

A user when created in PDC using smbldap-useradd , i want the home directory
to be created in file server .
my domain is testdomain.com

but when use smbldap-useradd -a -m -C \\fsrv01\test test
the user test home directory is created in PDC itself, i have to manually
create the home directory in file server then
only i am able to access using PATH \\fsrv01\test

How can i add the user using smbldap-useradd so that home directory is
created in my file server and not in PDC.

in the file server, i have RHEL 4.0 and samba 3
For uid and Gid mapping, i have modified ldap.conf file in file server
###################################################################
host testdomain.com
base dc=msdpl,dc=com
binddn cn=manager,dc=msdpl,dc=com
bindpw secret
timelimit 30
nss_base_passwd        dc=msdpl,dc=com?sub
nss_base_shadow        dc=msdpl,dc=com?sub
nss_base_group        dc=msdpl,dc=com?sub
pam_password MD5
ssl no
####################################################################
and modified nsswitch.conf file in the file server
####################################################################
passwd:     files ldap
shadow:     files ldap
group:      files ldap
#####################################################################

my smb.conf file in the file server is follows
#####################################################################
# Global parameters
[global]
    workgroup = testdomain.com
    server string = File  Server
    security = DOMAIN
    log file = /var/log/samba/%m.log
    max log size = 50
    socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    printcap name = /etc/printcap
    dns proxy = No
    wins server = 192.168.129.20
    idmap uid = 10000-20000
    idmap gid = 10000-20000
    hosts allow = 192.168.128., 192.168.129., 192.168.130., 127.
    cups options = raw

[homes]
    comment = Home Directories
    read only = No
    browseable = No

[printers]
    comment = All Printers
    path = /var/spool/samba
    printable = Yes
    browseable = No
#####################################################################


More information about the samba mailing list