I want to use NT4's SRVTOOLS to manage the Samba-PDC,But when i use it ,i
mean ,when i add a account for windows,Samba can only receive the username
from the tool.
The others ,such as logon_path,Fullname and Description cannot be received
by samba. Is some thing wrong with samba?
what can i do ?
I add the information of a user to the LDAP-server by LDIF-file handly .It
works fine.And the SRVTOOLS can read it correctly.
Can samba receive all the informations from SRVTOOLS?
And my smb.conf is configured as this :
------------------------------------------------------------------------------------------------------------------
# Global parameters
[global]
workgroup = TECH.JSLC
netbios name = PDC-SRV
security = user
enable privileges = yes
server string = Samba Server %v
encrypt passwords = Yes
ldap passwd sync = Yes
unix password sync = Yes
passwd program = /usr/sbin/smbldap-passwd %u
passwd chat = "Changing password for*\nNew password*" %n\n
"*Retype new
password*" %n\n"
passwd chat debug = Yes
log level = 0
syslog = 0
log file = /var/log/samba/log.%m
max log size = 100000
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
mangling method = hash2
Dos charset = 850
Unix charset = ISO8859-1
logon script = hello.vbs
logon drive = H:
logon home = \\%L\%u
logon path = \\%N\profiles\%u
domain logons = Yes
domain master = Yes
os level = 65
preferred master = Yes
wins support = yes
passdb backend = ldapsam:ldap://127.0.0.1/
ldap admin dn = cn=admin,dc=tech,dc=jslc
ldap suffix = dc=tech,dc=jslc
ldap group suffix = ou=Groups
ldap user suffix = ou=Users
ldap machine suffix = ou=Computers
add user script = /usr/sbin/smbldap-useradd -m "%u"
delete user script = /usr/sbin/smbldap-userdel "%u"
add machine script = /usr/sbin/smbldap-useradd -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"
"%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u"
"%g"
set primary group script = /usr/sbin/smbldap-usermod -g '%g'
'%u'
[homes]
comment = Home Directories
browseable = no
writable = no
create mask = 0700
directory mask = 0700
[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
-------------------------------------------------------------------------------------------------------------------------------------------------------
When i use the SRVTOOLS to add someone ,for example , i add a account who is
andy,and its User Profile Path is \\PDC-SRV\profiles\andy ,Logon Script Name
is hello.vbs,and he is a member of Account Operators,Backup Operators,Domain
Admins.
When i add it, as the parameter "add user script =" is set to
"add user
script = /usr/sbin/smbldap-useradd -m "%u" " ,this mean that
,this script
smbldap-useradd will be executed,but the script has only a argument
("%u").
I mean ,can the other information User Profile ,Logon Script Name ,etc. be
received by samba ? I know that "%u" means andy.And what's for the
others?
Off couse,when i write all the info. into a LDIF-File ,then i use ldapadd to
add it to LDAP-Server. The SRVTOOLS can read it all.
Thanks.
On Fri, 5 Aug 2005 01:40 pm, kunyliu wrote:> I want to use NT4's SRVTOOLS to manage the Samba-PDC,But when i use it ,i > mean ,when i add a account for windows,Samba can only receive the username > from the tool. > The others ,such as logon_path,Fullname and Description cannot be received > by samba. Is some thing wrong with samba? > what can i do ? > I add the information of a user to the LDAP-server by LDIF-file handly .It > works fine.And the SRVTOOLS can read it correctly. > Can samba receive all the informations from SRVTOOLS?What's so hard about using even like Webmin/SWAT for that? -- illawarra computer services stephen kuhn mobile: 0410-728-389 illawarra and regional new south wales --------------------------------------------- windows/mac/linux home and business solutions fix it right. fix it now. fix it right now. --------------------------------------------- Booze is the answer. I don't remember the question.
so i use als the server tools with this setup. also make sure your ldap is setup correct with the access rights and define all the corrected attributes so you can adjust them through srvtools. I use in this setup the servertools, usrmgr.exe srvtools.exe i create users / groups with it. i only dont have all attrs in ldap defined, only the one i use. Louis>-----Oorspronkelijk bericht----- >Van: kunyliu [mailto:kunyliu@gmail.com] >Verzonden: vrijdag 5 augustus 2005 9:08 >Aan: Louis van Belle >Onderwerp: Re: [Samba] Help! About SAMBA_PDC and SRVTOOLS > >Thanks,but , Our company have to use the SRVTOOLS from NT4 to >manage the users.This is the key of the problem, but when I >use SRVTOOLS to add a user , it can not add all the infomation >of the user to LDAP-server , if i use LDIF_file to add user , >it can work as well . >So I think ,SRVTOOLS >So ,I have to use the SRVTOOLS to manage the SAMBA_LDAP. >Is there any good suggestion? Thanks. > > >2005/8/5, Louis van Belle <louis@van-belle.nl>: > > read this > howto setup samba with ldap ( based on debian ) > >http://lists.samba.org/archive/samba/2005-June/107614.html ><http://lists.samba.org/archive/samba/2005-June/107614.html> > > > printers and rights setup > http://lists.samba.org/archive/samba/2005-June/107615.html > > > >-----Oorspronkelijk bericht----- > >Van: samba-bounces+louis=van-belle.nl@lists.samba.org > >[mailto: >samba-bounces+louis=van-belle.nl@lists.samba.org ><mailto:samba-bounces+louis=van-belle.nl@lists.samba.org> ] > >Namens kunyliu > >Verzonden: vrijdag 5 augustus 2005 7:59 > >Aan: Stephen Kuhn > >CC: samba@lists.samba.org > >Onderwerp: Re: [Samba] Help! About SAMBA_PDC and SRVTOOLS > > > >Thanks,but i want to the users who use the SAMBA_PDC >use it as the > >windows_NT4_Server. > >So ,I have to use the SRVTOOLS to manage the SAMBA_LDAP. > >Is there any good suggestion? > > > > 2005/8/5, Stephen Kuhn <stephen.kuhn@gmx.net>: > >> > >> On Fri, 5 Aug 2005 01:40 pm, kunyliu wrote: > >> > I want to use NT4's SRVTOOLS to manage the Samba-PDC,But > >when i use it > >> ,i > >> > mean ,when i add a account for windows,Samba can >only receive the > >> username > >> > from the tool. > >> > The others ,such as logon_path,Fullname and >Description cannot be > >> received > >> > by samba. Is some thing wrong with samba? > >> > what can i do ? > >> > I add the information of a user to the LDAP-server by > >LDIF-file handly > >> .It > >> > works fine.And the SRVTOOLS can read it correctly. > >> > Can samba receive all the informations from SRVTOOLS? > >> > >> What's so hard about using even like Webmin/SWAT for that? > >> > >> -- > >> illawarra computer services > >> stephen kuhn > >> mobile: 0410-728-389 > >> illawarra and regional new south wales > >> --------------------------------------------- > >> windows/mac/linux home and business solutions > >> fix it right. fix it now. fix it right now. > >> --------------------------------------------- > >> Booze is the answer. I don't remember the question. > >> -- > >> To unsubscribe from this list go to the following >URL and read the > >> instructions: https://lists.samba.org/mailman/listinfo/samba > >> > >-- > >To unsubscribe from this list go to the following URL >and read the > >instructions: https://lists.samba.org/mailman/listinfo/samba > > > > > > >
normally yes, but i'm at work and we are not allowed to use msn of icq etc.. rules from the network administrator .. aka me..=20 I block all these poorts and sites on my proxy. =20 If you want you can email me directly, but maybe other people here can learn also from your problems.=20 Louis>-----Oorspronkelijk bericht----- >Van: kunyliu [mailto:kunyliu@gmail.com]=20 >Verzonden: vrijdag 5 augustus 2005 9:51 >Aan: Louis van Belle >Onderwerp: Re: [Samba] Help! About SAMBA_PDC and SRVTOOLS > >thank you very much .i have just used the ldapadmin to manage=20 >the server. i feel its so good .thanks a lot. >another question is that ,if the srvtools can send all the=20 >parameters to samba_PDC,and be received completely?=20 >=20 >=D0=BB=D0=BB=A3=A1 >