Samba 3 Performing sanity check on Samba configuration: FAILED

minimike

Berufsrevolutionär
Hi

Ich habe einen funktionierenden Samba 3 Server mit LDAP Backend aufgesetzt.

Alles funktioniert. Der letzte Dorn im Auge ist folgender

Code:
service samba restart
Performing sanity check on Samba configuration: FAILED

Wie gesagt der Server funktioniert. Nur warum bekomme ich beim restart solch eine Meldung? In den Logfiles habe ich nichts relevantes gesehen.
 
wie sieht die config denn aus?

Den Part mit dem Drucker könnte man noch überarbeiten. Jedoch halte ich das erst mal nicht für relevant.

Code:
[global]
	dos charset = CP932
	workgroup = HELL
	netbios name = PDC-HELL
	server string = Samba Server %v
	map to guest = Bad User
	passdb backend = ldapsam:ldap://127.0.0.1/
	passwd program = /usr/sbin/smbldap-passwd -u "%u"
	passwd chat = "Changing *\nNew password*" %n\n "*Retype new password*" %n\n"
	unix password sync = Yes
	syslog = 0
	log file = /var/log/samba/log.%U
	max log size = 100000
	time server = Yes
	deadtime = 10
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	printcap name = cups
	add user script = /usr/local/sbin/smbldap-useradd -m "%u"
	delete user script = /usr/local/sbin/smbldap-userdel "%u"
	add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
	add user to group script = /usr/sbin/local/smbldap-groupmod -m "%u" "%g"
	delete user from group script = /usr/local/sbin/smbldap-groupmod -x "%u" "%g"
	set primary group script = /usr/local/sbin/smbldap-usermod -g '%g' '%u'
	add machine script = /usr/local/sbin/smbldap-useradd -t 0 -w "%u"
	logon script = logon.bat
	logon path = \\%L\profiles\%U
	logon drive = H:
	logon home = \\%L\%U\.9xprofile
	domain logons = Yes
	os level = 200
	preferred master = Yes
	domain master = Yes
	wins support = Yes
	ldap admin dn = cn=manager,dc=hell
	ldap group suffix = ou=groups
	ldap machine suffix = ou=Computers
	ldap passwd sync = yes
	ldap suffix = dc=hell
	ldap ssl = no
	ldap user suffix = ou=people
	idmap config * : backend = tdb
	admin users = domain-admin
	create mask = 0640
	directory mask = 0750
	case sensitive = No
	dont descend = /proc,/dev,/etc,/lib,/lost+found

[netlogon]
	path = /usr/home/samba/netlogon/
	browseable = No

[homes]
	comment = Home Directories
	valid users = %U
	read only = No
	create mask = 0600
	directory mask = 0700
	browseable = No

[profiles]
	comment = Roaming Profiles
	path = /usr/home/samba/profiles
	valid users = %U
	read only = No
	create mask = 0600
	directory mask = 0700
	profile acls = Yes
	store dos attributes = Yes
	browseable = No
	csc policy = disable

[profiles.V2]
	copy = profiles

[printers]
	comment = Network Printers
	path = /usr/home/samba/spool/
	guest ok = Yes
	printable = Yes
	print ok = 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
	browseable = No

[print$]
	path = /usr/home/samba/printers
	valid users = "@Print Operators"
	write list = "@Print Operators"
	create mask = 0664
	directory mask = 0775
 
Ich habe den Fehler gefunden

Code:
passwd program = /usr/sbin/smbldap-passwd -u "%u"

Falscher Pfad. Ich habe die Konfig von einem Linux PDC genommen und ein bisserl angepasst. Jetzt geht alles
 
add user to group script = /usr/sbin/local/smbldap-groupmod -m "%u" "%g"


/usr/local.....
 
Gerne

Ich glaube der Port heisst dann /usr/ports/print/cups-samba

Die geschickt mit Samba verteilt ersparen dann die Treiberinstallationen

Leider keine Zeit und Hardware das zu testen. Ich habe aber ne VM fertig gemacht die ich zum Download die Tage anbiete.

Postfix, Cyrus, Samba, Cups und SOGo Groupware auf FreeBSD. Das ganze lässt sich dann mit GOSa verwalten
 
Zurück
Oben