[Samba] Re: migration from winntpdc to sambabdc 3.0.4

John H Terpstra jht at samba.org
Thu Jun 3 01:21:15 GMT 2004


On Wednesday 02 June 2004 01:26, you wrote:
> hello sir tried to samba bdc from winnt pdc but its
> saya "failing cannot create user"

Suggest you read the Samba-3 by Example book, chapter 9.
You can either purchase this in hard copy from Amazon.Com or download it in 
PDF format from:

http://www.samba.org/samba/docs/Samba-Guide.pdf


Your configuration file will use an s,bpasswd file and is dependant on being 
able to create user accounts on your local OS. If your NT4 user accounts have 
upper-case characters or spaces in them, please check that using the command 
line tools you have specified in your smb.conf file it is possible to create 
those same accounts.

For example: If you have an account called "John Brown" does your OS permit 
you to create an account by doing:

	useradd -m John Brown

because that is what your entry:
	add user script = /usr/sbin/useradd %u

Now you may need to specify this as:
	add user script = /usr/sbin/useradd "%u"

which is the same as running from the command line:

	useradd -m "John Brown"

Then again, if your OS is Linux, you may find that the Linux user account name 
can not have any upper-case characters or spaces in them, in which case you 
will need to write a script that reqrites the UNIX account name into 
something the OS will accept.

- John T.


>
> logon script = logon.cmd
> logon path = \\%N\profiles\%u
> add user script = /usr/sbin/useradd %u
> delete user script = usr/sbin/userdel %u
> delete group script = /usr/sbin/groupdel %g
> add user to group script = /usr/bin/gpasswd -a %u %g
> set primary group script = /usr/sbin/usermod -g %g %u
> add machine script = /usr/sbin/useradd -d /dev/null -g
> 100 -s /bin/false -M %u
> Now create two new shares by adding the following
> entries at the bottom of your smb.conf file.
> [NETLOGON]
> path = /opt/ntlog
> read only = No
> create mask = 0777
> directory mask = 0777
> guest ok = Yes
> public = Yes
>
> [profiles]
> path = /opt/pro
> read only = No
> create mask = 0600
> directory mask = 0700
> guest ok = Yes
> vNext stop your Samba server
> #/etc/init.d/smb stop
> And join it into your NT Domain with
> #net rpc join -S NTSERVERNAME -w NTDOMAINNAME -U
> Administrator%password (replace password with your
> password)
>
>
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Friends.  Fun.  Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/

-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
OpenLDAP by Example, ISBN: 0131488732
Other books in production.



More information about the samba mailing list