Samba and OpenLdap Problem in Ubuntu 11.04 Server
I am trying to setup a samba ldap server my smb.conf file is -
# Global parameters
[global]
workgroup = NEXUSONE.LOCAL
netbios name = openserver
security = user
enable privileges = yes
#interfaces = 192.168.5.11
#username map = /etc/samba/smbusers
server string = Samba Server %v
#security = ads
encrypt passwords = Yes
#min passwd length = 3
#pam password change = no
#obey pam restrictions = No
# method 1:
#unix password sync = no
#ldap passwd sync = yes
# method 2:
unix password sync = yes
ldap passwd sync = yes
passwd program = /usr/sbin/
passwd chat = "Changing *\nNew password*" %n\n "*Retype new password*" %n\n"
log level = 0
syslog = 0
log file = /var/log/
max log size = 100000
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
mangling method = hash2
Dos charset = CP932
Unix charset = UTF-8
logon script = logon.bat
logon drive = H:
logon home =
logon path =
domain logons = Yes
domain master = Yes
os level = 65
preferred master = Yes
wins support = yes
# passdb backend = ldapsam:
passdb backend = ldapsam:
ldap admin dn = cn=admin,
#ldap admin dn = cn=samba,
ldap suffix = dc=nexusone,
ldap group suffix = ou=groups
ldap user suffix = ou=people
ldap machine suffix = ou=Computers
#ldap idmap suffix = ou=Idmap
add user script = /usr/sbin/
#ldap delete dn = Yes
delete user script = /usr/sbin/
add machine script = /usr/sbin/
add group script = /usr/sbin/
delete group script = /usr/sbin/
add user to group script = /usr/sbin/
delete user from group script = /usr/sbin/
set primary group script = /usr/sbin/
admin users = admindomain
ldap ssl = no
# printers configuration
#printer admin = @"Print Operators"
load printers = Yes
create mask = 0640
directory mask = 0750
#force create mode = 0640
#force directory mode = 0750
nt acl support = No
printing = cups
printcap name = cups
deadtime = 10
guest account = nobody
map to guest = Bad User
dont descend = /proc,/
show add printer wizard = yes
; to maintain capital letters in shortcuts in any of the profile folders:
preserve case = yes
short preserve case = yes
case sensitive = no
[netlogon]
path = /home/netlogon/
browseable = No
read only = yes
[profiles]
path = /home/profiles
read only = no
create mask = 0600
directory mask = 0700
browseable = No
guest ok = Yes
profile acls = yes
csc policy = disable
# next line is a great way to secure the profiles
#force user = %U
# next line allows administrator to access all profiles
#valid users = %U "Domain Admins"
[printers]
comment = Network Printers
#printer admin = @"Print Operators"
guest ok = yes
printable = yes
path = /home/spool/
browseable = No
read only = Yes
printable = Yes
print command = /usr/bin/lpr -P%p -r %s
lpq command = /usr/bin/lpq -P%p
lprm command = /usr/bin/lprm -P%p %j
# print command = /usr/bin/lpr -U%U@%M -P%p -r %s
# lpq command = /usr/bin/lpq -U%U@%M -P%p
# lprm command = /usr/bin/lprm -U%U@%M -P%p %j
# lppause command = /usr/sbin/lpc -U%U@%M hold %p %j
# lpresume command = /usr/sbin/lpc -U%U@%M release %p %j
# queuepause command = /usr/sbin/lpc -U%U@%M stop %p
# queueresume command = /usr/sbin/lpc -U%U@%M start %p
[print$]
path = /home/printers
guest ok = No
browseable = Yes
read only = Yes
valid users = @"Print Operators"
write list = @"Print Operators"
create mask = 0664
directory mask = 0775
[public]
path = /tmp
guest ok = yes
browseable = Yes
writable = yes
but when I am trying to create users it is showing
root@openserver
Cannot confirm gidNumber 1000 is free: checking for the next one
Cannot confirm gidNumber 1001 is free: checking for the next one
Cannot confirm gidNumber 1002 is free: checking for the next one
Cannot confirm gidNumber 1003 is free: checking for the next one
Cannot confirm gidNumber 1004 is free: checking for the next one
Cannot confirm gidNumber 1005 is free: checking for the next one
Cannot confirm gidNumber 1006 is free: checking for the next one
Cannot confirm gidNumber 1007 is free: checking for the next one
Cannot confirm gidNumber 1008 is free: checking for the next one
Cannot confirm gidNumber 1009 is free: checking for the next one
root@openserver
Cannot confirm uidNumber 1000 is free: checking for the next one
Cannot confirm uidNumber 1001 is free: checking for the next one
Cannot confirm uidNumber 1002 is free: checking for the next one
Cannot confirm uidNumber 1003 is free: checking for the next one
Cannot confirm uidNumber 1004 is free: checking for the next one
Cannot confirm uidNumber 1005 is free: checking for the next one
Cannot confirm uidNumber 1006 is free: checking for the next one
Cannot confirm uidNumber 1007 is free: checking for the next one
Cannot confirm uidNumber 1008 is free: checking for the next one
Cannot confirm uidNumber 1009 is free: checking for the next one
root@openserver
Changing UNIX and samba passwords for admindomain
New password:
Retype new password:
root@openserver
Unknown id: domainadmin
root@openserver
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu samba Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: