[Samba] Getting Windows XP drivers from print$

2009-12-04 Thread Torkil Svensgaard

Hi list

I have two very similar printers set up on CUPS and Samba is configured 
to share the drivers. I had been playing around with setting up a RAW 
printer queue with native Windows drivers but eventually gave up on 
that. I deleted all printers and redid them from scratch and now only 
one of them works.


Setup:
Ubuntu Karmic 2.6.31-15-server #50-Ubuntu SMP Tue Nov 10 15:50:36 UTC 
2009 x86_64 GNU/Linux


Samba Version 3.4.0

rpcclient $ enumprinters
flags:[0x80]
name:[\\freud\gyldendal]
description:[\\freud\gyldendal,gyldendal,]
comment:[gyldendal]

flags:[0x80]
name:[\\freud\goethe]
description:[\\freud\goethe,goethe,]
comment:[goethe]

rpcclient $ enumdrivers

[Windows NT x86]
Printer Driver Info 1:
Driver Name: [goethe]

Printer Driver Info 1:
Driver Name: [gyldendal]

rpcclient $ getdriver gyldendal

[Windows NT x86]
Printer Driver Info 3:
Version: [3]
Driver Name: [gyldendal]
Architecture: [Windows NT x86]
Driver Path: [\\LOCALHOST\print$\W32X86\3\pscript5.dll]
Datafile: [\\LOCALHOST\print$\W32X86\3\gyldendal.ppd]
Configfile: [\\LOCALHOST\print$\W32X86\3\ps5ui.dll]
Helpfile: [\\LOCALHOST\print$\W32X86\3\pscript.hlp]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\pscript5.dll]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\gyldendal.ppd]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\ps5ui.dll]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\pscript.hlp]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\pscript.ntf]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\cups6.ini]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\cupsps6.dll]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\cupsui6.dll]
Monitorname: []
Defaultdatatype: [RAW]

rpcclient $ getdriver goethe

[Windows NT x86]
Printer Driver Info 3:
Version: [3]
Driver Name: [goethe]
Architecture: [Windows NT x86]
Driver Path: [\\LOCALHOST\print$\W32X86\3\pscript5.dll]
Datafile: [\\LOCALHOST\print$\W32X86\3\goethe.ppd]
Configfile: [\\LOCALHOST\print$\W32X86\3\ps5ui.dll]
Helpfile: [\\LOCALHOST\print$\W32X86\3\pscript.hlp]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\pscript5.dll]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\goethe.ppd]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\ps5ui.dll]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\pscript.hlp]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\pscript.ntf]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\cups6.ini]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\cupsps6.dll]
Dependentfiles: [\\LOCALHOST\print$\W32X86\3\cupsui6.dll]
Monitorname: []
Defaultdatatype: [RAW]

r...@freud:/var/lib/samba/printers/W32X86/3# ls -la
total 1524
drwxrwxrwx 2 root root   4096 2009-12-04 10:52 .
drwxrwxrwx 3 root root   4096 2009-12-03 13:46 ..
-rwxrwxrwx 1 root root 72 2009-12-03 15:30 cups6.ini
-rwxrwxrwx 1 root root  12568 2009-12-03 12:50 cupsps6.dll
-rwxrwxrwx 1 root root  13672 2009-12-03 12:50 cupsui6.dll
-rwxrwxrwx 1 root root  24131 2009-12-03 15:30 goethe.ppd
-rwxrwxrwx 1 root root  77452 2009-12-03 15:19 gyldendal.ppd
-rwxrwxrwx 1 root root 130048 2009-12-03 12:50 ps5ui.dll
-rwxrwxrwx 1 root root 455168 2009-12-03 12:50 pscript5.dll
-rwxrwxrwx 1 root root  26192 2009-12-03 15:30 pscript.hlp
-rwxrwxrwx 1 root root 792644 2009-12-03 15:30 pscript.ntf

Connecting to goethe from Windows XP works and it copies the driver 
files. Connection to gyldendal does not, it doesn't copy the files.


Looking in the log file, this is what appears when I try to connect to 
the printer that doesn't work:


[2009/12/04 10:16:05,  2] 
rpc_server/srv_spoolss_nt.c:234(find_printer_index_by_hnd)
  find_printer_index_by_hnd: Printer handle not found: 
find_printer_index_by_hnd: Printer handle not found: 
close_printer_handle: Invalid handle (OTHER:18607:4256)


I'm guessing some sort of internal list is messed up maybe? Any ideas?

Thanks,

Torkil



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


Re: [Samba] How create OU

2009-12-04 Thread LiPi -
Try LDAP Account Manager or Phpldapadmin.

They are both great tools for administrating ldap graphically.

The first is more complete than the second.


You can also create Ou's and something with ldif files. Create an LDIF file
and use ldapmodify to inject it to slapd.



2009/11/19 Gaiseric Vandal gaiseric.van...@gmail.com

 I use Apache Directory Studio to manage my LDAP structure, for things like
 creating OU's, unix users etc.  (I  am using Sun's ldap server, and didn't
 like the admin tools provided.)

 -Original Message-
 From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org]
 On Behalf Of Bruno Steven
 Sent: Wednesday, November 18, 2009 3:59 AM
 To: openldap-techni...@openldap.org
 Subject: [Samba] How create OU

 Hi ...

 I have squid integrated with OpenLdap . I need create an Ou and a lot of
 groups but my Openldap is integrated with Samba too. How I could create OUs
 in enviroment integrated ? For examaple, I create users using smbldap-tools
 but this tool doesn´t create Ou.

 Thanks .



 --
 Bruno Steven - Administrador de sistemas.
 LPIC-1 - LPI ID: lpi000119659 / Code: p2e4wz47e4
 https://www.lpi.org/caf/Xamman/certification

 MCP-Windows 2003 - TranscriptID: 793804 / Access Code: 080089100
 https://mcp.microsoft.com/authenticate/validatemcp.aspx


 P Antes de imprimir pense em sua responsabilidade e comprometimento com o
 Meio Ambiente. Before printing this message, think about your ecologic
 responsability and environment commitment.
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba

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

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

[Samba] drive mapping for one user

2009-12-04 Thread Hubert Choma
I would like to map a drive letter  for one user via netlogon script. 
How can I do it ?
The user is in geo group and I would like to map only for one user not 
group.
echo off
C:
CD \
NET TIME \\SERWER /SET /YES
NET USE * /D /YES
REM NET USE H: /HOME
NET USE R: \\SERWER\RASTRY$
NET USE S: \\SERWER\EVID$
NET USE T: \\SERWER\OSRODEK$
NET USE U: \\SERWER\TMP$
NET USE X: \\SERWER\OSNOWA$
NET USE Y: \\SERWER\GEO1$
NET USE Z: \\SERWER\GEO$
NET USE W: \\SERWER\SKANY
regedit /s \\serwer\netlogon\placesbargeo.reg


Triumf polskich bokserów w Ełku
Zobacz zdjęcia z walk:
http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fwojak.htmlsid=926


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


Re: [Samba] drive mapping for one user

2009-12-04 Thread Moray Henderson
Hubert Choma wrote:
I would like to map a drive letter  for one user via netlogon script.
How can I do it ?
The user is in geo group and I would like to map only for one user not
group.
echo off
C:
CD \
NET TIME \\SERWER /SET /YES
NET USE * /D /YES
REM NET USE H: /HOME
NET USE R: \\SERWER\RASTRY$
NET USE S: \\SERWER\EVID$
NET USE T: \\SERWER\OSRODEK$
NET USE U: \\SERWER\TMP$
NET USE X: \\SERWER\OSNOWA$
NET USE Y: \\SERWER\GEO1$
NET USE Z: \\SERWER\GEO$
NET USE W: \\SERWER\SKANY
regedit /s \\serwer\netlogon\placesbargeo.reg


We have a line

if exist H:\logon.bat call H:\logon.bat

Then anything specific to an individual user can go in their personal
logon script.


Moray.
To err is human.  To purr, feline




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


Re: [Samba] drive mapping for one user

2009-12-04 Thread Richard Lamboj

Am Friday 04 December 2009 12:18:14 schrieb Hubert Choma:
 I would like to map a drive letter  for one user via netlogon script.
 How can I do it ?
 The user is in geo group and I would like to map only for one user not
 group.
 echo off
 C:
 CD \
 NET TIME \\SERWER /SET /YES
 NET USE * /D /YES
 REM NET USE H: /HOME
 NET USE R: \\SERWER\RASTRY$
 NET USE S: \\SERWER\EVID$
 NET USE T: \\SERWER\OSRODEK$
 NET USE U: \\SERWER\TMP$
 NET USE X: \\SERWER\OSNOWA$
 NET USE Y: \\SERWER\GEO1$
 NET USE Z: \\SERWER\GEO$
 NET USE W: \\SERWER\SKANY
 regedit /s \\serwer\netlogon\placesbargeo.reg

 
 Triumf polskich bokserów w Ełku
 Zobacz zdjęcia z walk:
 http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fwojak.htmlsid=9
26

Hello,

you can specify a logon script for this user:

If you use the smbldap-tools:
smbldap-usermod my_username --sambaLogonScript my_logon_script.bat

or with pdbedit:
pdbedit -u my_username -S my_logon_script.bat

Kind Regards

Richard Lamboj
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] fedora-ds and smb4 (a9)

2009-12-04 Thread collen
hi i'm trying to start testing samba4
i used:
http://wiki.samba.org/index.php/Samba4/LDAP_Backend/Samba_4_alpha_9_with_Fedora_DS
as a start... so far so good, but i get stuck with th provision..

setup/provision \
--host-name=dev --root=root \
--domain=JORDAN --realm=JORDAN.NET \
--server-role=domain controller \
--ldap-backend-type=fedora-ds \
--slapd-path=/usr/sbin/ns-slapd --setup-ds-path=/usr/sbin/setup-ds.pl

gives:

Administrator password will be set randomly!
bin/python/samba/../../../setup/../../examples/LDAP/samba.schema: No such
file or directory
Traceback (most recent call last):
  File setup/provision, line 222, in module
nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode)
  File bin/python/samba/provision.py, line 1167, in provision
setup_ds_path=setup_ds_path)
  File bin/python/samba/provisionbackend.py, line 579, in __init__
raise Exception(Unable to convert Samba 3 schema.)
Exception: Unable to convert Samba 3 schema.


can see that it needs the ldap schema, but it's not in the source dir...
anny idea where to find the exaples dir

Cheers Collen

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


Re: [Samba] fedora-ds and smb4 (a9)

2009-12-04 Thread Weiss, Benjamin
I've got an (almost) working Samba4 installation (can't get replication 
working), and did a locate samba.schema.  No dice...

-Original Message-
From: col...@hermanjordan.nl [mailto:col...@hermanjordan.nl] 
Sent: Friday, December 04, 2009 6:36 AM
To: samba@lists.samba.org
Subject: [Samba] fedora-ds and smb4 (a9)

hi i'm trying to start testing samba4
i used:
http://wiki.samba.org/index.php/Samba4/LDAP_Backend/Samba_4_alpha_9_with_Fedora_DS
as a start... so far so good, but i get stuck with th provision..

setup/provision \
--host-name=dev --root=root \
--domain=JORDAN --realm=JORDAN.NET \
--server-role=domain controller \
--ldap-backend-type=fedora-ds \
--slapd-path=/usr/sbin/ns-slapd --setup-ds-path=/usr/sbin/setup-ds.pl

gives:

Administrator password will be set randomly!
bin/python/samba/../../../setup/../../examples/LDAP/samba.schema: No 
such
file or directory
Traceback (most recent call last):
  File setup/provision, line 222, in module
nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode)
  File bin/python/samba/provision.py, line 1167, in provision
setup_ds_path=setup_ds_path)
  File bin/python/samba/provisionbackend.py, line 579, in __init__
raise Exception(Unable to convert Samba 3 schema.)
Exception: Unable to convert Samba 3 schema.


can see that it needs the ldap schema, but it's not in the source dir...
anny idea where to find the exaples dir

Cheers Collen

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


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


Re: [Samba] drive mapping for one user

2009-12-04 Thread Charles Marcus
On 12/4/2009, Hubert Choma (hubert...@wp.pl) wrote:
 I would like to map a drive letter  for one user via netlogon script. 
 How can I do it ?
 The user is in geo group and I would like to map only for one user not 
 group.

I would just add either of the lines to your existing script:

:: call username specific .bat file
if %username% == user call \\SERVER\netlogon\user.bat

The above obviously requires the user.bat file to reside in the NETLOGON
share and contain whetever user specific stuff you need.

or if all you need to do is map just one drive:

:: map username drive
if %username% == user NET USE X: \\SERVER\SHARE

You can also map drives for people in a group using the ISMEMBER check.
This requires the ISMEMBER.EXE (freely available online) executable to
be in the NETLOGON share:

:: map drive for GroupName users
\\SERVER\netlogon\ismember Domain\GroupName
if errorlevel 1 net use x: \\SERVER\PATH\TO\DIR /persistent:no

 echo off
 C:
 CD \
 NET TIME \\SERWER /SET /YES
 NET USE * /D /YES
 REM NET USE H: /HOME
 NET USE R: \\SERWER\RASTRY$
 NET USE S: \\SERWER\EVID$
 NET USE T: \\SERWER\OSRODEK$
 NET USE U: \\SERWER\TMP$
 NET USE X: \\SERWER\OSNOWA$
 NET USE Y: \\SERWER\GEO1$
 NET USE Z: \\SERWER\GEO$
 NET USE W: \\SERWER\SKANY
 regedit /s \\serwer\netlogon\placesbargeo.reg




-- 

Best regards,

Charles Marcus
I.T. Director
Media Brokers International, Inc.
678.514.6200 x224
678.514.6299 fax
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Is this the wrong forum for Samba4 DRS questions?

2009-12-04 Thread Weiss, Benjamin
Should I be directing Samba4 Directory Replication questions to the
samba-technical list?

 

Thanks!


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


Re: [Samba] how to join to AD ?

2009-12-04 Thread mistofeles

I reinstalled the system and tried to follow the guidelines above.

One thing:
There is these lines in smb.conf and I have found no good information about
them:
 idmap uid = 1-200  
 idmap gid = 5000-200  

 idmap config MY_DOMAIN:range = 1000 - 3

It seems that the users get their local UID / GUID as 1 / 5000 or above
as set in 'idmap uid' and 'idmap gid'.

What is the meaning of this  'idmap config MY_DOMAIN:range' and how should I
set it ?

We have a rather large domain of about 30,000 users. Mys own server will
have max 100 users.
Is there some preferred walues to set on those lines above ?
I have no administrator rights to the AD.

===
Another thing.
I have a right to join a PC to our domain. Before I could do that, I had to
adduser myself in my server with the username I have in the domain. After
that 'kinit' and 'net ads join' work.

BTW: is krb5 necessary for the authentication ?
-- 
View this message in context: 
http://old.nabble.com/how-to-join-to-AD---tp26513594p26635903.html
Sent from the Samba - General mailing list archive at Nabble.com.

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


Re: [Samba] Is this the wrong forum for Samba4 DRS questions?

2009-12-04 Thread Volker Lendecke
On Fri, Dec 04, 2009 at 08:14:49AM -0600, Weiss, Benjamin wrote:
 Should I be directing Samba4 Directory Replication questions to the
 samba-technical list?

Yes, please :-)

Volker


pgpyA99dXoBcW.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Samba from Sunfreeware and nss_winbind.so

2009-12-04 Thread Gaiseric Vandal

On 12/03/09 17:42, Gaiseric Vandal wrote:
Sunfreeware.com has compiled packages of Samba 3.4.2 with kerberos and 
ldap support included (if you also install the ldap and kerberos 
packages from sunfreeware.)   However it does not include the 
nss_winbind.so.*  or libnss_winbind.so.* files.



Solaris does include nss_winbind.so already (since it is included with 
Samba 3.0.x) or I could compile it from the 3.4.x source code.   But 
then I am not sure if either of these would be compatible with 
Sunfreeware samba.


I am using winbind in /etc/nsswitch.conf for supporting users in a 
trusted domain.under samba 3.0.x getent passwd did return users 
from a trusted domain.   On 3.4 it is not, although wbinfo -u is 
working.



Thanks





I copied the nss_winbind.so  file I compiled to /usr/local/samba/lib.   
Samba will use that in preference to any files in /usr/lib so I didn't 
need to delete or move Sun provided nss_winbind.so file.



I added the following to smb.conf  (they had not been required in samba 
3.0.x.)


idmap uid = 3-3
idmap gid = 3-3


The following entries already exisited in smb.conf (and had been sufficient


idmap config TRUSTEDWINDOMAIN:backend = ldap
#idmap config TRUSTEDWINDOMAIN:readonly = no
idmap config TRUSTEDWINDOMAIN:readonly = yes
idmap config TRUSTEDWINDOMAIN:default=no
idmap config TRUSTEDWINDOMAIN:ldap_base_dn = 
ou=administration,ou=idmap,o=domain.com

idmap config TRUSTEDWINDOMAIN:ldap_user_dn = cn=Directory Manager
idmap config TRUSTEDWINDOMAIN:ldap_url = ldap://ldapserver1.domain.com
idmap config TRUSTEDWINDOMAIN:range = 3-3



idmap alloc backend = ldap
idmap alloc config:ldap_base_dn = ou=alloc,ou=idmap,o=domain.com
idmap alloc config:ldap_user_dn = cn=Directory Manager
idmap alloc config:ldap_url = ldap://ldapserver1.domain.com
idmap alloc config:range = 3-3



I also needed to add  the following line to smb.conf

client schannel = no

This resolved cm_get_ipc_userpass: No auth-user defined  error 
messages in winbindd.log.I suspect this may be need to be set on the 
PDC  to resolve some other domain trust issues.  The trusted domain is 
Windows 2003 in mixed mode.



Ideally Sun will one day  provide their own build of Samba 3.4.x.







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


Re: [Samba] Samba from Sunfreeware and nss_winbind.so

2009-12-04 Thread David Markey
I *think* there'e GPLv3 problems with distributing samba 3.4 with Solaris.

You could be waiting a while.



On Fri, 04 Dec 2009 09:59:06 -0500, Gaiseric Vandal
gaiseric.van...@gmail.com wrote:
 On 12/03/09 17:42, Gaiseric Vandal wrote:
 Sunfreeware.com has compiled packages of Samba 3.4.2 with kerberos and 
 ldap support included (if you also install the ldap and kerberos 
 packages from sunfreeware.)   However it does not include the 
 nss_winbind.so.*  or libnss_winbind.so.* files.


 Solaris does include nss_winbind.so already (since it is included with 
 Samba 3.0.x) or I could compile it from the 3.4.x source code.   But 
 then I am not sure if either of these would be compatible with 
 Sunfreeware samba.

 I am using winbind in /etc/nsswitch.conf for supporting users in a 
 trusted domain.under samba 3.0.x getent passwd did return users 
 from a trusted domain.   On 3.4 it is not, although wbinfo -u is 
 working.


 Thanks



 
 I copied the nss_winbind.so  file I compiled to /usr/local/samba/lib.   
 Samba will use that in preference to any files in /usr/lib so I didn't 
 need to delete or move Sun provided nss_winbind.so file.
 
 
 I added the following to smb.conf  (they had not been required in samba 
 3.0.x.)
 
 idmap uid = 3-3
 idmap gid = 3-3
 
 
 The following entries already exisited in smb.conf (and had been
sufficient
 
 
 idmap config TRUSTEDWINDOMAIN:backend = ldap
 #idmap config TRUSTEDWINDOMAIN:readonly = no
 idmap config TRUSTEDWINDOMAIN:readonly = yes
 idmap config TRUSTEDWINDOMAIN:default=no
 idmap config TRUSTEDWINDOMAIN:ldap_base_dn = 
 ou=administration,ou=idmap,o=domain.com
 idmap config TRUSTEDWINDOMAIN:ldap_user_dn = cn=Directory Manager
 idmap config TRUSTEDWINDOMAIN:ldap_url = ldap://ldapserver1.domain.com
 idmap config TRUSTEDWINDOMAIN:range = 3-3
 
 
 
 idmap alloc backend = ldap
 idmap alloc config:ldap_base_dn = ou=alloc,ou=idmap,o=domain.com
 idmap alloc config:ldap_user_dn = cn=Directory Manager
 idmap alloc config:ldap_url = ldap://ldapserver1.domain.com
 idmap alloc config:range = 3-3
 
 
 
 I also needed to add  the following line to smb.conf
 
 client schannel = no
 
 This resolved cm_get_ipc_userpass: No auth-user defined  error 
 messages in winbindd.log.I suspect this may be need to be set on the 
 PDC  to resolve some other domain trust issues.  The trusted domain is 
 Windows 2003 in mixed mode.
 
 
 Ideally Sun will one day  provide their own build of Samba 3.4.x.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] nmbd startup fails

2009-12-04 Thread Michael Wood
Hi

2009/12/1 Battersby-Cornmell, Robin Alasdair
robin.battersby-cornm...@uisl.unisys.com:

 Dear all,

 I regret that I am very new to this tool from the install side.  I have so 
 far altered shares on a running machine only.

 I have (thanks to Joss for some help already) installed version 3.4.3 under 
 AIX 6.1 giving it our preferred base directory of /opt/freeware/samba/3.4.3

 I have copied over the smb.conf file from the source machine (AIX 5.2 / Samba 
 2.0.7) and tweaked the content of .../sbin so that a shell script intercepts 
 the call to the real swat, smbd and nmbd to ensure that the correct PATH  
 LIBPATH are set and this seems to work fine for swat  smbd, but nmbd always 
 fails with the following in .../var/log.nmbd:-

One thing to keep in mind is that the options (and defaults) can
change between versions of Samba, so your old smb.conf might not be
completely right for the new version of Samba.

Try running testparm -v on both the old and the new servers and
compare the results.  Then read up on the options in the documentation
and ask about the ones you're unsure of.

It might also help if you post the testparm -v output here.

 [2009/12/01 14:27:07,  0] nmbd/nmbd.c:854(main)
  nmbd version 3.4.3 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2009
 [2009/12/01 14:27:07,  0] lib/util_sock.c:938(open_socket_in)
  bind failed on port 137 socket_addr = 0.0.0.0.
  Error = The socket name is already in use.

 It is true that the port 137 is in use as inetd has the entries:-

 netbios-ssn stream tcp  nowait  root    /opt/freeware/samba/3.4.3/bin/smbd 
 smbd
 netbios-ns  dgram  udp  wait    root    /opt/freeware/samba/3.4.3/bin/nmbd 
 nmbd

 This is how we have it on the old server.  Oddly, smbd starts just fine and 
 swat allows me to manage the smb.conf file - not that I understand most of 
 the options.

I suggest you remove those lines from your inetd.conf and rather just
run smbd and nmbd daemons.  Can they even run from inetd any more?  I
suspect it's very inefficient at best to run them from inetd.

 I still have no users being able to access the server, but I haven't even 
 begun to look at security.  The old server has a pointer to a Windows domain 
 controller, so I'm hoping that it is all contained in there and I just have 
 to refer to it.

I'm not entirely sure what you mean by this, but it sounds like you
would need to join your new server to the Windows domain.

-- 
Michael Wood esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Auto-configure Samba to offer same shares as Windows on dual-boot machine

2009-12-04 Thread Michael Wood
2009/11/25 Daniel Jensen jens...@iname.com:
 Does anyone know of either a standalone tool or a distribution's
 installsetup procedure which can set up samba shares by looking at what a
 windows installation on the same computer does- say, by checking
 HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares, figuring where
 the directories being shared are mounted, matching printers to those
 configured in Linux/etc, and offering all of these with the same share names
 used in the Windows install?

 If not, why not? Has it just not been tried? It seems to me that something
 along these lines would be a major advantage in easing people's transitions
 from Windows to Linux or other platforms.

It seems to me Fedora, Ubuntu, etc. might be interested in this.

-- 
Michael Wood esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Ldap replication

2009-12-04 Thread Michael Wood
2009/12/2 Gaiseric Vandal gaiseric.van...@gmail.com:
[...]
 Make sure that all machines are using the same WINS server.   I have my PDC
 as the WINS server.

What needs to be done if the PDC fails?  Update the config on all the
machines to point to another WINS server?

-- 
Michael Wood esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Ldap replication

2009-12-04 Thread Gaiseric Vandal
WINS servers aren't, at least in theory, absolutely essential.  I have 
just found that over the years it makes locating/browsing for  
Windows/Samba resources more reliable (espectially with multiple network 
segments and  multiple domains.)   If you aren't using WINS, clients 
will locate other machines via broadcasts.


If I understand everything correctly, WINS (name resolution) lets you 
use a central server (vs broadcast) for locating Windows/Samba servers 
(and by server this would include XP machine since they do can share 
files and printers.)   Part of finding machines is finding the master 
browser, which then actually lists what shared resources are available 
across all the machines.If you don't use WINS, machines can take 
longer to show up in the Network Neighborhood.




So if the PDC goes down, the BDC should become the master browser 
(listing available resources) and the clients should (eventually) give 
up trying to locate machines via the specified WINS server and switch 
back to broadcast.You could probably configure DHCP to assign 
multiple WINS server IP parameters to your Win clients-  and then if 
your PDC looks like it will be down for a while you could make the BDC 
be the wins server.


Unfortunately samba does not support WINS replication.

If my PDC does go offline, since it is also the primary file server, 
WINS functionality becomes irrelevant.








On 12/04/09 11:10, Michael Wood wrote:

2009/12/2 Gaiseric Vandalgaiseric.van...@gmail.com:
[...]
   

Make sure that all machines are using the same WINS server.   I have my PDC
as the WINS server.
 

What needs to be done if the PDC fails?  Update the config on all the
machines to point to another WINS server?

   


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


Re: [Samba] Getting Windows XP drivers from print$

2009-12-04 Thread Torkil Svensgaard

Ryan Suarez wrote:

Torkil Svensgaard wrote:
I have two very similar printers set up on CUPS and Samba is 
configured to share the drivers. I had been playing around with 
setting up a RAW printer queue with native Windows drivers but 
eventually gave up on that. I deleted all printers and redid them from 
scratch and now only one of them works.


Setup:
Ubuntu Karmic 2.6.31-15-server #50-Ubuntu SMP Tue Nov 10 15:50:36 UTC 
2009 x86_64 GNU/Linux


Samba Version 3.4.0

What issues did you have with windows drivers?


The driver for HP 4650 downloaded from hp.com wouldn't install through 
APW. I also tried doing it through rpcclient which worked so much as I 
followed every step in the Samba guide for it with no errors, but 
Windows XP wasn't able to download the driver files from the Samba server.



Try using v3.3.x and see if you have better luck.


I am not too keen on downgrading, as I am setting up a domain that needs 
to be Windows 7 compatible.


I did some more testing today with the postscript drivers and it seems 
there is a reference for gyldendal somewhere which screws things up 
because if I name the queue differently (same .ppd etc) everything works :S


I tried deleting every reference to it from the Windows registry as well 
as in Samba, as far as deleting the 3 .tdb files in /var/lib/samba 
before reinstalling but it is still impossible to have a printer called 
gyldendal.


Are there any other files besides the 3 nt*.tdb which hold information 
about printers I could delete?


Thanks,

Torkil





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


Re: [Samba] domain printer issues

2009-12-04 Thread Neil L Thackeray
Printing in 3.4.x is broken for the most part. It's only good for simple 
printing with WindowsXP 32 bit with certain drivers. Why this isn't 
being acknowledged by the SAMBA team is unknown. If you need a fully 
functional managed print server within a samba domain use 3.3.8.


Neil


Brian May wrote:

Hello,

As of today we seem to be having printer issues. As in computers that
were working fine suddenly decided to stop working.

One one computer.  No printers won't work at all. For some printers, if
I remove and reinstall, it complains that there are no printer drivers
on the server (incorrect). When past this stage, none of the printers
work. When I click the print test page button I get an immediate generic
failure to print type response.

Just in case I deleted all printers and then deleted all drivers, but it
doesn't seem to have helped.

On another computer all printers work except for one, which produces
the same generic failure message.

On another computer everything works fine. Including deleting printers,
adding printers, etc.

Any ideas?

Samba 3.4.2
Window XP clients

Thanks

Brian May

  


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


Re: [Samba] A question about samba and quote

2009-12-04 Thread Robert LeBlanc
On Fri, Dec 4, 2009 at 12:59 AM, Alexander Födisch foedi...@eva.mpg.dewrote:

 Hi Robert,

 how did you implement the quota script in smb.conf? with parameter dfree?
 can you show us your quota script, please?

 thanks very much!
 alex

 Here is my script, place it at /root/bin/sambaquota.sh
88-
#! /bin/bash

if [ $2 == 4 ]; then
 echo 2 0 0 0 0 0 0
 exit 0
fi

DIRECTORY=`/bin/pwd`
if [ $DIRECTORY == /ls/users ]; then
  QUOTA=`quota -w -v $3 | awk
'{if(/^\/dev\/mapper\/ldrive-users/){sub(/\*/,);sub(//, 0);print
$2,$3,$4,$6,$7,$8}}'`
elif [ $DIRECTORY == /ls/groups ]; then
 USER=`wbinfo --uid-info=$3 | awk -F : '{ print $1 }'`
groups $USER | grep lfsci-csr  /dev/null
 EXIT=$?
if [ $EXIT -ne 0 ]; then
  QUOTA=`wbinfo -r $USER | xargs quota -w -g | awk
'{if(/\/dev\/mapper\/ldrive-groups/){sub(//, 0); tbused+=$2;
tbsoft+=$3; tbhard+=$4; tfused+=$6; tfsoft+=$7; tfhard+=$8 }} END {print
tbused,tbsoft,tbhard,tfused,tfsoft,tfhard}'`
  if [ ${#QUOTA} -lt 6 ]; then
   QUOTA=1 1 1 0 0 0
  fi
 else
  QUOTA=0 0 0 0 0 0
 fi
fi

echo 2 $QUOTA
8--8---
The first case is if samba is asking for default quotas, really don't know
how a default quota works so we send back nothing. The second case get where
the script if being run from (the share being accessed), then if it's the
user's share, send back the output from the quota command. The quota command
is not very nice in that if the user is over quota it adds an extra field in
the middle of the output, that is what the blank space in the awk commands
does is inserts that field if it is missing. If they are accessing the group
space, then add up all the quotas of all the groups the person belongs to
and use that, otherwise send back an empty quota. The only problem with this
script is that when a person does not have access to the share, it show the
entire disk status (free and size) which I really don't want people seeing.
The reason for this is that we open up the share at the share level and use
ACLs to manage access (much easier than managing hundreds of shares and with
hide unreadable = true it seems just as good.

Then in smb.conf add/edit this line:
  get quota command = /root/bin/sambaquota.sh

Hope that helps.


Robert LeBlanc
Life Sciences  Undergraduate Education Computer Support
Brigham Young University
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] fedora-ds and smb4 (a9)

2009-12-04 Thread Michael Wood
2009/12/4 Weiss, Benjamin benjamin.we...@osbi.ok.gov:
 I've got an (almost) working Samba4 installation (can't get replication
 working), and did a locate samba.schema.  No dice...

I haven't downloaded the source tarball, but it's in the git repository:

$ ls -1 examples/LDAP/*
examples/LDAP/convertSambaAccount
examples/LDAP/get_next_oid
examples/LDAP/ol-schema-migrate.pl
examples/LDAP/README
examples/LDAP/samba-nds.schema
examples/LDAP/samba.schema
examples/LDAP/samba.schema.at.IBM-DS
examples/LDAP/samba-schema-FDS.ldif
examples/LDAP/samba-schema.IBMSecureWay
examples/LDAP/samba-schema-netscapeds4.x
examples/LDAP/samba-schema-netscapeds5.x
examples/LDAP/samba.schema.oc.IBM-DS

-- 
Michael Wood esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Getting Windows XP drivers from print$

2009-12-04 Thread Ryan Suarez


The driver for HP 4650 downloaded from hp.com wouldn't install through 
APW. I also tried doing it through rpcclient which worked so much as I 
followed every step in the Samba guide for it with no errors, but 
Windows XP wasn't able to download the driver files from the Samba 
server.


ya, sounds like same driver issues with v3.4.x alot of people here are 
problems with.



Try using v3.3.x and see if you have better luck.


I am not too keen on downgrading, as I am setting up a domain that 
needs to be Windows 7 compatible.


v3.3.x printing is compatible with Windows 7.  We're a large scale samba 
v3.3.9 and printing works with our Windows7 clients.  Or you can wait 
for v3.4.4 due out on Dec 17 which is supposed to address  these driver 
issues.


I did some more testing today with the postscript drivers and it seems 
there is a reference for gyldendal somewhere which screws things up 
because if I name the queue differently (same .ppd etc) everything 
works :S


FWIW, I didn't have a good experience using generic cups/postscript 
drivers.  I had various problems which were fixed when we switched to 
printer specific drivers.


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


[Samba] samba group access

2009-12-04 Thread Adnan Shaheen
Dear All
I have a question from you, if you can please answer it.

I have a linux server, with samba installed on it.
I have 3 groups as, GroupA, GroupB, GroupC
Each group is having let suppose 10 members from 0-9

I have 3 shares on my smb.con as Share1, Share2, and Share3

Now what I want it to give the read access to every one on each share
and
give write access of GroupA to Share1, Share2
give write access of GroupB to Share2
give write access of GroupC to Share3

I also have two folders in Share1, and Share2 named Folder1, and Folder2
respectively

Now GroupA shall have write access of both Folder1 and Folder2 in Share1
but
GroupA shall have only write access of Folder1 in Share2

Can you help me with it, and give me an example smb.conf for this.
If you need some information from me, please let me know

-- 
Regards:
Adnan Shaheen.

-- 
Regards:
Adnan Shaheen.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] smbtorture config issue?

2009-12-04 Thread Kristy Kallback-Rose

Hello,

	I'm trying to run smbtorture against another system. I have installed  
version 4.0.0alpha9 locally. The remote system is registered with ADS  
as:


distinguishedName: CN=bl-uits-cictest,CN=Computers,DC=ads,DC=iu,DC=edu
name: bl-uits-cictest
dNSHostName: bl-uits-cictest.ads.iu.edu
servicePrincipalName: HOST/bl-uits-cictest.ads.iu.edu
servicePrincipalName: HOST/BL-UITS-CICTEST

	The server itself is cictest.cic.iu.edu, and I can connect to the  
remote server with smbclient as such:
smbclient -s /usr/local/samba/etc/smb.conf -n bl-uits- 
cictest.ads.iu.edu -Ukallbac //cictest.cic.iu.edu/projects Password:

Domain=[ADS] OS=[Unix] Server=[Samba 3.2.11-ctdb-65]
smb: \ quit


The problem is this:

1) smbtorture complains about the ads security setting:
/usr/local/samba/bin/smbtorture --realm=ads.iu.edu -T samba3 -d 3 -W  
ADS --netbiosname=BL-UITS-CICTEST -U cictestuser3  // 
cictest.cic.iu.edu/projects RAW-QFSINFO

lp_load: refreshing parameters from /usr/local/samba/etc/smb.conf
params.c:pm_process() - Processing configuration file /usr/local/ 
samba/etc/smb.conf

Processing section [global]
Unknown enumerated value 'ADS' for 'security'
params.c:pm_process() - Failed.  Error returned from params.c:parse().

I have tried both ads and ADS, it doesn't seem to like either

2) smbtorture proceeds to complain as such:
Server is not registered with our KDC:  Miscellaneous failure (see  
text): Server (cifs/cictest.cic.iu@ads.iu.edu) unknown
SPNEGO(gssapi_krb5) NEG_TOKEN_INIT failed to parse:  
NT_STATUS_INVALID_PARAMETER

Got challenge flags:
Got NTLMSSP neg_flags=0x60898215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
Server is not registered with our KDC:  Miscellaneous failure (see  
text): Server (cifs/cictest.cic.iu@ads.iu.edu) unknown
SPNEGO(gssapi_krb5) NEG_TOKEN_INIT failed to parse:  
NT_STATUS_INVALID_PARAMETER

Got challenge flags:
Got NTLMSSP neg_flags=0x60898215
Password for [ADS\cictestuser3]:

Fwiw, my krb5.conf has a default realm of ADS.IU.EDU as well as a  
realms section for ADS.IU.EDU I can provide other information if it  
would be helpful.


Can anyone offer some suggestions to troubleshoot this?

Many thanks,
Kristy
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] One way Samba

2009-12-04 Thread Christian König
Look at this

hosts allow = 127. 192.77.0.

try

hosts allow = 127. 192.168.77.

Chris

wino_pilot schrieb:
 I am running Samba 2:3.3.2 on a Kubuntu 9.04 Linux box.  With the
 configuration file below the linux box can see and retrieve shared  files on
 all 5 of my windows boxes.  However, none of the windows boxes can see the
 linux shares as they are defined in the smb.conf below.  The linux box shows
 up in the windows network neighborhood as Mercury1 but when I try to open it
 to show the shares I get the message \\Mercury1 is not accessible.  .  
 The network paath was not found.   Can anyone help? Please.

  
 [global]
 netbios name = Mercury1
 server string = Samba file and print server
 workgroup = MNET
 security = user
 hosts allow = 127. 192.77.0.
 interfaces = 127.0.0.1/8 192.168.77.0/24
 bind interfaces only = yes
 remote announce = 192.168.77.255
 remote browse sync = 192.168.77.255
 printcap name = cups
 load printers = yes
 cups options = raw
 printing = cups
 guest account = smbguest
 log file = /var/log/samba/samba.log
 max log size = 1000
 null passwords = no
 username level = 6
 password level = 6
 encrypt passwords = yes
 unix password sync = yes
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 local master = no
 domain master = no
 preferred master = no
 domain logons = no
 os level = 33
 logon drive = m:
 logon home = \\%L\homes\%u
 logon path = \\%L\profiles\%u
 logon script = %G.bat
 time server = no
 name resolve order = wins lmhosts bcast
 wins support = yes
 wins proxy = no
 dns proxy = no
 preserve case = yes
 short preserve case = yes
 client use spnego = no
 client signing = no
 client schannel = no
 server signing = no
 server schannel = no
 nt pipe support = yes
 nt status support = yes
 allow trusted domains = no
 obey pam restrictions = yes
 enable spoolss = yes
 client plaintext auth = no
 disable netbios = no
 follow symlinks = no
 update encrypted = yes
 pam password change = no
 passwd chat timeout = 120
 hostname lookups = no
 username map = /etc/samba/smbusers
 smb passwd file = /etc/samba/smbpasswd
 passwd program = /usr/bin/passwd '%u'
 passwd chat = *New*password* %n\n *ReType*new*password* %n\n
 *passwd*changed*\n
 add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s
 /dev/null '%u'
 add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User
 Account' -s /dev/null -g '%g' '%u'
 add group script = /usr/sbin/groupadd '%g'
 delete user script = /usr/sbin/userdel '%u'
 delete user from group script = /usr/sbin/userdel '%u' '%g'
 delete group script = /usr/sbin/groupdel '%g'
 add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c
 'Samba Machine Account' -s /dev/null -M '%u'
 machine password timeout = 120
 idmap uid = 1-2
 idmap gid = 1-2
 template shell = /bin/bash
 winbind use default domain = yes
 winbind separator = @
 winbind cache time = 360
 winbind trusted domains only = yes
 winbind nested groups = no
 winbind nss info = no
 winbind refresh tickets = no
 winbind offline logon = no

 [homes]
 comment = Home Directories
 path = /home
 read only = no
 available = yes
 browseable = yes
 writable = yes
 guest ok = no
 public = no
 printable = no
 share modes = no
 locking = no

 [netlogon]
 comment = Network Logon Service
 path = /home/netlogon
 read only = no
 available = yes
 browseable = yes
 writable = no
 guest ok = no
 public = no
 printable = no
 share modes = no
 locking = no

 [profiles]
 comment = User Profiles
 path = /var/samba/profiles
 read only = no
 available = yes
 browseable = no
 writable = yes
 guest ok = no
 public = no
 printable = no
 locking = no
 create mode = 0600
 directory mask = 0700

 [printers]
 comment = All Printers
 path = /var/spool/samba
 browseable = yes
 writable = no
 guest ok = no
 public = no
 printable = yes
 share modes = no
 locking = no

 [pdf-documents]
 path = /home/pdf-documents
 comment = Converted PDF Documents
 available = yes
 browseable = yes
 writeable = yes
 guest ok = yes

 [pdf-printer]
 path = /tmp
 comment = PDF Printer Service
 printable = yes
 guest ok = yes
 use client driver = yes
 printing = bsd
 print command = /usr/bin/gadmin-samba-pdf %s %u
 lpq command =
 lprm command =

 [Book]
 path = /media/FreeAgent/Drive/Book
 comment = Book Chapters
 valid users = jon
 admin users = jon
 read only = no
 available = yes
 browseable = yes
 writable = yes
 guest ok = no
 public = no
 printable = no
 share modes = no
 locking = no

 [Photos]
 path = /media/FreeAgent/Drive/Photos
 comment = All Photos
 valid users = jon
 admin users = jon
 read only = no
 available = yes
 browseable = yes
 writable = yes
 guest ok = no
 public = no
 printable = no
 share modes = no
 locking = no


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


[Samba] can not write to subfolders of samba share, just the root of it

2009-12-04 Thread Roozbeh Ghz


Hi.

I am using samba t share my files.I am sharing /media/MEDIA folder. it is
a ntfs partition mounted with ntfs-3g with write/read access from linux.

I can see and browse my shares and also create files in the root of this
partition, ie /media/MEDIA, but in its subfolders i do not have write
permissions.

also by default computer name is not shown in windows xp, i have to type
its name or address to browse to it.

another interesting thing is that i have permission to create directory
and delete files everywhere and in any folder and subfolder but when
trying to create files in subfolders i get not enough free disk space
error.

any clues?

by the way i dont know if this config file is correct, i find it as
template in internet.

tnx

-
here is my samba.conf


[global]
log file = /var/log/samba/log.%m
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\successfully* .
obey pam restrictions = yes
sync always = yes
username map = /etc/samba/smbusers
null passwords = yes
map to guest = Bad User
encrypt passwords = true
show add printer wizard = no
public = yes
passwd program = /usr/bin/passwd %u
wins support = true
netbios name = roozbeh-mint
inherit permissions = yes
writeable = yes
server string = %h Server
default = global
workgroup = WORKGROUP
os level = 20
auto services = global DriveD
security = share
syslog = 0
panic action = /usr/share/samba/panic-action %d
max log size = 1000

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part
of

# server string is the equivalent of the NT Description field


 Debugging/Accounting 

# This tells Samba to use a separate log file for each machine
# that connects

# Put a capping on the size of the log files (in Kb).

# We want Samba to log a minimum amount of information to syslog.
Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something
higher.

# Do something sensible when Samba crashes: mail the admin a backtrace

### Authentication ###

;   passdb backend = tdbsam

;   guest account = nobody

# For Unix password sync to work on a Debian GNU/Linux system, the
following
# parameters must be set (thanks to Ian Kahan
ka...@informatik.tu-muenchen.de for
# sending the correct chat script for the passwd program in Debian Sarge).

 Misc 

# Most people will find that this option gives better performance.
# See smb.conf(5) and
/usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
# for details
# You may want to add the following on a Linux system:
# SO_RCVBUF=8192 SO_SNDBUF=8192
;   socket options = tcp_nodelay

#=== Share Definitions ===

[DriveD]
path = /media/MEDIA






--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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


Re: [Samba] Samba 3.4.2 Winbind problem IDMAP GID range full

2009-12-04 Thread Greg
I get these same sort of errors repeated in my log files. They are present
when I start samba and everything seems to work fine. However, after some
long period of time, I won't be able to connect to the samba shares from a
client. If I restart samba (/etc/init.d/samba restart), these errors are
entered again at that time but I will then be able to connect. I haven't
been able to find many answers yet...

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


[SCM] Samba Shared Repository - branch master updated

2009-12-04 Thread Kai Blin
The branch, master has been updated
   via  f5aff32... s3 aclocal.m4: Fix iconv checks, clean up m4 code
  from  be78d4a... s4-ldb: fixed show_deleted module not to corrupt parse 
trees

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit f5aff324cb9d965bbc75634596c3c40ffc588183
Author: Kai Blin k...@samba.org
Date:   Fri Dec 4 09:47:25 2009 +0100

s3 aclocal.m4: Fix iconv checks, clean up m4 code

The check for iconv requiring giconv.h and libgiconv as well as
the check for iconv requiring biconv.h and libbiconv were using the wrong
variable to check for previous successful test results. This caused the 
checks
to always fall back to libbiconv on systems where that library was 
available.

In the course of fixing this, I had to clean up the indentation in that 
piece of
code, and I also rewrote/added some comments.

Many thanks to Tsurutani Naoki turut...@scphys.kyoto-u.ac.jp for the 
initial
patch and diagnosis.

---

Summary of changes:
 source3/m4/aclocal.m4 |   57 +---
 1 files changed, 30 insertions(+), 27 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/m4/aclocal.m4 b/source3/m4/aclocal.m4
index 29033b7..bdad6fa 100644
--- a/source3/m4/aclocal.m4
+++ b/source3/m4/aclocal.m4
@@ -433,45 +433,47 @@ AC_DEFUN(jm_ICONV,
 jm_cv_giconv=no
 jm_save_LIBS=$LIBS
 
-dnl Check for include in funny place but no lib needed
-if test $jm_cv_func_iconv != yes; then 
-  AC_TRY_LINK([#include stdlib.h
+  dnl Check for include in giconv.h but no lib needed
+  if test $jm_cv_func_iconv != yes; then
+AC_TRY_LINK([#include stdlib.h
 #include giconv.h],
+  [iconv_t cd = iconv_open(,);
+   iconv(cd,NULL,NULL,NULL,NULL);
+   iconv_close(cd);],
+   jm_cv_func_iconv=yes
+   jm_cv_include=giconv.h
+   jm_cv_giconv=yes
+   jm_cv_lib_iconv=)
+
+dnl Standard iconv.h include, lib in glibc or libc ...
+if test $jm_cv_func_iconv != yes; then
+  AC_TRY_LINK([#include stdlib.h
+#include iconv.h],
 [iconv_t cd = iconv_open(,);
  iconv(cd,NULL,NULL,NULL,NULL);
  iconv_close(cd);],
+ jm_cv_include=iconv.h
  jm_cv_func_iconv=yes
- jm_cv_include=giconv.h
- jm_cv_giconv=yes
  jm_cv_lib_iconv=)
 
-  dnl Standard iconv.h include, lib in glibc or libc ...
+  dnl Include in giconv.h, libgiconv needed to link
   if test $jm_cv_func_iconv != yes; then
+jm_save_LIBS=$LIBS
+LIBS=$LIBS -lgiconv
 AC_TRY_LINK([#include stdlib.h
-#include iconv.h],
+#include giconv.h],
   [iconv_t cd = iconv_open(,);
iconv(cd,NULL,NULL,NULL,NULL);
iconv_close(cd);],
-   jm_cv_include=iconv.h
-   jm_cv_func_iconv=yes
-   jm_cv_lib_iconv=)
-
-  if test $jm_cv_lib_iconv != yes; then
-jm_save_LIBS=$LIBS
-LIBS=$LIBS -lgiconv
-AC_TRY_LINK([#include stdlib.h
-#include giconv.h],
-  [iconv_t cd = iconv_open(,);
-   iconv(cd,NULL,NULL,NULL,NULL);
-   iconv_close(cd);],
-  jm_cv_lib_iconv=yes
-  jm_cv_func_iconv=yes
-  jm_cv_include=giconv.h
-  jm_cv_giconv=yes
-  jm_cv_lib_iconv=giconv)
+  jm_cv_lib_iconv=yes
+  jm_cv_func_iconv=yes
+  jm_cv_include=giconv.h
+  jm_cv_giconv=yes
+  jm_cv_lib_iconv=giconv)
 
-   LIBS=$jm_save_LIBS
+LIBS=$jm_save_LIBS
 
+dnl Include in iconv.h, libiconv needed to link
 if test $jm_cv_func_iconv != yes; then
   jm_save_LIBS=$LIBS
   LIBS=$LIBS -liconv
@@ -485,7 +487,8 @@ AC_DEFUN(jm_ICONV,
 jm_cv_lib_iconv=iconv)
   LIBS=$jm_save_LIBS
 
-  if test $jm_cv_lib_iconv != yes; then
+  dnl Include in biconv.h, libbiconv needed to link
+  if test $jm_cv_func_iconv != yes; then
 jm_save_LIBS=$LIBS
 LIBS=$LIBS -lbiconv
 AC_TRY_LINK([#include stdlib.h
@@ -500,7 +503,7 @@ AC_DEFUN(jm_ICONV,
   jm_cv_lib_iconv=biconv)
 
 LIBS=$jm_save_LIBS
- fi
+  fi
 fi
   fi
 fi


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-5-test updated

2009-12-04 Thread Kai Blin
The branch, v3-5-test has been updated
   via  217a02b... s3 aclocal.m4: Fix iconv checks, clean up m4 code
  from  d0aaff9... Make sure we're not using the old smb_fname data.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -
commit 217a02b4a6432b1e232fe8dd0b022bc85ab47e56
Author: Kai Blin k...@samba.org
Date:   Fri Dec 4 09:47:25 2009 +0100

s3 aclocal.m4: Fix iconv checks, clean up m4 code

The check for iconv requiring giconv.h and libgiconv as well as
the check for iconv requiring biconv.h and libbiconv were using the wrong
variable to check for previous successful test results. This caused the 
checks
to always fall back to libbiconv on systems where that library was 
available.

In the course of fixing this, I had to clean up the indentation in that 
piece of
code, and I also rewrote/added some comments.

Many thanks to Tsurutani Naoki turut...@scphys.kyoto-u.ac.jp for the 
initial
patch and diagnosis.
(cherry picked from commit f5aff324cb9d965bbc75634596c3c40ffc588183)

---

Summary of changes:
 source3/m4/aclocal.m4 |   57 +---
 1 files changed, 30 insertions(+), 27 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/m4/aclocal.m4 b/source3/m4/aclocal.m4
index 29033b7..bdad6fa 100644
--- a/source3/m4/aclocal.m4
+++ b/source3/m4/aclocal.m4
@@ -433,45 +433,47 @@ AC_DEFUN(jm_ICONV,
 jm_cv_giconv=no
 jm_save_LIBS=$LIBS
 
-dnl Check for include in funny place but no lib needed
-if test $jm_cv_func_iconv != yes; then 
-  AC_TRY_LINK([#include stdlib.h
+  dnl Check for include in giconv.h but no lib needed
+  if test $jm_cv_func_iconv != yes; then
+AC_TRY_LINK([#include stdlib.h
 #include giconv.h],
+  [iconv_t cd = iconv_open(,);
+   iconv(cd,NULL,NULL,NULL,NULL);
+   iconv_close(cd);],
+   jm_cv_func_iconv=yes
+   jm_cv_include=giconv.h
+   jm_cv_giconv=yes
+   jm_cv_lib_iconv=)
+
+dnl Standard iconv.h include, lib in glibc or libc ...
+if test $jm_cv_func_iconv != yes; then
+  AC_TRY_LINK([#include stdlib.h
+#include iconv.h],
 [iconv_t cd = iconv_open(,);
  iconv(cd,NULL,NULL,NULL,NULL);
  iconv_close(cd);],
+ jm_cv_include=iconv.h
  jm_cv_func_iconv=yes
- jm_cv_include=giconv.h
- jm_cv_giconv=yes
  jm_cv_lib_iconv=)
 
-  dnl Standard iconv.h include, lib in glibc or libc ...
+  dnl Include in giconv.h, libgiconv needed to link
   if test $jm_cv_func_iconv != yes; then
+jm_save_LIBS=$LIBS
+LIBS=$LIBS -lgiconv
 AC_TRY_LINK([#include stdlib.h
-#include iconv.h],
+#include giconv.h],
   [iconv_t cd = iconv_open(,);
iconv(cd,NULL,NULL,NULL,NULL);
iconv_close(cd);],
-   jm_cv_include=iconv.h
-   jm_cv_func_iconv=yes
-   jm_cv_lib_iconv=)
-
-  if test $jm_cv_lib_iconv != yes; then
-jm_save_LIBS=$LIBS
-LIBS=$LIBS -lgiconv
-AC_TRY_LINK([#include stdlib.h
-#include giconv.h],
-  [iconv_t cd = iconv_open(,);
-   iconv(cd,NULL,NULL,NULL,NULL);
-   iconv_close(cd);],
-  jm_cv_lib_iconv=yes
-  jm_cv_func_iconv=yes
-  jm_cv_include=giconv.h
-  jm_cv_giconv=yes
-  jm_cv_lib_iconv=giconv)
+  jm_cv_lib_iconv=yes
+  jm_cv_func_iconv=yes
+  jm_cv_include=giconv.h
+  jm_cv_giconv=yes
+  jm_cv_lib_iconv=giconv)
 
-   LIBS=$jm_save_LIBS
+LIBS=$jm_save_LIBS
 
+dnl Include in iconv.h, libiconv needed to link
 if test $jm_cv_func_iconv != yes; then
   jm_save_LIBS=$LIBS
   LIBS=$LIBS -liconv
@@ -485,7 +487,8 @@ AC_DEFUN(jm_ICONV,
 jm_cv_lib_iconv=iconv)
   LIBS=$jm_save_LIBS
 
-  if test $jm_cv_lib_iconv != yes; then
+  dnl Include in biconv.h, libbiconv needed to link
+  if test $jm_cv_func_iconv != yes; then
 jm_save_LIBS=$LIBS
 LIBS=$LIBS -lbiconv
 AC_TRY_LINK([#include stdlib.h
@@ -500,7 +503,7 @@ AC_DEFUN(jm_ICONV,
   jm_cv_lib_iconv=biconv)
 
 LIBS=$jm_save_LIBS
- fi
+  fi
 fi
   fi
 fi


-- 
Samba Shared Repository


svn commit: samba-web r1347 - in trunk/team: .

2009-12-04 Thread mdw
Author: mdw
Date: 2009-12-04 02:43:43 -0700 (Fri, 04 Dec 2009)
New Revision: 1347

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=1347

Log:
team/index.html - Updates

- Increase the number of team members to approximately 40 (consider the list
  below - we have 39 entries)
- Also, more people do regular checkins - I think the max. number of 15 fits
  better than 12 now
- Reorder contact list and add me

Modified:
   trunk/team/index.html


Changeset:
Modified: trunk/team/index.html
===
--- trunk/team/index.html   2009-12-03 12:47:54 UTC (rev 1346)
+++ trunk/team/index.html   2009-12-04 09:43:43 UTC (rev 1347)
@@ -4,10 +4,10 @@
 
 h2The Samba Team/h2
 
-pThe Samba Team is a loose-knit group of about 30 people from all over the
+pThe Samba Team is a loose-knit group of about 40 people from all over the
 world who contribute regularly to Samba and have direct write access to the a
 href=http://wiki.samba.org/index.php/Using_Git_for_Samba_Development;Samba 
Git repository/a.  The number of people
-actively doing Git checkins is approximately 10 - 12 people.  Of course,
+actively doing Git checkins is approximately 10 - 15 people.  Of course,
 there is a href=http://projects.samba.org/;always room to help/a./p
 
 pHere is a photo of some of us at the
@@ -43,6 +43,7 @@
 ul
 lia href=http://samba.org/~obnox/;Michael Adam/a/li
 lia href=http://samba.org/~jra;Jeremy Allison/a/li
+lia href=mailto:anato...@samba.org;Anatoliy Atanasov/a/li
 lia href=http://samba.org/~abartlet/;Andrew Bartlett/a/li
 lia href=mailto:k...@samba.org;Kai Blin/a/li
 lia href=mailto:a...@samba.org;Alexander Bokovoy/a/li
@@ -52,14 +53,14 @@
 lia href=mailto:pa...@samba.org;Paul Green/a/li
 lia href=http://ubiqx.org/;Chris Hertel/a/li
 lia href=http://www.devurandom.org;Deryck Hodge/a/li
+lia href=http://people.su.se/~lha/;Love Houml;rnquist 
Aring;strand/a/li
+lia href=mailto:nivan...@samba.org;Nadezhda Ivanova/a/li
 lia href=http://www.j3e.de/;Bjouml;rn Jacke/a/li
-lia href=http://people.su.se/~lha/;Love Houml;rnquist 
Aring;strand/a/li
 lia href=mailto:mkap...@samba.org;Marc Kaplan/a/li
 lia href=mailto:ku...@samba.org;Guuml;nter Kukkukk/a/li
 lia href=mailto:jlay...@samba.org;Jeff Layton/a/li
 lia href=mailto:vlen...@samba.org;Volker Lendecke/a/li
 lia href=mailto:h...@samba.org;Herb Lewis/a/li
-lia href=mailto:nivan...@samba.org;Nadezhda Ivanova/a/li
 /ul
 /td
 td valign=top
@@ -80,9 +81,9 @@
 lia href=mailto:j...@samba.org;John Terpstra/a/li
 lia href=http://samba.org/~tridge/;Andrew Tridgell/a/li
 lia href=mailto:jel...@samba.org;Jelmer Vernooij/a/li
+lia href=mailto:m...@samba.org;Matthias Dieter Wallnouml;fer/a/li
 lia href=mailto:m...@samba.org;Michael Warfield/a/li
 lia href=mailto:boy...@samba.org;Bo Yang/a/li
-lia href=mailto:anato...@samba.org;Anatoliy Atanasov/a/li
 /ul
 /td
 /tr



Re: [SCM] Samba Shared Repository - branch master updated

2009-12-04 Thread Stefan (metze) Metzmacher
Hi Tim,

 diff --git a/source4/selftest/knownfail b/source4/selftest/knownfail
 index e2ae2cf..37c9f6a 100644
 --- a/source4/selftest/knownfail
 +++ b/source4/selftest/knownfail
 @@ -10,9 +10,7 @@ base.delete.*.deltest20a
  base.delete.*.deltest20b
  raw.rename.*.osxrename
  raw.rename.*.directory rename
 +raw.sfileinfo.*.END_OF_FILE
  rpc.winreg.*security
  samba4.local.registry.(dir|ldb).check hive security
  samba4.local.registry.local.security
 
 Unfortunately, I'm still seeing failures in source4 'make test'.  Am I
 missing
 something simple?

yes, it's END-OF-FILE not END_OF_FILE:-)

metze



[SCM] Samba Shared Repository - branch master updated

2009-12-04 Thread Günther Deschner
The branch, master has been updated
   via  02fe863... s4-smbtorture: heavily expand printerdata tests in 
RPC-SPOOLSS.
  from  f5aff32... s3 aclocal.m4: Fix iconv checks, clean up m4 code

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 02fe8630395879ffa761d75c7d7b75fc7cda5e4c
Author: Günther Deschner g...@samba.org
Date:   Fri Dec 4 02:54:33 2009 +0100

s4-smbtorture: heavily expand printerdata tests in RPC-SPOOLSS.

Including new tests for:
- spoolss_SetPrinterDataEx
- spoolss_DeletePrinterDataEx
- spoolss_DeletePrinterKey

Guenther

---

Summary of changes:
 source4/torture/rpc/spoolss.c |  366 +
 1 files changed, 299 insertions(+), 67 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c
index f0ecb65..6810bf0 100644
--- a/source4/torture/rpc/spoolss.c
+++ b/source4/torture/rpc/spoolss.c
@@ -2013,7 +2013,9 @@ static bool test_ResumePrinter(struct torture_context 
*tctx,
 static bool test_GetPrinterData(struct torture_context *tctx,
struct dcerpc_pipe *p,
struct policy_handle *handle,
-   const char *value_name)
+   const char *value_name,
+   enum winreg_Type *type_p,
+   union spoolss_PrinterData *data_p)
 {
NTSTATUS status;
struct spoolss_GetPrinterData r;
@@ -2028,7 +2030,7 @@ static bool test_GetPrinterData(struct torture_context 
*tctx,
r.out.type = type;
r.out.data = data;
 
-   torture_comment(tctx, Testing GetPrinterData\n);
+   torture_comment(tctx, Testing GetPrinterData(%s)\n, r.in.value_name);
 
status = dcerpc_spoolss_GetPrinterData(p, tctx, r);
torture_assert_ntstatus_ok(tctx, status, GetPrinterData failed);
@@ -2038,10 +2040,19 @@ static bool test_GetPrinterData(struct torture_context 
*tctx,
 
status = dcerpc_spoolss_GetPrinterData(p, tctx, r);
torture_assert_ntstatus_ok(tctx, status, GetPrinterData 
failed);
-
+   /* do not move below WERR_MORE_DATA check, as this test is used
+* for a lot of well known printer server values */
torture_assert_werr_ok(tctx, r.out.result, GetPrinterData 
failed);
}
 
+   if (type_p) {
+   *type_p = type;
+   }
+
+   if (data_p) {
+   *data_p = data;
+   }
+
return true;
 }
 
@@ -2049,12 +2060,17 @@ static bool test_GetPrinterDataEx(struct 
torture_context *tctx,
  struct dcerpc_pipe *p,
  struct policy_handle *handle,
  const char *key_name,
- const char *value_name)
+ const char *value_name,
+ enum winreg_Type *type_p,
+ DATA_BLOB *buffer_p)
 {
NTSTATUS status;
struct spoolss_GetPrinterDataEx r;
enum winreg_Type type;
uint32_t needed;
+   uint8_t *buffer;
+
+   buffer = talloc_array(tctx, uint8_t, 0);
 
r.in.handle = handle;
r.in.key_name = key_name;
@@ -2062,9 +2078,10 @@ static bool test_GetPrinterDataEx(struct torture_context 
*tctx,
r.in.offered = 0;
r.out.type = type;
r.out.needed = needed;
-   r.out.buffer = NULL;
+   r.out.buffer = buffer;
 
-   torture_comment(tctx, Testing GetPrinterDataEx\n);
+   torture_comment(tctx, Testing GetPrinterDataEx(%s - %s)\n,
+   r.in.key_name, r.in.value_name);
 
status = dcerpc_spoolss_GetPrinterDataEx(p, tctx, r);
if (!NT_STATUS_IS_OK(status)) {
@@ -2077,17 +2094,55 @@ static bool test_GetPrinterDataEx(struct 
torture_context *tctx,
 
if (W_ERROR_EQUAL(r.out.result, WERR_MORE_DATA)) {
r.in.offered = needed;
-   r.out.buffer = talloc_array(tctx, uint8_t, needed);
+   buffer = talloc_array(tctx, uint8_t, needed);
+   r.out.buffer = buffer;
 
status = dcerpc_spoolss_GetPrinterDataEx(p, tctx, r);
torture_assert_ntstatus_ok(tctx, status, GetPrinterDataEx 
failed);
+   }
+
+   torture_assert_werr_ok(tctx, r.out.result,  GetPrinterDataEx failed);
+
+   if (type_p) {
+   *type_p = type;
+   }
 
-   torture_assert_werr_ok(tctx, r.out.result,  GetPrinterDataEx 
failed);
+   if (buffer_p) {
+   *buffer_p = data_blob(buffer, needed);
}
 
return true;
 }
 
+static bool test_GetPrinterData_list(struct torture_context *tctx,
+

[SCM] SAMBA-CTDB repository - branch v3-4-ctdb updated - 3.4.2-ctdb-13-3-gea9d98b

2009-12-04 Thread Michael Adam
The branch, v3-4-ctdb has been updated
   via  ea9d98bea833e7629616484262951ab4de8f4d95 (commit)
   via  b3028f32653bb9e0cf7000659c3247726307f83c (commit)
   via  d9b8daa63cd3ca9dc707f86ca30f05bf9eb398d3 (commit)
  from  ea9ae65c18b21efae0596795055127e3e04672c2 (commit)

http://gitweb.samba.org/?p=obnox/samba-ctdb.git;a=shortlog;h=v3-4-ctdb


- Log -
commit ea9d98bea833e7629616484262951ab4de8f4d95
Author: Volker Lendecke v...@samba.org
Date:   Thu Dec 3 01:55:52 2009 +0100

s3: Fix the code to immediately disconnect from a non-working ctdbd

commit b3028f32653bb9e0cf7000659c3247726307f83c
Author: Volker Lendecke v...@samba.org
Date:   Tue Dec 1 11:45:03 2009 +0100

Add a low-cost alternative to wbinfo -t: winfo --ping-dc

commit d9b8daa63cd3ca9dc707f86ca30f05bf9eb398d3
Author: Jeremy Allison j...@samba.org
Date:   Mon Nov 23 19:19:07 2009 -0800

Fix bug #6898 - Samba duplicates file content on appending. Move posix case 
semantics out from under the VFS. Jeremy.

---

Summary of changes:
 nsswitch/libwbclient/wbc_pam.c |   44 +++
 nsswitch/libwbclient/wbclient.h|   13 +
 nsswitch/wbinfo.c  |   32 +++
 nsswitch/winbind_struct_protocol.h |1 +
 source3/lib/ctdbd_conn.c   |1 +
 source3/smbd/nttrans.c |   43 +++
 source3/smbd/open.c|   11 
 source3/winbindd/winbindd.c|1 +
 source3/winbindd/winbindd_domain.c |4 +++
 source3/winbindd/winbindd_misc.c   |   50 
 source3/winbindd/winbindd_proto.h  |3 ++
 11 files changed, 192 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/nsswitch/libwbclient/wbc_pam.c b/nsswitch/libwbclient/wbc_pam.c
index 422665a..02dc700 100644
--- a/nsswitch/libwbclient/wbc_pam.c
+++ b/nsswitch/libwbclient/wbc_pam.c
@@ -533,6 +533,50 @@ wbcErr wbcCheckTrustCredentials(const char *domain,
return wbc_status;
 }
 
+/*
+ * Trigger a no-op NETLOGON call. Lightweight version of
+ * wbcCheckTrustCredentials
+ */
+wbcErr wbcPingDc(const char *domain, struct wbcAuthErrorInfo **error)
+{
+   struct winbindd_request request;
+   struct winbindd_response response;
+   wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE;
+
+   if (domain) {
+   /*
+* the current protocol doesn't support
+* specifying a domain
+*/
+   wbc_status = WBC_ERR_NOT_IMPLEMENTED;
+   BAIL_ON_WBC_ERROR(wbc_status);
+   }
+
+   ZERO_STRUCT(request);
+   ZERO_STRUCT(response);
+
+   /* Send request */
+
+   wbc_status = wbcRequestResponse(WINBINDD_PING_DC,
+   request,
+   response);
+   if (response.data.auth.nt_status != 0) {
+   if (error) {
+   wbc_status = wbc_create_error_info(NULL,
+  response,
+  error);
+   BAIL_ON_WBC_ERROR(wbc_status);
+   }
+
+   wbc_status = WBC_ERR_AUTH_ERROR;
+   BAIL_ON_WBC_ERROR(wbc_status);
+   }
+   BAIL_ON_WBC_ERROR(wbc_status);
+
+ done:
+   return wbc_status;
+}
+
 /* Trigger an extended logoff notification to Winbind for a specific user */
 wbcErr wbcLogoffUserEx(const struct wbcLogoffUserParams *params,
   struct wbcAuthErrorInfo **error)
diff --git a/nsswitch/libwbclient/wbclient.h b/nsswitch/libwbclient/wbclient.h
index d3c1b63..4970d1f 100644
--- a/nsswitch/libwbclient/wbclient.h
+++ b/nsswitch/libwbclient/wbclient.h
@@ -1183,6 +1183,19 @@ wbcErr wbcResolveWinsByIP(const char *ip, char **name);
 wbcErr wbcCheckTrustCredentials(const char *domain,
struct wbcAuthErrorInfo **error);
 
+/**
+ * @brief Trigger a no-op call through the NETLOGON pipe. Low-cost
+ *version of wbcCheckTrustCredentials
+ *
+ * @param *domain  The name of the domain, only NULL for the default 
domain is
+ * supported yet. Other values than NULL will result in
+ * WBC_ERR_NOT_IMPLEMENTED.
+ * @param errorOutput details on WBC_ERR_AUTH_ERROR
+ *
+ * @return #wbcErr
+ **/
+wbcErr wbcPingDc(const char *domain, struct wbcAuthErrorInfo **error);
+
 /**
  * Helper functions
  **/
diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c
index d12e512..6195b75 100644
--- a/nsswitch/wbinfo.c
+++ b/nsswitch/wbinfo.c
@@ -719,6 +719,30 @@ static bool wbinfo_check_secret(void)
return true;
 }
 
+/* Check DC 

[SCM] SAMBA-CTDB repository - branch v3-4-ctdb updated - 3.4.2-ctdb-13-5-gb296ac8

2009-12-04 Thread Michael Adam
The branch, v3-4-ctdb has been updated
   via  b296ac84125be1d8f4d43aa89ec5b4cdc60df3e6 (commit)
   via  51e4c2db0fc1294669b56f4536e7e913297713ab (commit)
  from  ea9d98bea833e7629616484262951ab4de8f4d95 (commit)

http://gitweb.samba.org/?p=obnox/samba-ctdb.git;a=shortlog;h=v3-4-ctdb


- Log -
commit b296ac84125be1d8f4d43aa89ec5b4cdc60df3e6
Author: Michael Adam ob...@samba.org
Date:   Fri Dec 4 14:53:05 2009 +0100

s3:dbwrap_ctdb: increase the number of commit retries 5--100

This is to cope with timeouts when recoveries and transactions collide.
Maybe 100 is too hight, but 10 or even 20 have been too low in a
very busy environment.

Michael

commit 51e4c2db0fc1294669b56f4536e7e913297713ab
Author: Michael Adam ob...@samba.org
Date:   Fri Dec 4 14:49:53 2009 +0100

s3:dbwrap_ctdb: increase the rsn of the __transaction_lock__ when storing

so that it is correctly handled by recoveries.
Also set the dmaster explicitly.

Michael

---

Summary of changes:
 source3/lib/dbwrap_ctdb.c |4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c
index 8563990..8e188d0 100644
--- a/source3/lib/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap_ctdb.c
@@ -381,6 +381,8 @@ again:
pid = getpid();
data.dptr = (unsigned char *)pid;
data.dsize = sizeof(pid_t);
+   crec-header.rsn++;
+   crec-header.dmaster = get_my_vnn();
status = db_ctdb_ltdb_store(ctx, key, (crec-header), data);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, (__location__  Failed to store pid in transaction 
@@ -848,7 +850,7 @@ again:
}
}
 
-   if (++retries == 5) {
+   if (++retries == 100) {
DEBUG(0,(__location__  Giving up transaction on db 
0x%08x after %d retries failure_control=%u\n, 
 h-ctx-db_id, retries, 
(unsigned)failure_control));
ctdbd_control_local(messaging_ctdbd_connection(), 
failure_control,


-- 
SAMBA-CTDB repository


Re: [SCM] Samba Shared Repository - branch master updated

2009-12-04 Thread Tim Prouty


On Dec 4, 2009, at 2:47 AM, Stefan (metze) Metzmacher wrote:


Hi Tim,

 diff --git a/source4/selftest/knownfail b/source4/selftest/knownfail
 index e2ae2cf..37c9f6a 100644
 --- a/source4/selftest/knownfail
 +++ b/source4/selftest/knownfail
 @@ -10,9 +10,7 @@ base.delete.*.deltest20a
  base.delete.*.deltest20b
  raw.rename.*.osxrename
  raw.rename.*.directory rename
 +raw.sfileinfo.*.END_OF_FILE
  rpc.winreg.*security
  samba4.local.registry.(dir|ldb).check hive security
  samba4.local.registry.local.security

 Unfortunately, I'm still seeing failures in source4 'make test'.   
Am I

 missing
 something simple?

yes, it's END-OF-FILE not END_OF_FILE:-)



Thanks for the followup.  This should be fixed now as of:  
5c857768d1415c4e70a9b7a96b8a9de1ec8efdee


-Tim


[SCM] Samba Shared Repository - branch master updated

2009-12-04 Thread Jim McDonough
The branch, master has been updated
   via  265e4df... s3: bug #6967: Prevent glibc error on net ads join: 
talloc()ed memory should not be SAFE_FREE()ed.
  from  02fe863... s4-smbtorture: heavily expand printerdata tests in 
RPC-SPOOLSS.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 265e4dfbb614398cffc5619a9800fc85f96e5438
Author: Jim McDonough j...@samba.org
Date:   Fri Dec 4 12:31:53 2009 -0500

s3: bug #6967: Prevent glibc error on net ads join:
talloc()ed memory should not be SAFE_FREE()ed.

Signed-off-by: Jim McDonough j...@samba.org

---

Summary of changes:
 source3/libads/ldap.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index bb8d43c..4005ed6 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -2089,7 +2089,7 @@ ADS_STATUS ads_move_machine_acct(ADS_STRUCT *ads, const 
char *machine_name,
 done:
ads_msgfree(ads, res);
SAFE_FREE(filter);
-   SAFE_FREE(computer_dn);
+   TALLOC_FREE(computer_dn);
SAFE_FREE(computer_rdn);
 
if (!ADS_ERR_OK(rc)) {


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-5-test updated

2009-12-04 Thread Jim McDonough
The branch, v3-5-test has been updated
   via  242d117... s3: bug #6967: Prevent glibc error on net ads join:  
talloc()ed memory should not be SAFE_FREE()ed.
  from  217a02b... s3 aclocal.m4: Fix iconv checks, clean up m4 code

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -
commit 242d1179f92666e7548cb2f26695a0306e20d64c
Author: Jim McDonough j...@samba.org
Date:   Fri Dec 4 12:31:53 2009 -0500

s3: bug #6967: Prevent glibc error on net ads join:
 talloc()ed memory should not be SAFE_FREE()ed.

Signed-off-by: Jim McDonough j...@samba.org

---

Summary of changes:
 source3/libads/ldap.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index bb8d43c..4005ed6 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -2089,7 +2089,7 @@ ADS_STATUS ads_move_machine_acct(ADS_STRUCT *ads, const 
char *machine_name,
 done:
ads_msgfree(ads, res);
SAFE_FREE(filter);
-   SAFE_FREE(computer_dn);
+   TALLOC_FREE(computer_dn);
SAFE_FREE(computer_rdn);
 
if (!ADS_ERR_OK(rc)) {


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2009-12-04 Thread Jeremy Allison
The branch, master has been updated
   via  32915ce... Make Samba3 pass the RAW-LOCK test as Windows.
   via  1d3942c... Make smbtorture4 match Windows behavior.
  from  265e4df... s3: bug #6967: Prevent glibc error on net ads join: 
talloc()ed memory should not be SAFE_FREE()ed.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 32915ceefc718621e2e9b17fee97da82744ab67a
Author: Jeremy Allison j...@samba.org
Date:   Fri Dec 4 14:04:08 2009 -0800

Make Samba3 pass the RAW-LOCK test as Windows.

Implement the win7 NT_STATUS_INVALID_LOCK_RANGE.
Make smbd behave as Windows does in canceling locks.

Jeremy.

commit 1d3942c534791e7767b64be383e6e035b164c506
Author: Jeremy Allison j...@samba.org
Date:   Fri Dec 4 14:02:52 2009 -0800

Make smbtorture4 match Windows behavior.

Jeremy.

---

Summary of changes:
 source3/locking/brlock.c   |5 +++
 source3/smbd/reply.c   |   24 
 source4/torture/raw/lock.c |   84 
 3 files changed, 67 insertions(+), 46 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index b021293..22c6c9e 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -333,6 +333,11 @@ NTSTATUS brl_lock_windows_default(struct byte_range_lock 
*br_lck,
SMB_ASSERT(plock-lock_type != UNLOCK_LOCK);
 
for (i=0; i  br_lck-num_locks; i++) {
+   if (locks[i].start + locks[i].size  locks[i].start) {
+   /* 64-bit wrap. Error. */
+   return NT_STATUS_INVALID_LOCK_RANGE;
+   }
+
/* Do any Windows or POSIX locks conflict ? */
if (brl_conflict(locks[i], plock)) {
/* Remember who blocked us. */
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 030939f..185f601 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -7038,6 +7038,30 @@ NTSTATUS smbd_do_locking(struct smb_request *req,
if (type  LOCKING_ANDX_CANCEL_LOCK) {
struct blocking_lock_record *blr = NULL;
 
+   if (num_locks  1) {
+   /*
+* MS-CIFS (2.2.4.32.1) states that a cancel is 
honored if and only
+* if the lock vector contains one entry. When 
given mutliple cancel
+* requests in a single PDU we expect the 
server to return an
+* error. Windows servers seem to accept the 
request but only
+* cancel the first lock.
+* JRA - Do what Windows does (tm) :-).
+*/
+
+#if 0
+   /* MS-CIFS (2.2.4.32.1) behavior. */
+   return NT_STATUS_DOS(ERRDOS,
+   ERRcancelviolation);
+#else
+   /* Windows behavior. */
+   if (i != 0) {
+   DEBUG(10,(smbd_do_locking: ignoring 
subsequent 
+   cancel request\n));
+   continue;
+   }
+#endif
+   }
+
if (lp_blocking_locks(SNUM(conn))) {
 
/* Schedule a message to ourselves to
diff --git a/source4/torture/raw/lock.c b/source4/torture/raw/lock.c
index f36d492..6871ed3 100644
--- a/source4/torture/raw/lock.c
+++ b/source4/torture/raw/lock.c
@@ -69,19 +69,20 @@
}} while (0)
 #define BASEDIR \\testlock
 
-#define TARGET_SUPPORTS_SMBLOCK(_tctx) \
-(torture_setting_bool(_tctx, smblock_pdu_support, true))
-#define TARGET_SUPPORTS_OPENX_DENY_DOS(_tctx) \
-(torture_setting_bool(_tctx, openx_deny_dos_support, true))
-#define TARGET_SUPPORTS_INVALID_LOCK_RANGE(_tctx) \
-(torture_setting_bool(_tctx, invalid_lock_range_support, true))
 #define TARGET_IS_W2K8(_tctx) (torture_setting_bool(_tctx, w2k8, false))
 #define TARGET_IS_WIN7(_tctx) (torture_setting_bool(_tctx, win7, false))
 #define TARGET_IS_WINDOWS(_tctx) ((torture_setting_bool(_tctx, w2k8, false)) 
|| \
- (torture_setting_bool(_tctx, win7, false)))
+ (torture_setting_bool(_tctx, win7, false)) 
|| \
+ (torture_setting_bool(_tctx, w2k3, false)))
 #define TARGET_IS_SAMBA3(_tctx) (torture_setting_bool(_tctx, samba3, false))
 #define TARGET_IS_SAMBA4(_tctx) (torture_setting_bool(_tctx, samba4, false))
 
+#define TARGET_SUPPORTS_INVALID_LOCK_RANGE(_tctx) \
+   (torture_setting_bool(_tctx, 

[SCM] Samba Shared Repository - branch v3-5-test updated

2009-12-04 Thread Jeremy Allison
The branch, v3-5-test has been updated
   via  3ec654d... Make Samba3 pass the RAW-LOCK test as Windows.
  from  242d117... s3: bug #6967: Prevent glibc error on net ads join:  
talloc()ed memory should not be SAFE_FREE()ed.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-5-test


- Log -
commit 3ec654de706f4bd2576245333cc98105388a3c10
Author: Jeremy Allison j...@samba.org
Date:   Fri Dec 4 14:04:08 2009 -0800

Make Samba3 pass the RAW-LOCK test as Windows.

Implement the win7 NT_STATUS_INVALID_LOCK_RANGE.
Make smbd behave as Windows does in canceling locks.

Jeremy.
(cherry picked from commit 32915ceefc718621e2e9b17fee97da82744ab67a)

---

Summary of changes:
 source3/locking/brlock.c |5 +
 source3/smbd/reply.c |   24 
 2 files changed, 29 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index b021293..22c6c9e 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -333,6 +333,11 @@ NTSTATUS brl_lock_windows_default(struct byte_range_lock 
*br_lck,
SMB_ASSERT(plock-lock_type != UNLOCK_LOCK);
 
for (i=0; i  br_lck-num_locks; i++) {
+   if (locks[i].start + locks[i].size  locks[i].start) {
+   /* 64-bit wrap. Error. */
+   return NT_STATUS_INVALID_LOCK_RANGE;
+   }
+
/* Do any Windows or POSIX locks conflict ? */
if (brl_conflict(locks[i], plock)) {
/* Remember who blocked us. */
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 030939f..185f601 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -7038,6 +7038,30 @@ NTSTATUS smbd_do_locking(struct smb_request *req,
if (type  LOCKING_ANDX_CANCEL_LOCK) {
struct blocking_lock_record *blr = NULL;
 
+   if (num_locks  1) {
+   /*
+* MS-CIFS (2.2.4.32.1) states that a cancel is 
honored if and only
+* if the lock vector contains one entry. When 
given mutliple cancel
+* requests in a single PDU we expect the 
server to return an
+* error. Windows servers seem to accept the 
request but only
+* cancel the first lock.
+* JRA - Do what Windows does (tm) :-).
+*/
+
+#if 0
+   /* MS-CIFS (2.2.4.32.1) behavior. */
+   return NT_STATUS_DOS(ERRDOS,
+   ERRcancelviolation);
+#else
+   /* Windows behavior. */
+   if (i != 0) {
+   DEBUG(10,(smbd_do_locking: ignoring 
subsequent 
+   cancel request\n));
+   continue;
+   }
+#endif
+   }
+
if (lp_blocking_locks(SNUM(conn))) {
 
/* Schedule a message to ourselves to


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2009-12-04 Thread Björn Jacke
The branch, master has been updated
   via  3264a98... s3: check if glibc has broken posix_fallocate
  from  32915ce... Make Samba3 pass the RAW-LOCK test as Windows.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 3264a98ff16de899d11ef37b98a7d7a7c763fe22
Author: Björn Jacke b...@sernet.de
Date:   Fri Dec 4 23:26:47 2009 +0100

s3: check if glibc has broken posix_fallocate

---

Summary of changes:
 source3/configure.in |   16 
 source3/lib/system.c |2 +-
 2 files changed, 17 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/configure.in b/source3/configure.in
index c7ad8e7..16fbf88 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -2977,6 +2977,22 @@ exit(1);
   fi
 fi
 
+# glibc up to 2.3.6 had dangerously broken posix_fallocate(). DON'T USE IT.
+AC_CACHE_CHECK([for broken 
posix_fallocate],samba_cv_HAVE_BROKEN_POSIX_FALLOCATE,[
+AC_TRY_COMPILE([
+  #define _XOPEN_SOURCE 600
+  #include stdlib.h
+  #if defined(__GLIBC__)  ((__GLIBC__  2) || (__GLIBC__ == 2  
__GLIBC_MINOR__  4))
+probably broken posix_fallocate
+  #endif
+], [
+], 
+samba_cv_HAVE_BROKEN_POSIX_FALLOCATE=no,samba_cv_HAVE_BROKEN_POSIX_FALLOCATE=yes)])
+if test x$samba_cv_HAVE_BROKEN_POSIX_FALLOCATE = xyes; then
+   AC_DEFINE(HAVE_BROKEN_POSIX_FALLOCATE,, Whether we have a broken 
posix_fallocate)
+fi
+
+
 AC_CACHE_CHECK([for st_blocks in struct stat],samba_cv_HAVE_STAT_ST_BLOCKS,[
 AC_TRY_COMPILE([#include sys/types.h
 #include sys/stat.h
diff --git a/source3/lib/system.c b/source3/lib/system.c
index b18358d..905beed 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -612,7 +612,7 @@ int sys_lstat(const char *fname,SMB_STRUCT_STAT *sbuf,
 /***
  An posix_fallocate() wrapper that will deal with 64 bit filesizes.
 /
-#if defined(HAVE_POSIX_FALLOCATE64) || defined(HAVE_POSIX_FALLOCATE)
+#if (defined(HAVE_POSIX_FALLOCATE64) || defined(HAVE_POSIX_FALLOCATE))  
!defined(HAVE_BROKEN_POSIX_FALLOCATE)
 int sys_posix_fallocate(int fd, SMB_OFF_T offset, SMB_OFF_T len)
 {
 #if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT)  defined(HAVE_OFF64_T)  
defined(HAVE_POSIX_FALLOCATE64)


-- 
Samba Shared Repository


[SCM] SAMBA-CTDB repository - branch v3-4-ctdb updated - 3.4.2-ctdb-13-6-gd3978e7

2009-12-04 Thread Michael Adam
The branch, v3-4-ctdb has been updated
   via  d3978e760b6d0ced0d854a6ec67da67ed16eba23 (commit)
  from  b296ac84125be1d8f4d43aa89ec5b4cdc60df3e6 (commit)

http://gitweb.samba.org/?p=obnox/samba-ctdb.git;a=shortlog;h=v3-4-ctdb


- Log -
commit d3978e760b6d0ced0d854a6ec67da67ed16eba23
Author: Michael Adam ob...@samba.org
Date:   Fri Dec 4 23:29:22 2009 +0100

packaging(RHEL-CTDB): package dbwrap_tool and dbwrap_torture in the common 
pkg

Michael

---

Summary of changes:
 packaging/RHEL-CTDB/samba.spec.tmpl |5 +
 1 files changed, 5 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/packaging/RHEL-CTDB/samba.spec.tmpl 
b/packaging/RHEL-CTDB/samba.spec.tmpl
index 9ee39cf..5b05b99 100644
--- a/packaging/RHEL-CTDB/samba.spec.tmpl
+++ b/packaging/RHEL-CTDB/samba.spec.tmpl
@@ -302,6 +302,9 @@ mkdir -p $RPM_BUILD_ROOT/%{_libarchdir}/krb5/plugins/libkrb5
 cd source3
 make DESTDIR=$RPM_BUILD_ROOT \
 install
+
+make DESTDIR=$RPM_BUILD_ROOT \
+install-dbwrap_tool install-dbwrap_torture
 cd ..
 
 # NSS winbind support
@@ -590,6 +593,8 @@ exit 0
 %{_bindir}/ntlm_auth
 %{_bindir}/pdbedit
 %{_bindir}/smbcquotas
+%{_bindir}/dbwrap_tool
+%{_bindir}/dbwrap_torture
 
 %{_mandir}/man1/ntlm_auth.1*
 %{_mandir}/man1/profiles.1*


-- 
SAMBA-CTDB repository


Build status as of Sat Dec 5 07:00:02 2009

2009-12-04 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2009-12-04 
00:00:08.0 -0700
+++ /home/build/master/cache/broken_results.txt 2009-12-05 00:00:03.0 
-0700
@@ -1,22 +1,22 @@
-Build status as of Fri Dec  4 07:00:02 2009
+Build status as of Sat Dec  5 07:00:02 2009
 
 Build counts:
 Tree Total  Broken Panic 
 build_farm   0  0  0 
-ccache   4  1  0 
+ccache   3  1  0 
 distcc   0  0  0 
-ldb  34 34 0 
-libreplace   2  1  0 
+ldb  8  8  0 
+libreplace   3  1  0 
 lorikeet 0  0  0 
-pidl 2  2  0 
-ppp  3  0  0 
-rsync2  0  0 
+pidl 3  3  0 
+ppp  2  0  0 
+rsync3  0  0 
 samba-docs   0  0  0 
 samba-web0  0  0 
 samba_3_current 31 29 0 
-samba_3_master 32 29 4 
+samba_3_master 32 29 3 
 samba_3_next 32 30 2 
 samba_4_0_test 34 31 0 
-talloc   2  1  0 
-tdb  1  0  0 
+talloc   4  1  0 
+tdb  3  0  0