RE: [Samba] Migration succesful , but can't add machine to domain

2004-04-27 Thread Marcus White
On Tue, 2004-04-27 at 01:14, LanRol wrote:
  To rule out the obvious... Did you perform smbpasswd -a root on the
  PDC? Did you also add admin users = root in your global section? Just
  curious are you actually using the network address 172.0.0.0 for your
  setup?
 
  Marcus O.
 
 No, I didn't add root to smbpasswd, but i don't want to use smbpasswd, I
 wanna use tdbsam, as well this case there isn't root in smbpasswd, is there?
 
 It isn't in global section.
 
 Yes, of course, 172.0.0.0, what is wrong, if I know well, it is a private IP
 range, like 10.x.x.x, well?
 
 Regards, Roland
 

Private IP Address ranges are:

10.0.0.0/8
172.16.0.0/16 - 172.31.0.0/16
192.168.0.0/16

Yes, you will need to run smbpasswd -a root. The program will update
the appropriate backend.

Marcus O.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Migration succesful , but can't add machine to domain

2004-04-27 Thread LanRol
  Private IP Address ranges are:
  
  10.0.0.0/8
  172.16.0.0/16 - 172.31.0.0/16
  192.168.0.0/16
 
 Oh, no problem, the firewall separates my 172.0.x.x from internet. :)

 
  Yes, you will need to run smbpasswd -a root. The program will update
  the appropriate backend.
  
  Marcus O.
  

 Ok, it works! Thanks
 
 My next question is:
 what about windows files? I think expecially for permissions, 
 access rules, how can I migrate them to my samba?
 
 regards,
 roland
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Migration succesful , but can't add machine to domain

2004-04-26 Thread LanRol
Well, can anybody help me?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of
 LanRol
 Sent: Monday, April 26, 2004 12:27 AM
 To: samba
 Subject: [Samba] Migration succesful , but can't add machine to domain
 
 
 Hi all,
 
 I migrate NT4 PDC to SAmba3 tdbsam backend. All users, groups, 
 machineboxes
 are ok.
 
 When I am try to add Win2k to domain, popup the a windows, I type 
 the DOMAIN
 ADMIN username, password, and I get a failer message:
 Bad user or password.
 
 I think my samba doesn't know where is passwd.tdb
 
 in my smb.conf:
 passdb backend = tdbsam:/etc/samba/passdb.tdb
 
 Any idea what is wrong?
 
 regards, roland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Migration succesful , but can't add machine to domain

2004-04-26 Thread enigma
On Mon, Apr 26, 2004 at 12:27:11AM +0200, LanRol wrote:
 Hi all,
 
 I migrate NT4 PDC to SAmba3 tdbsam backend. All users, groups, machineboxes
 are ok.
 
 When I am try to add Win2k to domain, popup the a windows, I type the DOMAIN
 ADMIN username, password, and I get a failer message:
 Bad user or password.
 
 I think my samba doesn't know where is passwd.tdb
 
 in my smb.conf:
 passdb backend = tdbsam:/etc/samba/passdb.tdb
 
 Any idea what is wrong?

What do your logs tell you?

What do you have for your add machine script = ?

Cheers!
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Migration succesful , but can't add machine to domain

2004-04-26 Thread LanRol
from [EMAIL PROTECTED]

 What do your logs tell you?

 What do you have for your add machine script = ?

 Cheers!
 --


my smb.conf is

[global]
workgroup   = SOLARSYSTEM
netbios name= Sedna
server string   = Samba szerver

wins support= yes
name resolve order  = wins lmhosts hosts bcast
socket options  = TCP_NODELAY SO_RCVBUF=8192
SO_SNDBUF=8192
os level= 64

local master= yes
preferred master= yes
domain master   = yes

domain logons   = yes
passdb backend  = tdbsam:/etc/samba/passdb.tdb

dos charset = CP852
unix charset= ISO8859-2
case sensitive  = no
default case= lower
preserve case   = yes

security= user
encrypt passwords   = yes

log file= /var/log/samba/log.%m
log level   = 3
max log size= 50
hosts allow = 127.0.0.1 172.0.0.0/255.255.255.0
interfaces  = eth1 172.0.0.0/255.255.255.0
127.0.0.1

logon path  = \\samba\profiles\%U
logon script= %G.cmd

add user script = /usr/sbin/useradd -s /bin/false
'%u'
add group script= /usr/sbin/groupadd '%g'  getent
group '%g' |awk -F: '{print $3}'
add user to group script= /usr/bin/gpasswd -a '%u' '%g'
add machine script  = /usr/sbin/useradd -d /dev/null -g
machines -s /bin/false -M '%u'
set primary group script= /usr/sbin/usermod -g '%g' '%u'
delete user script  = /usr/sbin/userdel '%s'
delete group script = /usr/sbin/groupdel '%g'
delete user from group script   = /usr/bin/gpasswd -d '%u' '%g'
...


# smbclient -U% -L localhost
Domain=[SOLARSYSTEM] OS=[Unix] Server=[Samba 3.0.2-SuSE]

Sharename  Type  Comment
-    ---
netlogon   Disk  login scriptek
installDisk  telepitok
works  Disk  Munkakonyvtar
public Disk  Kozos konyvtar
developmentDisk  A fejlesztok cuccai
IPC$   IPC   IPC Service (Samba szerver)
ADMIN$ IPC   IPC Service (Samba szerver)
Domain=[SOLARSYSTEM] OS=[Unix] Server=[Samba 3.0.2-SuSE]

Server   Comment
----
SEDNASamba szerver

WorkgroupMaster
----
SOLARSYSTEM  SEDNA


# smbclient //sedna/netlogon -u admin
session setup failed: NT_STATUS_LOGON_FAILURE

and log file shows:
[2004/04/26 21:37:17, 3] smbd/sec_ctx.c:push_sec_ctx(256)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2004/04/26 21:37:17, 3] smbd/uid.c:push_conn_ctx(287)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2004/04/26 21:37:17, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2004/04/26 21:37:17, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2004/04/26 21:37:17, 3] auth/auth.c:check_ntlm_password(219)
  check_ntlm_password:  Checking password for unmapped user
[EMAIL PROTECTED] with the new password interface
[2004/04/26 21:37:17, 3] auth/auth.c:check_ntlm_password(222)
  check_ntlm_password:  mapped user is: [EMAIL PROTECTED]
[2004/04/26 21:37:17, 3] smbd/sec_ctx.c:push_sec_ctx(256)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2004/04/26 21:37:17, 3] smbd/uid.c:push_conn_ctx(287)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2004/04/26 21:37:17, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2004/04/26 21:37:17, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2004/04/26 21:37:17, 3] auth/auth_sam.c:check_sam_security(200)
  check_sam_security: Couldn't find user 'root' in passdb file.
[2004/04/26 21:37:17, 3] auth/auth_winbind.c:check_winbind_security(80)
  check_winbind_security: Not using winbind, requested domain [SOLARSYSTEM]
was for this SAM.
[2004/04/26 21:37:17, 2] auth/auth.c:check_ntlm_password(312)
  check_ntlm_password:  Authentication for user [root] - [root] FAILED with
error NT_STATUS_NO_SUCH_USER
[2004/04/26 21:37:17, 3] smbd/process.c:timeout_processing(1104)
  timeout_processing: End of file from client (client has disconnected).
[2004/04/26 21:37:17, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2004/04/26 21:37:17, 2] 

RE: [Samba] Migration succesful , but can't add machine to domain

2004-04-26 Thread Marcus White
On Mon, 2004-04-26 at 16:38, LanRol wrote:
 from [EMAIL PROTECTED]
 
  What do your logs tell you?
 
  What do you have for your add machine script = ?
 
  Cheers!
  --
 
 
 my smb.conf is
 
 [global]
 workgroup   = SOLARSYSTEM
 netbios name= Sedna
 server string   = Samba szerver
 
 wins support= yes
 name resolve order  = wins lmhosts hosts bcast
 socket options  = TCP_NODELAY SO_RCVBUF=8192
 SO_SNDBUF=8192
 os level  = 64
 
 local master= yes
 preferred master= yes
 domain master   = yes
 
 domain logons   = yes
 passdb backend  = tdbsam:/etc/samba/passdb.tdb
 
 dos charset = CP852
 unix charset= ISO8859-2
 case sensitive  = no
 default case= lower
 preserve case   = yes
 
 security= user
 encrypt passwords   = yes
 
 log file= /var/log/samba/log.%m
 log level   = 3
 max log size= 50
 hosts allow = 127.0.0.1 172.0.0.0/255.255.255.0
 interfaces  = eth1 172.0.0.0/255.255.255.0
 127.0.0.1
 
 logon path  = \\samba\profiles\%U
 logon script= %G.cmd
 
 add user script = /usr/sbin/useradd -s /bin/false
 '%u'
 add group script= /usr/sbin/groupadd '%g'  getent
 group '%g' |awk -F: '{print $3}'
 add user to group script= /usr/bin/gpasswd -a '%u' '%g'
 add machine script  = /usr/sbin/useradd -d /dev/null -g
 machines -s /bin/false -M '%u'
 set primary group script= /usr/sbin/usermod -g '%g' '%u'
 delete user script  = /usr/sbin/userdel '%s'
 delete group script = /usr/sbin/groupdel '%g'
 delete user from group script   = /usr/bin/gpasswd -d '%u' '%g'
 ...
 
 
 # smbclient -U% -L localhost
 Domain=[SOLARSYSTEM] OS=[Unix] Server=[Samba 3.0.2-SuSE]
 
 Sharename  Type  Comment
 -    ---
 netlogon   Disk  login scriptek
 installDisk  telepitok
 works  Disk  Munkakonyvtar
 public Disk  Kozos konyvtar
 developmentDisk  A fejlesztok cuccai
 IPC$   IPC   IPC Service (Samba szerver)
 ADMIN$ IPC   IPC Service (Samba szerver)
 Domain=[SOLARSYSTEM] OS=[Unix] Server=[Samba 3.0.2-SuSE]
 
 Server   Comment
 ----
 SEDNASamba szerver
 
 WorkgroupMaster
 ----
 SOLARSYSTEM  SEDNA
 
 
 # smbclient //sedna/netlogon -u admin
 session setup failed: NT_STATUS_LOGON_FAILURE
 
 and log file shows:
 [2004/04/26 21:37:17, 3] smbd/sec_ctx.c:push_sec_ctx(256)
   push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
 [2004/04/26 21:37:17, 3] smbd/uid.c:push_conn_ctx(287)
   push_conn_ctx(0) : conn_ctx_stack_ndx = 0
 [2004/04/26 21:37:17, 3] smbd/sec_ctx.c:set_sec_ctx(288)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
 [2004/04/26 21:37:17, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
   pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
 [2004/04/26 21:37:17, 3] auth/auth.c:check_ntlm_password(219)
   check_ntlm_password:  Checking password for unmapped user
 [EMAIL PROTECTED] with the new password interface
 [2004/04/26 21:37:17, 3] auth/auth.c:check_ntlm_password(222)
   check_ntlm_password:  mapped user is: [EMAIL PROTECTED]
 [2004/04/26 21:37:17, 3] smbd/sec_ctx.c:push_sec_ctx(256)
   push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
 [2004/04/26 21:37:17, 3] smbd/uid.c:push_conn_ctx(287)
   push_conn_ctx(0) : conn_ctx_stack_ndx = 0
 [2004/04/26 21:37:17, 3] smbd/sec_ctx.c:set_sec_ctx(288)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
 [2004/04/26 21:37:17, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
   pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
 [2004/04/26 21:37:17, 3] auth/auth_sam.c:check_sam_security(200)
   check_sam_security: Couldn't find user 'root' in passdb file.
 [2004/04/26 21:37:17, 3] auth/auth_winbind.c:check_winbind_security(80)
   check_winbind_security: Not using winbind, requested domain [SOLARSYSTEM]
 was for this SAM.
 [2004/04/26 21:37:17, 2] auth/auth.c:check_ntlm_password(312)
   check_ntlm_password:  Authentication for user [root] - [root] FAILED with
 error NT_STATUS_NO_SUCH_USER
 [2004/04/26 21:37:17, 3] smbd/process.c:timeout_processing(1104)
   timeout_processing: End of file from client 

RE: [Samba] Migration succesful , but can't add machine to domain

2004-04-26 Thread LanRol
 To rule out the obvious... Did you perform smbpasswd -a root on the
 PDC? Did you also add admin users = root in your global section? Just
 curious are you actually using the network address 172.0.0.0 for your
 setup?

 Marcus O.

No, I didn't add root to smbpasswd, but i don't want to use smbpasswd, I
wanna use tdbsam, as well this case there isn't root in smbpasswd, is there?

It isn't in global section.

Yes, of course, 172.0.0.0, what is wrong, if I know well, it is a private IP
range, like 10.x.x.x, well?

Regards, Roland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Migration succesful , but can't add machine to domain

2004-04-25 Thread LanRol
Hi all,

I migrate NT4 PDC to SAmba3 tdbsam backend. All users, groups, machineboxes
are ok.

When I am try to add Win2k to domain, popup the a windows, I type the DOMAIN
ADMIN username, password, and I get a failer message:
Bad user or password.

I think my samba doesn't know where is passwd.tdb

in my smb.conf:
passdb backend = tdbsam:/etc/samba/passdb.tdb

Any idea what is wrong?

regards, roland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba