[Samba] login.bat has error?

Mohsen Pahlevanzadeh mohsen at pahlevanzadeh.org
Sun Jul 5 05:51:30 GMT 2009

Dear all,
I ran PDC on smbpasswd auth.
When i use following the command, i receive :
debian:/usr/local/etc/samba_3# ./bin/net rpc join mylove -U root 
Enter root's password:
Creation of workstation account failed
Unable to join domain MYLOVE.

my smb.conf is :

	netbios name = mylove
	server string = Axjooon 
	workgroup = mylove
	os level = 65
	prefered master = yes
	domain master = yes
	local master = yes
	domain logons = yes
;misc options
	time server = yes
	hide dot files = yes
	#client code page = 852
	#character set = ISO8859-2
	smb passwd file = /usr/local/etc/samba_3/lib/smbpasswd

	security = user
	guest ok = no
	invalid users = bin sys ftp man mail
	admin users = @admin
        wins support = yes
        # passdb backend = ldapsam:"ldap://ldap1.company.com
     #   passdb backend = ldapsam:ldap://
      # ldap admin dn = cn=Manager,dc=mylove,dc=com
        #ldap admin dn = cn=samba,ou=DSA,dc=company,dc=com
       # ldap suffix = dc=mylove,dc=com
#        ldap group suffix = ou=Groups
#        ldap user suffix = ou=Users
#        ldap machine suffix = ou=Computers
        #ldap idmap suffix = ou=Idmap
        #add user script = /usr/sbin/smbldap-useradd -m "%u"
        #ldap delete dn = Yes
        #delete user script = /usr/sbin/smbldap-userdel "%u"
      #  add machine script = /usr/sbin/smbldap-useradd -t 0 -w "%u"
       # add group script = /usr/sbin/smbldap-groupadd -p "%g"
        #delete group script = /usr/sbin/smbldap-groupdel "%g"
 #       add user to group script = /usr/sbin/smbldap-groupmod -m "%u"
 #       delete user from group script = /usr/sbin/smbldap-groupmod -x
"%u" "%g"
  #      set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%


	#domain admin group = @admin
	#domain admin users = root
	#encrypt password = yes

	log level = 2
	log file = /usr/local/etc/samba_3/var/log.%L
	max log size = 10000
	debug timestamp = yes
	syslog = 1

;user roaming profiles path
	logon path = \\%N\profiles\%u
;general logon script 
	logon script = logon.bat

	path = /home/samba/netlogon
	public = no
	writeable = no
	browseable = no
	valid users = root at debian

	path = /home/samba/profiles
	writeable = yes
	create mask = 0700
	directory mask = 0700
	browseable = no
	valid users = root at debian

my login.bat is :

@echo off
rem by robowarp.DeleteThis at gmx.de leave to public as it is , dont think
of asking me
rem created for samba 3 login, the bat files were creted on the fly by
rem this script is only valid for win2000/NT/XP
rem exec bat for logged in machine ( maybe software status or machine
data )
rem exec bat for login user
call %USERNAME%.bat
rem exec bat for different groups
rem ifmember.exe must be in the netlogon share download it at
ifmember Administrators
if errorlevel 1 call Administrators.bat
ifmember users
if errorlevel 1 call users.bat

Please help me................

More information about the samba mailing list