[Samba] adding users in smbpasswd file instead of Directory
Saravanan
suzuki_babu at yahoo.com
Sat Jul 23 12:07:45 GMT 2005
Hi,
I am new to ldap. I am following Gerald Carter ldap
system admin book.
when i add user using
[root at server openldap]# smbpasswd -a saravanan
[ OK ]
New SMB password:
Retype new SMB password:
it is updating users in /etc/samba/smbpasswd file
instead of updating the Directory. Both openldap and
samba runs in the same server. First I compiled samba
without --with-ldapsam. Now i compiled the samba with
--with-ldapsam. Still it is updating smbpasswd file.
smb.conf
[global]
netbios name = LDAP
workgroup = LDAP
server string = LDAP Rules the World
encrypt passwords = yes
unix password sync = false
security = user
smb passwd file = /etc/samba/smbpasswd
log file = /var/log/samba/log.%m
log level = 0
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192
SO_SNDBUF=8192
domain logons = true
os level = 80
preferred master = true
local master = true
domain master = true
dns proxy = true
wins support = true
# domain admin group = ajith
logon path = \\LDAP\profiles\%u
#logon path = \\%L\profile\%U
logon drive = U:
logon home = \\LDAP\%u
logon script = logon.cmd
#invalid users = root
ldap admin dn = "cn=root,dc=ldap,dc=com"
ldap server = ldap.ldap.com
ldap port = 389
ldap suffix = "dc=ldap,dc=com"
ldap ssl = no
ldap filter =
"(&(uid=%U)(objectclass=sambaAccount))"
[homes]
comment = Home Directories
valid users = %S
read only = false
create mask = 0600
directory mask = 0700
browseable = false
[netlogon]
comment = Network Logon Service
path = /usr/local/var/samba/netlogon
writable = no
# why would we want these?
# guest ok = yes
# share modes = no
[profiles]
path = /usr/local/var/samba/profiles
writeable = true
browseable = false
create mode = 0600
directory mode = 0700
# why would we want this?
# guest ok = yes
When I give "testparm" command to check the smb.conf
file it says
[root at server openldap]# testparm -f
/usr/local/samba/lib/smb.conf
Load smb config files from
/usr/local/samba/lib/smb.conf
Unknown parameter encountered: "ldap server"
Ignoring unknown parameter "ldap server"
Unknown parameter encountered: "ldap port"
Ignoring unknown parameter "ldap port"
Processing section "[homes]"
Processing section "[netlogon]"
Processing section "[profiles]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
Press enter to see a dump of your service definitions
Please help me to fix this.
Regards,
Saravanan
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
More information about the samba
mailing list