[Samba] Netlogon script with samba
Matthieu Turpault
matthieu.turpault at comelis.fr
Wed Oct 9 13:11:02 GMT 2002
Hello,
I try to use a Netlogon script with Samba-LDAP 2.2.3 acting as a PDC.
I have searched on several forum but I cannot manage with finding any response.
Here is my configuration:
--- smb.conf ---
[global]
workgroup = MDK
server string = Samba Server %v
printing = cups
log file = /var/log/samba/log.%m
max log size = 5000
security = user
encrypt passwords = yes
ldap admin dn = "cn=manager,id=1"
ldap server = 10.0.1.10
ldap ssl = off
ldap port = 389
ldap suffix = "id=1"
ldap filter = "(&(uid=%u)(objectclass=sambaAccount))"
unix password sync = Yes
passwd program = /usr/local/sbin/smbldap-passwd.pl %u
passwd chat = *New*password*:* %n\r *Retype*new*password*:* %n\r *all*authentication*tokens*updated*successfully*
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
logon path = ""
logon script = STARTUP.BAT
dns proxy = no
netbios name = ThePDC
map to guest = bad user
password level = 0
null passwords = no
os level = 0
preferred master = yes
domain master = yes
wins support = no
dead time = 0
status = yes
domain logons = yes
interfaces = eth0
name resolve order = host bcast
load printers = yes
client code page = 850
character set = ISO8859-15
password server = 10.0.1.12
[homes]
comment = Home Directories
browseable = yes
writable = yes
available = yes
public = no
only user = no
preexec close = no
root preexec close = no
[Profiles]
path = /var/lib/samba/profiles
browseable = no
guest ok = yes
writable = yes
[netlogon]
available = yes
path = /var/lib/samba/netlogon
guest ok = yes
preexec close = no
root preexec close = no
browseable = no
comment = Network Logon SErvice
[printers]
comment = Les imprimantes
available = yes
printable = yes
browseable = yes
public = yes
--- end - smb.conf ---
--- STARTUP.BAT (/var/lib/samba/netlogon) ---
NET USE W: "\\THEPDC\%USERNAME%"
--- end - STARTUP.BAT (/var/lib/samba/netlogon) ---
When I try to bind to the PDC, I have the following log error:
[2002/10/09 14:41:23, 0] rpc_server/srv_netlog.c:api_net_sam_logon(206)
api_net_sam_logon: Failed to marshall NET_R_SAM_LOGON.
[2002/10/09 14:41:23, 0] rpc_server/srv_pipe.c:api_rpcTNP(1200)
api_rpcTNP: api_netlog_rpc: NET_SAMLOGON failed.
Can anyone point me a clue ?
Thanks in advance
Matthieu
More information about the samba
mailing list