Hi everybody, I set up Samba 3.0alpha1.9 on a RH7.2 and I want to configure it as a Primary Domain Controller. Below , my smb.conf: # Samba config file created using SWAT # from 0.0.0.0 (0.0.0.0) # Date: 2002/10/01 09:04:58 # Global parameters [global] ;Nom du domaine workgroup = MOMODOM ;Nom netBios de la machine netbios name = SRV2000 ;Commentaires qui sera affiche dans le vouisinage r?seau server string = Samba Server Beta Test 3.0 encrypt passwords = Yes password server = bin/passwd passwd program = /usr/bin/passwd %u unix password sync = No log file = /var/log/samba/SMB%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 domain admin group = root@SRV2000 ; add user script = /usr/sbin/useradd -d /dev/null -g 502 -s /bin/false -M %u logon script = logon.cmd logon path = \\%N\%u\profiles logon drive = H: logon home = \\SRV\%U domain logons = Yes domain admin group = @admin os level = 64 preferred master = True domain master = True dns proxy = No wins server = 172.25.4.12 default service = export\samba\test printing = lprng [homes] comment = Home Directories valid users = %S read only = No create mask = 0664 directory mask = 0775 browseable = No writable = Yes [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [export\samba\test] comment = Partage de test path = /tmp guest ok = Yes browsable = Yes writeable = Yes [netlogon] comment = Network Logon Services path = /home/netlogon writeable = no browseable = no write list = root And I create a Machine Trust Account, like this; #useradd -g admin -d /dev/null -c "Samba Test Machine" -s /bin/false SRV2000$ #passwd -l SRV2000$ #smbpasswd -a -m SRV2000$ (I found some docs with $ to put here and other without, What do I put????) For me, my Machine trust account is OK. To create a samba manager #smbpasswd -a root and I use it to join the domain. But when I try to join the Domain MOMODOM , it is refused because "user unknown or incorrect password" And in the samba log file : rpc_server/srv_netlog_nt.c:get_md4pw(154) get_md4pw: Workstation SRV2000$: no account in domain Someone has an Idea? Thanks in advance, Mo
On Tue, 2002-10-01 at 12:37, Kalkoul Morad wrote:> > Hi everybody, > > I set up Samba 3.0alpha1.9 on a RH7.2 and I want to configure it as a > Primary Domain Controller. > Below , my smb.conf: > # Samba config file created using SWAT > # from 0.0.0.0 (0.0.0.0) > # Date: 2002/10/01 09:04:58 > > # Global parameters > [global] > ;Nom du domaine > workgroup = MOMODOM > > ;Nom netBios de la machine > netbios name = SRV2000 > > ;Commentaires qui sera affiche dans le vouisinage r?seau > server string = Samba Server Beta Test 3.0 > > encrypt passwords = Yes > > password server = bin/passwdnope - this should be the name of the machine - probably just leave it out...> > passwd program = /usr/bin/passwd %u > > unix password sync = No > > log file = /var/log/samba/SMB%m.log > > max log size = 0 > > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > > domain admin group = root@SRV2000you don't need this (and i don't know if it works in samba3) instead you should use the group mapping tool smbgroupedit to set up a mapping between "Domain Admins" and the unix group "root"> > ; add user script = /usr/sbin/useradd -d /dev/null -g 502 -s > /bin/false -M %u > > logon script = logon.cmd > > logon path = \\%N\%u\profiles > > logon drive = H: > > logon home = \\SRV\%U > > domain logons = Yes > > domain admin group = @adminyou certainly shouldn't have two of these...> > os level = 64 > > preferred master = True > > domain master = True > > dns proxy = No > > wins server = 172.25.4.12 > > default service = export\samba\testwhat are you trying to do with this... it's not needed for a PDC> > printing = lprng > > [homes] > comment = Home Directories > valid users = %Syou don't need this line...> read only = No > create mask = 0664 > directory mask = 0775 > browseable = No > writable = Yes > > [printers] > comment = All Printers > path = /var/spool/samba > printable = Yes > browseable = No > > [export\samba\test] > comment = Partage de test > path = /tmp > guest ok = Yes > browsable = Yes > writeable = Yes > > [netlogon] > comment = Network Logon Services > path = /home/netlogon > writeable = no > browseable = no > write list = root > > And I create a Machine Trust Account, like this; > #useradd -g admin -d /dev/null -c "Samba Test Machine" -s /bin/false > SRV2000$ > #passwd -l SRV2000$ > #smbpasswd -a -m SRV2000$ (I found some docs with $ to put here and other > without, What do I put????)the $ sign needs to be there in the files. I think some versions of smbpasswd add the $ sign automatically just make sure that the files look right.. best wishes! brad
I think you need to add the "add machine script" command in your smb.conf. check man smb.conf for more info. Hope this helps. -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org] On Behalf Of Kalkoul Morad Sent: Tuesday, October 01, 2002 12:37 PM To: samba@lists.samba.org Subject: [Samba] XP Pro and Samba 3.0-alpha1.9 Hi everybody, I set up Samba 3.0alpha1.9 on a RH7.2 and I want to configure it as a Primary Domain Controller. Below , my smb.conf: # Samba config file created using SWAT # from 0.0.0.0 (0.0.0.0) # Date: 2002/10/01 09:04:58 # Global parameters [global] ;Nom du domaine workgroup = MOMODOM ;Nom netBios de la machine netbios name = SRV2000 ;Commentaires qui sera affiche dans le vouisinage r?seau server string = Samba Server Beta Test 3.0 encrypt passwords = Yes password server = bin/passwd passwd program = /usr/bin/passwd %u unix password sync = No log file = /var/log/samba/SMB%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 domain admin group = root@SRV2000 ; add user script = /usr/sbin/useradd -d /dev/null -g 502 -s /bin/false -M %u logon script = logon.cmd logon path = \\%N\%u\profiles logon drive = H: logon home = \\SRV\%U domain logons = Yes domain admin group = @admin os level = 64 preferred master = True domain master = True dns proxy = No wins server = 172.25.4.12 default service = export\samba\test printing = lprng [homes] comment = Home Directories valid users = %S read only = No create mask = 0664 directory mask = 0775 browseable = No writable = Yes [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [export\samba\test] comment = Partage de test path = /tmp guest ok = Yes browsable = Yes writeable = Yes [netlogon] comment = Network Logon Services path = /home/netlogon writeable = no browseable = no write list = root And I create a Machine Trust Account, like this; #useradd -g admin -d /dev/null -c "Samba Test Machine" -s /bin/false SRV2000$ #passwd -l SRV2000$ #smbpasswd -a -m SRV2000$ (I found some docs with $ to put here and other without, What do I put????) For me, my Machine trust account is OK. To create a samba manager #smbpasswd -a root and I use it to join the domain. But when I try to join the Domain MOMODOM , it is refused because "user unknown or incorrect password" And in the samba log file : rpc_server/srv_netlog_nt.c:get_md4pw(154) get_md4pw: Workstation SRV2000$: no account in domain Someone has an Idea? Thanks in advance, Mo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
I believed this was enough to add a machine: add user script = /usr/sbin/useradd -d /dev/null -g 502 -s /bin/false -M %u in my smb.conf -----Message d'origine----- De : Irving Carrion [mailto:debian@allinterior.com] Envoy? : mardi 1 octobre 2002 19:52 ? : 'Kalkoul Morad'; samba@lists.samba.org Objet : RE: [Samba] XP Pro and Samba 3.0-alpha1.9 I think you need to add the "add machine script" command in your smb.conf. check man smb.conf for more info. Hope this helps. -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org] On Behalf Of Kalkoul Morad Sent: Tuesday, October 01, 2002 12:37 PM To: samba@lists.samba.org Subject: [Samba] XP Pro and Samba 3.0-alpha1.9 Hi everybody, I set up Samba 3.0alpha1.9 on a RH7.2 and I want to configure it as a Primary Domain Controller. Below , my smb.conf: # Samba config file created using SWAT # from 0.0.0.0 (0.0.0.0) # Date: 2002/10/01 09:04:58 # Global parameters [global] ;Nom du domaine workgroup = MOMODOM ;Nom netBios de la machine netbios name = SRV2000 ;Commentaires qui sera affiche dans le vouisinage r?seau server string = Samba Server Beta Test 3.0 encrypt passwords = Yes password server = bin/passwd passwd program = /usr/bin/passwd %u unix password sync = No log file = /var/log/samba/SMB%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 domain admin group = root@SRV2000 ; add user script = /usr/sbin/useradd -d /dev/null -g 502 -s /bin/false -M %u logon script = logon.cmd logon path = \\%N\%u\profiles logon drive = H: logon home = \\SRV\%U domain logons = Yes domain admin group = @admin os level = 64 preferred master = True domain master = True dns proxy = No wins server = 172.25.4.12 default service = export\samba\test printing = lprng [homes] comment = Home Directories valid users = %S read only = No create mask = 0664 directory mask = 0775 browseable = No writable = Yes [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [export\samba\test] comment = Partage de test path = /tmp guest ok = Yes browsable = Yes writeable = Yes [netlogon] comment = Network Logon Services path = /home/netlogon writeable = no browseable = no write list = root And I create a Machine Trust Account, like this; #useradd -g admin -d /dev/null -c "Samba Test Machine" -s /bin/false SRV2000$ #passwd -l SRV2000$ #smbpasswd -a -m SRV2000$ (I found some docs with $ to put here and other without, What do I put????) For me, my Machine trust account is OK. To create a samba manager #smbpasswd -a root and I use it to join the domain. But when I try to join the Domain MOMODOM , it is refused because "user unknown or incorrect password" And in the samba log file : rpc_server/srv_netlog_nt.c:get_md4pw(154) get_md4pw: Workstation SRV2000$: no account in domain Someone has an Idea? Thanks in advance, Mo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
add machine script is not validate by checking with testparm.Is it normal? -----Message d'origine----- De : Irving Carrion [mailto:debian@allinterior.com] Envoy? : mercredi 2 octobre 2002 15:14 ? : 'Kalkoul Morad'; samba@lists.samba.org Objet : RE: [Samba] XP Pro and Samba 3.0-alpha1.9 Not in my case. The "add user script" worked in the previous version but when I upgraded from Samba 2.2.3a to the latest CVS version it no longer worked. The way I got it working was to use the "add machine script". Now it works just fine. Anyway, try them both -n- see what ya get. IRV -----Original Message----- From: Kalkoul Morad [mailto:M-Kalkoul@arte-tv.com] Sent: Wednesday, October 02, 2002 3:04 AM To: 'Irving Carrion'; Kalkoul Morad; samba@lists.samba.org Subject: RE: [Samba] XP Pro and Samba 3.0-alpha1.9 I believed this was enough to add a machine: add user script = /usr/sbin/useradd -d /dev/null -g 502 -s /bin/false -M %u in my smb.conf -----Message d'origine----- De : Irving Carrion [mailto:debian@allinterior.com] Envoy? : mardi 1 octobre 2002 19:52 ? : 'Kalkoul Morad'; samba@lists.samba.org Objet : RE: [Samba] XP Pro and Samba 3.0-alpha1.9 I think you need to add the "add machine script" command in your smb.conf. check man smb.conf for more info. Hope this helps. -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org] On Behalf Of Kalkoul Morad Sent: Tuesday, October 01, 2002 12:37 PM To: samba@lists.samba.org Subject: [Samba] XP Pro and Samba 3.0-alpha1.9 Hi everybody, I set up Samba 3.0alpha1.9 on a RH7.2 and I want to configure it as a Primary Domain Controller. Below , my smb.conf: # Samba config file created using SWAT # from 0.0.0.0 (0.0.0.0) # Date: 2002/10/01 09:04:58 # Global parameters [global] ;Nom du domaine workgroup = MOMODOM ;Nom netBios de la machine netbios name = SRV2000 ;Commentaires qui sera affiche dans le vouisinage r?seau server string = Samba Server Beta Test 3.0 encrypt passwords = Yes password server = bin/passwd passwd program = /usr/bin/passwd %u unix password sync = No log file = /var/log/samba/SMB%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 domain admin group = root@SRV2000 ; add user script = /usr/sbin/useradd -d /dev/null -g 502 -s /bin/false -M %u logon script = logon.cmd logon path = \\%N\%u\profiles logon drive = H: logon home = \\SRV\%U domain logons = Yes domain admin group = @admin os level = 64 preferred master = True domain master = True dns proxy = No wins server = 172.25.4.12 default service = export\samba\test printing = lprng [homes] comment = Home Directories valid users = %S read only = No create mask = 0664 directory mask = 0775 browseable = No writable = Yes [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [export\samba\test] comment = Partage de test path = /tmp guest ok = Yes browsable = Yes writeable = Yes [netlogon] comment = Network Logon Services path = /home/netlogon writeable = no browseable = no write list = root And I create a Machine Trust Account, like this; #useradd -g admin -d /dev/null -c "Samba Test Machine" -s /bin/false SRV2000$ #passwd -l SRV2000$ #smbpasswd -a -m SRV2000$ (I found some docs with $ to put here and other without, What do I put????) For me, my Machine trust account is OK. To create a samba manager #smbpasswd -a root and I use it to join the domain. But when I try to join the Domain MOMODOM , it is refused because "user unknown or incorrect password" And in the samba log file : rpc_server/srv_netlog_nt.c:get_md4pw(154) get_md4pw: Workstation SRV2000$: no account in domain Someone has an Idea? Thanks in advance, Mo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
I am a beginner on samba, can you explain me the means of CVS? and with this release can you manage Active Directory? Thanks a lot -----Message d'origine----- De : Irving Carrion [mailto:debian@allinterior.com] Envoy? : mercredi 2 octobre 2002 16:07 ? : 'Kalkoul Morad'; samba@lists.samba.org Objet : RE: [Samba] XP Pro and Samba 3.0-alpha1.9 I have Samba version 2.999+3.0cvs20 and testparm does not complain about "add machine script " command. I'm really not sure why your testparm says it's not valid. Did you try it though? This is what I get from the docs: ///BEGIN DOC add machine script (G) This is the full pathname to a script that will be run by smbd(8) when a machine is added to it's domain using the administrator username and password method. This option is only required when using sam back-ends tied to the Unix uid method of RID calculation such as smbpasswd. This option is only available in Samba 3.0. Default: add machine script = <empty string> Example: add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u ///END DOC Hope this info helps! IRV -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org] On Behalf Of Kalkoul Morad Sent: Wednesday, October 02, 2002 9:53 AM To: 'Irving Carrion'; Kalkoul Morad; samba@lists.samba.org Subject: RE: [Samba] XP Pro and Samba 3.0-alpha1.9 add machine script is not validate by checking with testparm.Is it normal? -----Message d'origine----- De : Irving Carrion [mailto:debian@allinterior.com] Envoy? : mercredi 2 octobre 2002 15:14 ? : 'Kalkoul Morad'; samba@lists.samba.org Objet : RE: [Samba] XP Pro and Samba 3.0-alpha1.9 Not in my case. The "add user script" worked in the previous version but when I upgraded from Samba 2.2.3a to the latest CVS version it no longer worked. The way I got it working was to use the "add machine script". Now it works just fine. Anyway, try them both -n- see what ya get. IRV -----Original Message----- From: Kalkoul Morad [mailto:M-Kalkoul@arte-tv.com] Sent: Wednesday, October 02, 2002 3:04 AM To: 'Irving Carrion'; Kalkoul Morad; samba@lists.samba.org Subject: RE: [Samba] XP Pro and Samba 3.0-alpha1.9 I believed this was enough to add a machine: add user script = /usr/sbin/useradd -d /dev/null -g 502 -s /bin/false -M %u in my smb.conf -----Message d'origine----- De : Irving Carrion [mailto:debian@allinterior.com] Envoy? : mardi 1 octobre 2002 19:52 ? : 'Kalkoul Morad'; samba@lists.samba.org Objet : RE: [Samba] XP Pro and Samba 3.0-alpha1.9 I think you need to add the "add machine script" command in your smb.conf. check man smb.conf for more info. Hope this helps. -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org] On Behalf Of Kalkoul Morad Sent: Tuesday, October 01, 2002 12:37 PM To: samba@lists.samba.org Subject: [Samba] XP Pro and Samba 3.0-alpha1.9 Hi everybody, I set up Samba 3.0alpha1.9 on a RH7.2 and I want to configure it as a Primary Domain Controller. Below , my smb.conf: # Samba config file created using SWAT # from 0.0.0.0 (0.0.0.0) # Date: 2002/10/01 09:04:58 # Global parameters [global] ;Nom du domaine workgroup = MOMODOM ;Nom netBios de la machine netbios name = SRV2000 ;Commentaires qui sera affiche dans le vouisinage r?seau server string = Samba Server Beta Test 3.0 encrypt passwords = Yes password server = bin/passwd passwd program = /usr/bin/passwd %u unix password sync = No log file = /var/log/samba/SMB%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 domain admin group = root@SRV2000 ; add user script = /usr/sbin/useradd -d /dev/null -g 502 -s /bin/false -M %u logon script = logon.cmd logon path = \\%N\%u\profiles logon drive = H: logon home = \\SRV\%U domain logons = Yes domain admin group = @admin os level = 64 preferred master = True domain master = True dns proxy = No wins server = 172.25.4.12 default service = export\samba\test printing = lprng [homes] comment = Home Directories valid users = %S read only = No create mask = 0664 directory mask = 0775 browseable = No writable = Yes [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [export\samba\test] comment = Partage de test path = /tmp guest ok = Yes browsable = Yes writeable = Yes [netlogon] comment = Network Logon Services path = /home/netlogon writeable = no browseable = no write list = root And I create a Machine Trust Account, like this; #useradd -g admin -d /dev/null -c "Samba Test Machine" -s /bin/false SRV2000$ #passwd -l SRV2000$ #smbpasswd -a -m SRV2000$ (I found some docs with $ to put here and other without, What do I put????) For me, my Machine trust account is OK. To create a samba manager #smbpasswd -a root and I use it to join the domain. But when I try to join the Domain MOMODOM , it is refused because "user unknown or incorrect password" And in the samba log file : rpc_server/srv_netlog_nt.c:get_md4pw(154) get_md4pw: Workstation SRV2000$: no account in domain Someone has an Idea? Thanks in advance, Mo -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
On Wed, 2002-10-02 at 10:21, Kalkoul Morad wrote:> I am a beginner on samba, can you explain me the means of CVS?CVS is a source code versioning system the most recent(and unstable) code is taken directly from that repository.> > and with this release can you manage Active Directory?i think that the active directory stuff is still a work in progress brad