[Samba] libsmbclient.so.0 size too big in embedded environment

2010-05-12 Thread Barry Sia
Hi,

 

I'm trying to use libsmbclient in my embedded device.

However, it's too big (currently 5.8 MB samba v3.4.4)

I played around with the configure options (removing ldap, etc.) but the
smallest I got was still around 4+ MB.

 

Has anyone successfully reduced the size of libsmbclient?

I only need basic functionality like browsing hosts and shares.

Thanks for your help.

 

 

Thanks,

Barry 

 

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


[Samba] Samba 3.5.2 packages for Debian lenny (some issues left)

2010-05-12 Thread Christian PERRIER
 So, as a service to our users, I prepared some packages which are now
 available from http://pkg-samba.alioth.debian.org, also known as the
 not so official but still quite actively supported backport service of the
 samba packaging team of the Debian project (which makes a fairly long
 name...).
 
 These packages are functionally identical to 3.5.2 package we provide
 in Debian experimentalbut are usable on Debian lenny systems.

There are still a few issues that are|were hitting these backproted
packages:

- up to yesterday, the size of the arch:all packages (samba-common,
samba-doc, samba-doc-pdf) was not fittingn the size mentioned in the
Packages file, leading to an APT warning.
  This was indirectly caused by the manual upload of binary packages
  for the amd64 platform and has been fixed

- the winbind package fails to install properly because of the
  use of an unknown command in its postinst script.
  This can be fixed with the following hack (as root):
  ln -s /bin/true /usr/local/bin/pam-auth-update
  (please remember removing that link once that packages are
  installed)
  An alternate way to avoid this is by remmoving the lines calling
  pam-auth-update in /var/lib/dpkg/info/winbind.{postrm,postinst}

I'm preparing updated packages to fix this.

  



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

[Samba] extra readdir operation when writing to a non-existent file

2010-05-12 Thread Zhang Bingjun (Eddy)
hi samba fellows,

It is my first time to ask questions in samba mail list. Very sorry if
my question is very naive.

The problem is when I write to
a non-existent file from windows to a linux export, there will be an
extra readdir operation triggered. If I write to an existent file, no
readdir operation will be triggered.

How could I avoid the extra readdir operation in all cases when I am just
writing to a file?

Very much appreciate your help!

I used samba
(3.4.0) to export a FUSE mount from Ubuntu with the following smb.cnf:


[global]
  security = share
  guest account = nobody

[mofs]
  path = /mnt/mofs
  public = yes
  guest ok = yes
  guest only = yes
  guest account = nobody
  writeable = yes
  browseable = yes


From the FUSE debugging info, I can see an extra readdir operation is
there when writing to a non-existent file
(/test/wj9.txt). I highlighted all key OS file
operations in the FUSE debugging info below:

--
unique: 22, opcode: GETATTR (3), nodeid: 1, insize: 56
*getattr /*
   unique: 22, success, outsize: 120
unique: 23, opcode: LOOKUP (1), nodeid: 1, insize: 45
LOOKUP /test
*getattr /test*
   NODEID: 2
   unique: 23, success, outsize: 144
unique: 24, opcode: LOOKUP (1), nodeid: 2, insize: 48
LOOKUP /test/wj9.txt
*getattr /test/wj9.txt*
   unique: 24, error: -2 (No such file or directory), outsize: 16
unique: 25, opcode: LOOKUP (1), nodeid: 2, insize: 48
LOOKUP /test/wj9.txt
*getattr /test/wj9.txt*
   unique: 25, error: -2 (No such file or directory), outsize: 16
unique: 26, opcode: OPENDIR (27), nodeid: 2, insize: 48
   unique: 26, success, outsize: 32
unique: 27, opcode: READDIR (28), nodeid: 2, insize: 80
*readdir[0] from 0*
   unique: 27, success, outsize: 496
unique: 28, opcode: READDIR (28), nodeid: 2, insize: 80
   unique: 28, success, outsize: 16
unique: 29, opcode: RELEASEDIR (29), nodeid: 2, insize: 64
   unique: 29, success, outsize: 16
unique: 30, opcode: GETATTR (3), nodeid: 2, insize: 56
*getattr /test*
   unique: 30, success, outsize: 120
unique: 31, opcode: LOOKUP (1), nodeid: 2, insize: 48
LOOKUP /test/wj9.txt
*getattr /test/wj9.txt*
   unique: 31, error: -2 (No such file or directory), outsize: 16
unique: 32, opcode: LOOKUP (1), nodeid: 2, insize: 48
LOOKUP /test/wj9.txt
*getattr /test/wj9.txt*
   unique: 32, error: -2 (No such file or directory), outsize: 16
unique: 33, opcode: LOOKUP (1), nodeid: 2, insize: 48
LOOKUP /test/wj9.txt
*getattr /test/wj9.txt*
   unique: 33, error: -2 (No such file or directory), outsize: 16
unique: 34, opcode: CREATE (35), nodeid: 2, insize: 64
*create flags: 0x8042 /test/wj9.txt 0100744 umask=*
   create[10570272] flags: 0x81e6 /test/wj9.txt
*getattr /test/wj9.txt*
   NODEID: 7
   unique: 34, success, outsize: 160
unique: 35, opcode: SETATTR (4), nodeid: 7, insize: 128
*truncate /test/wj9.txt 0*
*getattr /test/wj9.txt*
   unique: 35, success, outsize: 120
unique: 36, opcode: GETATTR (3), nodeid: 2, insize: 56
*getattr /test*
   unique: 36, success, outsize: 120
unique: 37, opcode: WRITE (16), nodeid: 7, insize: 112
*write[10570272] 32 bytes to 0 flags: 0xa002*
   write[10570272] 32 bytes to 0
   unique: 37, success, outsize: 24
unique: 38, opcode: WRITE (16), nodeid: 7, insize: 112
*write[10570272] 32 bytes to 32 flags: 0xa002*
   write[10570272] 32 bytes to 32
   unique: 38, success, outsize: 24
unique: 39, opcode: FLUSH (25), nodeid: 7, insize: 64
*flush[10570272]*
   unique: 39, success, outsize: 16
unique: 40, opcode: RELEASE (18), nodeid: 7, insize: 64
*release[10570272] flags: 0x8002*
   unique: 40, success, outsize: 16
unique: 41, opcode: GETATTR (3), nodeid: 7, insize: 56
*getattr /test/wj9.txt*
   unique: 41, success, outsize: 120
unique: 42, opcode: SETATTR (4), nodeid: 7, insize: 128
utimens /test/wj9.txt 10.0 1273643329.801998000
*getattr /test/wj9.txt*
   unique: 42, success, outsize: 120
--

However, if I write to an existent file
(/test/wj12.txt), there is no readdir operation. I highlighted all key OS
file operations in the FUSE debugging info below:

--
unique: 5, opcode: GETATTR (3), nodeid: 1, insize: 56
*getattr /*
   unique: 5, success, outsize: 120
unique: 6, opcode: LOOKUP (1), nodeid: 1, insize: 45
LOOKUP /test
*getattr /test*
   NODEID: 2
   unique: 6, success, outsize: 144
unique: 7, opcode: LOOKUP (1), nodeid: 2, insize: 49
LOOKUP /test/wj12.txt
*getattr /test/wj12.txt*
   NODEID: 3
   unique: 7, success, outsize: 144
unique: 8, opcode: OPEN (14), nodeid: 3, insize: 48
*open flags: 0x8002 /test/wj12.txt*
   open[16502720] flags: 0x8002 /test/wj12.txt
   unique: 8, success, outsize: 32
unique: 9, opcode: SETATTR (4), nodeid: 3, 

Re: [Samba] please wait for the user profile service...

2010-05-12 Thread Evan Ingram
On Thu, 2010-05-06 at 18:41 +0100, Damien Dye wrote:
 Evan
 
 whats your profile paths set to in the global section of smb.conf  ?
 because windows thinks you got it set to \\samba\username\

http://pastebin.com/DedrS9Uh

 
 no c: users is required you must have the registry part of the profile
 local the rest does not.

so no matter where i have my profile dirs on samba, they always have to
be on the windows C: drive as well? 

i set the server up with a relatively small windows partition and a big
samba partition thinking all the user data and shared data could go on
the samba partition. as it stands user data is filling my windows
partition up.

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


[Samba] pdbedit: unable to delete machine

2010-05-12 Thread Joseph Metzler

Hi,

i am unable to delete a machine account:
pdbedit -x -m myMachine$
unable to delete machine myMachine$

there is still an account in /etc/passwd for this machine.
pdbedit -L | grep myMachine 
does not find the account but

pdbedit -Lv myMachine$ 
Unix username:myMachine$
NT username:
Account Flags:[W  ]
User SID: S-1-5-21-3806833646-4237951892-2933512824-23108
Primary Group SID:S-1-5-21-3806833646-4237951892-2933512824-513
Full Name:Machine
Home Directory:   \\serv-01\profiles\myMachine_\Eigene Dateien
HomeDir Drive:H:
Logon Script: myMachine_.cmd
Profile Path: \\serv-01\profiles\myMachine_
Domain:   XYZ
Account desc:
Workstations:
Munged dial:
Logon time:   0
Logoff time:  Sun, 07 Feb 2106 07:28:15 CET
Kickoff time: Sun, 07 Feb 2106 07:28:15 CET
Password last set:Thu, 18 Jun 2009 13:48:49 CEST
Password can change:  Thu, 18 Jun 2009 13:48:49 CEST
Password must change: never
Last bad password   : 0
Bad password count  : 0
Logon hours : FF

is the passdb.tbd corrupt, or did I miss something

Using Samba 3.2.5 on debian lenny

joseph

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


Re: [Samba] extra readdir operation when writing to a non-existent file

2010-05-12 Thread Zhang Bingjun (Eddy)
Hi Alain,

Your suggestion works. Thank you very much!

Best regards,
Zhang Bingjun, Eddy



On Wed, May 12, 2010 at 4:33 PM, Alain Knaff al...@knaff.lu wrote:

 On 12/05/10 10:16, Zhang Bingjun (Eddy) wrote:
  hi samba fellows,
 
  It is my first time to ask questions in samba mail list. Very sorry if
  my question is very naive.
 
  The problem is when I write to
  a non-existent file from windows to a linux export, there will be an
  extra readdir operation triggered. If I write to an existent file, no
  readdir operation will be triggered.

 I'm still pretty knew on this list too, but let me take a guess about
 what may be going on:

 Windows (by default) is case-insensitive, Unix is case-sensitive. So, if
 you write to a non existant file (let's call it test.txt), the kernel
 will tell samba that the file test.txt doesn't exist. However, there
 could be a file called Test.txt or TEST.TXT, ... The open call won't
 tell that, the only way for samba to find out is to do a readdir and
 manually go through the list to see whether anything matches in a
 case-insensitive way.

 
  How could I avoid the extra readdir operation in all cases when I am just
  writing to a file?

 Switching samba to a case-sensitive mode might help, try putting the
 following into your smb.conf:

 case sensitive = yes


 if that alone doesn't help, you might try setting all 4 of the following:

 default case = lower
 sensitive = yes
 preserve case = no
 short preserve case = No

 Indeed, the smb.conf says the following:

 default case = upper/lower
controls what the default case is for new filenames (ie. files that
donŽt currently exist in the filesystem). Default lower. IMPORTANT
NOTE: This option will be used to modify the case of all incoming
client filenames, not just new filenames if the options case
sensitive = yes, preserve case = No, short preserve case = No are
set. This change is needed as part of the optimisations for
directories containing large numbers of files.

 
  Very much appreciate your help!

 Regards,

 Alain

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

Re: [Samba] RE : RE : RE : RE : RE : Domain not found in Samba 4 AD

2010-05-12 Thread Michael Wood
2010/5/12 Viatte Frédéric frederic.via...@rpn.ch:
 The name of my machine is Server.Samba, why put Server.server.Samba? When 
 I do a ping-a 192.168.1.220 from my Windows machine, I get: Response 
 Client.server.Samba, as if my domain was called Server.Samba.

Your windows machine is trying to query for serveur.serveur.samba.
I don't know why.

What did you specify for the --realm when you ran the provision script?

 In my file host which I also have two n'on nothing to make me think:
 192.168.1.100 Server Server
 192.168.1.100 server server

If your DNS is correctly configured you should not need that in your
hosts file.  Also hostnames are not case sensitive, so it is not
necessary to have Server and 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


[Samba] net ads dns register

2010-05-12 Thread Khaled Blah
Hello,

I would like to know whether it is possible to select (a) specific
IP(s) for a net ads dns register call. The reason for my question is
that we have setups with several interfaces, a few of which are
internal interfaces but technically they're ethernet interfaces.
Adding all those internal interfaces to a Windows AD server leads to
the DNS server giving out the wrong IP address.

Thanks in advance!

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


[Samba] RE : RE : RE : RE : RE : RE : Domain not found in Samba 4 AD

2010-05-12 Thread Viatte Frédéric
Here is the command that I realized:

. / Setup / provision - realm = Server.Samba - domain = Samba - adminpass = 
password - server-role = 'domain controller'

Thank you for your help!


De : Michael Wood [esiot...@gmail.com]
Date d'envoi : mercredi 12 mai 2010 12:14
À : Viatte Frédéric
Cc : Andrew Bartlett; samba@lists.samba.org
Objet : Re: RE : RE : [Samba] RE : RE : RE : Domain not found in Samba 4 AD

2010/5/12 Viatte Frédéric frederic.via...@rpn.ch:
 The name of my machine is Server.Samba, why put Server.server.Samba? When 
 I do a ping-a 192.168.1.220 from my Windows machine, I get: Response 
 Client.server.Samba, as if my domain was called Server.Samba.

Your windows machine is trying to query for serveur.serveur.samba.
I don't know why.

What did you specify for the --realm when you ran the provision script?

 In my file host which I also have two n'on nothing to make me think:
 192.168.1.100 Server Server
 192.168.1.100 server server

If your DNS is correctly configured you should not need that in your
hosts file.  Also hostnames are not case sensitive, so it is not
necessary to have Server and 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


[Samba] new users, new group, can't access share

2010-05-12 Thread Leonardo Carneiro - Veltrac
Hi everyone. I have a Samba 3.4.7 (bpo) on a debian box running as PDC 
with a LDAP backend. i have added a new group, 2 new users and created a 
new group share for them, but by some unknown reason they cannon access 
the share. the client is running windows vista. here's what i did:


   smbldap-groupadd -a office
   smbldap-useradd -a -m user1
   smbldap-useradd -a -m user2
   smbldap-passwd user1
   smbldap-passwd user2
   smbldap-usermod -G +office user1
   smbldap-usermod -G +office user2

and added the following entry to my smb.conf:

   [office]
   writeable = yes
   map acl inherit = yes
   inherit permissions = yes
   path = /home/grupos/office
   force directory mode = 02777
   force create mode = 0777
   create mask = 0777
   directory mask = 02777
   valid users = @office

here is the folder permissions:

   fileserver:~# ls -ld /home/grupos/office/
   drwxrwx--- 2 root office 4096 2010-05-12 09:30 /home/grupos/office/

did i missed something?

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


[Samba] Re-Installing samba on new hard drive

2010-05-12 Thread Leandro Tracchia
I'm currently running samba as a primary domain controller on Ubuntu
8.04. I am going to do a fresh install of Ubuntu 10.04 onto a new hard
drive and install that distribution's samba package. This will replace
my current installation. I don't plan on changing the configuration
file (smb.conf). The configuration file from my current samba
installation will be copied to the new installation.

How will my Window clients that are joined to the current domain handle this?
Will they have to re-join the new domain, even though its not a new
domain since its the same configuration file?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] new users, new group, can't access share

2010-05-12 Thread Leonardo Carneiro - Veltrac

Leonardo Carneiro - Veltrac wrote:
Hi everyone. I have a Samba 3.4.7 (bpo) on a debian box running as PDC 
with a LDAP backend. i have added a new group, 2 new users and created 
a new group share for them, but by some unknown reason they cannon 
access the share. the client is running windows vista. here's what i did:


   smbldap-groupadd -a office
   smbldap-useradd -a -m user1
   smbldap-useradd -a -m user2
   smbldap-passwd user1
   smbldap-passwd user2
   smbldap-usermod -G +office user1
   smbldap-usermod -G +office user2

and added the following entry to my smb.conf:

   [office]
   writeable = yes
   map acl inherit = yes
   inherit permissions = yes
   path = /home/grupos/office
   force directory mode = 02777
   force create mode = 0777
   create mask = 0777
   directory mask = 02777
   valid users = @office

here is the folder permissions:

   fileserver:~# ls -ld /home/grupos/office/
   drwxrwx--- 2 root office 4096 2010-05-12 09:30 /home/grupos/office/

did i missed something?

Tks in advance.
I forgot to tell, this particular machine has not joined the domain, but 
this never has been a problem with other machines so far.

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


Re: [Samba] RE : RE : RE : RE : RE : RE : Domain not found in Samba 4 AD

2010-05-12 Thread Michael Wood
2010/5/12 Viatte Frédéric frederic.via...@rpn.ch:
 Here is the command that I realized:

 . / Setup / provision - realm = Server.Samba - domain = Samba - adminpass = 
 password - server-role = 'domain controller'

OK, then it seems that your realm, and therefore your DNS domain, is
server.samba, so that is why the Windows machine is trying to find
server.server.samba.

I think you should try something like this rather:

setup/provision --realm=SAMBA.LOCAL --domain=SAMBA --adminpass=
--server-role=domain controller

Then make sure that your DNS works for all of these:
server.samba.local (A record)
_ldap._tcp.samba.local. (SRV record)
_kerberos._udp.samba.local. (SRV record)

I hope that works.

-- 
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] new users, new group, can't access share

2010-05-12 Thread Leonardo Carneiro - Veltrac

Leonardo Carneiro - Veltrac wrote:

Leonardo Carneiro - Veltrac wrote:
Hi everyone. I have a Samba 3.4.7 (bpo) on a debian box running as 
PDC with a LDAP backend. i have added a new group, 2 new users and 
created a new group share for them, but by some unknown reason they 
cannon access the share. the client is running windows vista. here's 
what i did:


   smbldap-groupadd -a office
   smbldap-useradd -a -m user1
   smbldap-useradd -a -m user2
   smbldap-passwd user1
   smbldap-passwd user2
   smbldap-usermod -G +office user1
   smbldap-usermod -G +office user2

and added the following entry to my smb.conf:

   [office]
   writeable = yes
   map acl inherit = yes
   inherit permissions = yes
   path = /home/grupos/office
   force directory mode = 02777
   force create mode = 0777
   create mask = 0777
   directory mask = 02777
   valid users = @office

here is the folder permissions:

   fileserver:~# ls -ld /home/grupos/office/
   drwxrwx--- 2 root office 4096 2010-05-12 09:30 /home/grupos/office/

did i missed something?

Tks in advance.
I forgot to tell, this particular machine has not joined the domain, 
but this never has been a problem with other machines so far.
Giving full permission to the folder (chmod -R +rwx /home/grupos/office) 
permit the user to access, but i rather not use like this. There is 
another way out?

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


Re: [Samba] new users, new group, can't access share

2010-05-12 Thread John Drescher
 Giving full permission to the folder (chmod -R +rwx /home/grupos/office)
 permit the user to access, but i rather not use like this. There is another
 way out?

Use proper POSIX acls so that if the user was logged on to the linux
box they would be able to access that folder. This way there is no
need to force permissions in samba.

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


Re: [Samba] 3.5.2 connecting to nmb alias without password

2010-05-12 Thread christoph . beye

Heyho,

I RTFMed a bit and snip:

smb ports = 139

did the trick :)

cheers
christoph


On Fri, 7 May 2010, christoph.be...@desy.de wrote:


Hi there,

I use 3.5.2 with netbios aliases in security mode ADS. When I connect to the 
primary netbios name from a windows host I get the samba machine right away.


Connecting to the netbios alias (which is on a differen IP address) I have to 
type name and pwd to get the connection.


DNS entries are OK.

Is there any way to get rid of the pwd question, I had the same setup with 
3.0.20 for a long time without problems but in the meantime also the AD was 
upgraded so I don't know who is really bothering me here ...


cheers  thanksfor any hint
~ christoph


--
/*   Christoph Beyer |   Office: Building 2b / 23 *\
 *   DESY|Phone: 040-8998-2317*
 *   - IT -  |  Fax: 040-8998-4060*
\*   22603 Hamburg   | http://www.desy.de */






best regards
~christoph


--
/*   Christoph Beyer |   Office: Building 2b / 23 *\
 *   DESY|Phone: 040-8998-2317*
 *   - IT -  |  Fax: 040-8998-4060*
\*   22603 Hamburg   | http://www.desy.de */


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


[Samba] RE : RE : RE : RE : Domain not found in Samba 4 AD

2010-05-12 Thread Viatte Frédéric
So I reinstalled my server, starting with the alpha 12, but its changes nothing!

I did an analysis that the analyzer, here the information I have chosen: (I 
send you a picture)

Thanks.

De : Michael Wood [esiot...@gmail.com]
Date d'envoi : mardi 11 mai 2010 08:49
À : Viatte Frédéric
Cc : Andrew Bartlett; samba@lists.samba.org
Objet : Re: [Samba] RE : RE : RE : Domain not found in Samba 4 AD

Hi

2010/5/11 Viatte Frédéric frederic.via...@rpn.ch

 I do not think my error comes from my version of Alpha, in the other person, 
 it worked!

I did not try alpha11.  I got it to work with the version from git
about a week ago.  But I think it should also work with Alpha 11.

 So I think my problem is elsewhere!

Probably.

 Person to another idea?

Do you have any more information from wireshark about what is
happening when you try to add the user?

--
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

[Samba] Samba join to AD error

2010-05-12 Thread chin
ads_sasl_spnego_krb5_bind fail : Invalid credentials Failed to join domain :
Invalid credentials

 

Best regards

誠德科技有限公司
侯景騰 Chin  0922-874-882;0968608-438 
台北市中山區敬業三路176號3樓
TEL:02-85025695 #17
Fax:02-85025696
eMail:chin...@artt.com.tw 


 

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

Re: [Samba] extra readdir operation when writing to a non-existent file

2010-05-12 Thread Alain Knaff
On 12/05/10 10:16, Zhang Bingjun (Eddy) wrote:
 hi samba fellows,
 
 It is my first time to ask questions in samba mail list. Very sorry if
 my question is very naive.
 
 The problem is when I write to
 a non-existent file from windows to a linux export, there will be an
 extra readdir operation triggered. If I write to an existent file, no
 readdir operation will be triggered.

I'm still pretty knew on this list too, but let me take a guess about
what may be going on:

Windows (by default) is case-insensitive, Unix is case-sensitive. So, if
you write to a non existant file (let's call it test.txt), the kernel
will tell samba that the file test.txt doesn't exist. However, there
could be a file called Test.txt or TEST.TXT, ... The open call won't
tell that, the only way for samba to find out is to do a readdir and
manually go through the list to see whether anything matches in a
case-insensitive way.

 
 How could I avoid the extra readdir operation in all cases when I am just
 writing to a file?

Switching samba to a case-sensitive mode might help, try putting the
following into your smb.conf:

case sensitive = yes


if that alone doesn't help, you might try setting all 4 of the following:

default case = lower
sensitive = yes
preserve case = no
short preserve case = No

Indeed, the smb.conf says the following:

default case = upper/lower
controls what the default case is for new filenames (ie. files that
donŽt currently exist in the filesystem). Default lower. IMPORTANT
NOTE: This option will be used to modify the case of all incoming
client filenames, not just new filenames if the options case
sensitive = yes, preserve case = No, short preserve case = No are
set. This change is needed as part of the optimisations for
directories containing large numbers of files.

 
 Very much appreciate your help!

Regards,

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

Re: [Samba] extra readdir operation when writing to a non-existent file

2010-05-12 Thread Alain Knaff
On 12/05/10 10:16, Zhang Bingjun (Eddy) wrote:
 hi samba fellows,
 
 It is my first time to ask questions in samba mail list. Very sorry if
 my question is very naive.
 
 The problem is when I write to
 a non-existent file from windows to a linux export, there will be an
 extra readdir operation triggered. If I write to an existent file, no
 readdir operation will be triggered.

I'm still pretty knew on this list too, but let me take a guess about
what may be going on:

Windows (by default) is case-insensitive, Unix is case-sensitive. So, if
you write to a non existant file (let's call it test.txt), the kernel
will tell samba that the file test.txt doesn't exist. However, there
could be a file called Test.txt or TEST.TXT, ... The open call won't
tell that, the only way for samba to find out is to do a readdir and
manually go through the list to see whether anything matches in a
case-insensitive way.

 
 How could I avoid the extra readdir operation in all cases when I am just
 writing to a file?

Switching samba to a case-sensitive mode might help, try putting the
following into your smb.conf:

case sensitive = yes


if that alone doesn't help, you might try setting all 4 of the following:

default case = lower
sensitive = yes
preserve case = no
short preserve case = No

Indeed, the smb.conf says the following:

default case = upper/lower
controls what the default case is for new filenames (ie. files that
donŽt currently exist in the filesystem). Default lower. IMPORTANT
NOTE: This option will be used to modify the case of all incoming
client filenames, not just new filenames if the options case
sensitive = yes, preserve case = No, short preserve case = No are
set. This change is needed as part of the optimisations for
directories containing large numbers of files.

 
 Very much appreciate your help!

Regards,

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

[Samba] smbd/winbindd truncating user name: Could not parse domain user

2010-05-12 Thread Klaus Kreuzwieser
Hello,

we have built Samba 3.5.2 with ADS support on Solaris 10 and joined the
server successfully into the domain. kinit, klist, wbinfo -g, wbinfo -u, net
ads info are working correctly.

Unfortunately whenever we want to access a share on the Solaris server from
our Windows XP / Windows 7 clients we get a logon box to specify username
and password.

smbd log file shows that the logon attempt is made with the correct user
(i.e. MYDOMAIN\WKAABC) but winbindd log file shows that the first character
of the username is missing (i.e. KAABC). We can not explain that weird
behaviour and have not found any hint in the documentation, bug database or
newsgroups.

Any help greatly appreciated!

Thanks,
Klaus

log.smbd
[2010/05/12 09:14:34.411902,  2] smbd/sesssetup.c:1390(setup_new_vc_session)
  setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all
old resources.
[2010/05/12 09:14:34.411964,  3]
smbd/sesssetup.c:1189(reply_sesssetup_and_X_spnego)
  Doing spnego session setup
[2010/05/12 09:14:34.412032,  3]
smbd/sesssetup.c:1231(reply_sesssetup_and_X_spnego)
  NativeOS=[Windows 2002 Service Pack 3 2600] NativeLanMan=[Windows 2002
5.1] PrimaryDomain=[]
[2010/05/12 09:14:34.412309,  5]
smbd/sesssetup.c:753(parse_spnego_mechanisms)
  parse_spnego_mechanisms: Got OID 1.2.840.48018.1.2.2
[2010/05/12 09:14:34.412364,  5]
smbd/sesssetup.c:753(parse_spnego_mechanisms)
  parse_spnego_mechanisms: Got OID 1.2.840.113554.1.2.2
[2010/05/12 09:14:34.412424,  5]
smbd/sesssetup.c:753(parse_spnego_mechanisms)
  parse_spnego_mechanisms: Got OID 1.3.6.1.4.1.311.2.2.10
[2010/05/12 09:14:34.412478,  3]
smbd/sesssetup.c:805(reply_spnego_negotiate)
  reply_spnego_negotiate: Got secblob of size 1483
[2010/05/12 09:14:34.433890,  3] libads/authdata.c:304(decode_pac_data)
  Found account name from PAC: WKAABC [Limited User]
[2010/05/12 09:14:34.434046,  3] smbd/sesssetup.c:338(reply_spnego_kerberos)
  Ticket name is [wka...@myrealm]
[2010/05/12 09:14:34.434550,  5] lib/username.c:133(Get_Pwnam_alloc)
  Finding user MYDOMAIN\WKAABC
[2010/05/12 09:14:34.434609,  5] lib/username.c:77(Get_Pwnam_internals)
  Trying _Get_Pwnam(), username as lowercase is rcmlan\wkaabc
[2010/05/12 09:14:34.452351,  5] lib/username.c:85(Get_Pwnam_internals)
  Trying _Get_Pwnam(), username as given is MYDOMAIN\WKAABC
[2010/05/12 09:14:34.454281,  5] lib/username.c:104(Get_Pwnam_internals)
  Checking combinations of 0 uppercase letters in rcmlan\wkaabc
[2010/05/12 09:14:34.454428,  5] lib/username.c:110(Get_Pwnam_internals)
  Get_Pwnam_internals didn't find user [MYDOMAIN\WKAABC]!
[2010/05/12 09:14:34.454492,  5] lib/username.c:133(Get_Pwnam_alloc)
  Finding user WKAABC
[2010/05/12 09:14:34.454545,  5] lib/username.c:77(Get_Pwnam_internals)
  Trying _Get_Pwnam(), username as lowercase is wkaabc
[2010/05/12 09:14:34.455095,  5] lib/username.c:85(Get_Pwnam_internals)
  Trying _Get_Pwnam(), username as given is WKAABC
[2010/05/12 09:14:34.455676,  5] lib/username.c:104(Get_Pwnam_internals)
  Checking combinations of 0 uppercase letters in wkaabc
[2010/05/12 09:14:34.455746,  5] lib/username.c:110(Get_Pwnam_internals)
  Get_Pwnam_internals didn't find user [WKAABC]!
[2010/05/12 09:14:34.456052,  1] smbd/sesssetup.c:454(reply_spnego_kerberos)
  Username MYDOMAIN\WKAABC is invalid on this system
[2010/05/12 09:14:34.456164,  3] smbd/error.c:80(error_packet_set)
  error packet at smbd/sesssetup.c(459) cmd=115 (SMBsesssetupX)
NT_STATUS_LOGON_FAILURE

log.winbindd
[2010/05/12 09:14:34.451314,  3]
winbindd/winbindd_misc.c:385(winbindd_priv_pipe_dir)
  [17648]: request location of privileged pipe
[2010/05/12 09:14:34.452088,  2]
winbindd/winbindd.c:826(winbind_client_request_read)
  Could not read client request from fd 25: I/O error
[2010/05/12 09:14:34.452884,  3]
winbindd/winbindd_misc.c:352(winbindd_interface_version)
  [17648]: request interface version
[2010/05/12 09:14:34.453144,  3]
winbindd/winbindd_misc.c:385(winbindd_priv_pipe_dir)
  [17648]: request location of privileged pipe
[2010/05/12 09:14:34.453926,  3]
winbindd/winbindd_getpwnam.c:55(winbindd_getpwnam_send)
  getpwnam KAABC
[2010/05/12 09:14:34.453997,  5]
winbindd/winbindd_getpwnam.c:68(winbindd_getpwnam_send)
  Could not parse domain user: KAABC
[2010/05/12 09:14:34.454088,  5]
winbindd/winbindd_getpwnam.c:138(winbindd_getpwnam_recv)
  Could not convert sid S-0-0: NT_STATUS_INVALID_PARAMETER
[2010/05/12 09:14:34.454768,  3]
winbindd/winbindd_getpwnam.c:55(winbindd_getpwnam_send)
  getpwnam
[2010/05/12 09:14:34.454828,  5]
winbindd/winbindd_getpwnam.c:68(winbindd_getpwnam_send)
  Could not parse domain user:
[2010/05/12 09:14:34.454915,  5]
winbindd/winbindd_getpwnam.c:138(winbindd_getpwnam_recv)
  Could not convert sid S-0-0: NT_STATUS_INVALID_PARAMETER
[2010/05/12 09:14:34.455334,  3]
winbindd/winbindd_getpwnam.c:55(winbindd_getpwnam_send)
  getpwnam
[2010/05/12 09:14:34.455393,  5]
winbindd/winbindd_getpwnam.c:68(winbindd_getpwnam_send)
  Could not parse domain user:
[2010/05/12 

Re: [Samba] Samba memory usage and IPC$

2010-05-12 Thread Stéphane PURNELLE
Hi Volker,

Stange thing, no output with the command smbcontrol 24429 pool-usage 

If I execute the same command for the PID 19080, I have data

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND 
19080 pym   15   0  197m  38m  17m S  1.7  1.0   1:56.07 smbd



thanks for your help

Stéphane Purnelle

---
Stéphane PURNELLE Admin. Systèmes et Réseaux 
Service Informatique   Corman S.A.   Tel : 00 32 (0)87/342467



Volker Lendecke volker.lende...@sernet.de 
10/05/2010 15:23
Veuillez répondre à
volker.lende...@sernet.de


A
Stéphane PURNELLE stephane.purne...@corman.be
cc
samba@lists.samba.org
Objet
Re: [Samba] Samba memoeur usage and IPC$






On Mon, May 10, 2010 at 12:34:34PM +0200, Stéphane PURNELLE wrote:
 Hi all,
 
 I have a question about memory usage and IPC$ share.
 
 I'am auditing the swap usage of my server because I already have a 
problem 
 with a full swap.
 I see that the smbd process take  200Mo on swap : 
 
 Example : 
 PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND
 24429 lge   15   0  197m  39m  14m S  0.3  1.0   0:15.17 smbd 
 
 but some process use more than 200Mo
 4923 ipcsrv15   0  282m 121m  16m S 10.3  3.1   6:27.57 smbd

The 39m and 121m are what counts. They are very large.

Can you run

smbstatus 24429 pool-usage

and post the output somewhere?

In case, process 24429 does not exist anymore, please
replace this number with the process id of a large process.

Thanks,

Volker

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

Re: [Samba] Samba PDC and OpenLdap Debian Lenny, Change IP, Clean cache?

2010-05-12 Thread Jose
Thanks Olafrv   the log is solve.



2010/5/11  ola...@gmail.com:
 Try rm -rf /var/lib/samba/* ? But make a backup tar.gz before...


   You don't know where your shadow will fall,
        Somebody.-
 
  Olaf Reitmaier Veracierta (BB) ola...@gmail.com
 
            http://olafrv.googlepages.com
 

 -Original Message-
 From: Jose j.se...@gmail.com
 Date: Tue, 11 May 2010 10:48:11
 To: Foro Sambasamba@lists.samba.org
 Subject: [Samba] Samba PDC and OpenLdap Debian Lenny, Change IP, Clean cache?

 Hello

 Sorry for my english

 I have a PDC with Samba and OpenLdap in Debian 5 lenny.

 I am testing group, users,policy, net join workstation bla bla
 bla.   results very good.

 Today change ip static the pdc  192.168.56.101  for  new ip address:
 192.168.56.102 static.

 error log in /var/lib/samba/log.nmbd

 nx-1:/var/lib/samba# /etc/init.d/samba restart
 Stopping Samba daemons: nmbd[2010/05/10 05:33:50, 0] nmbd/nmbd.c:terminate(68)
 Got SIGTERM: going down...
 smbd.
 Starting Samba daemons: nmbd smbd.
 lnx-1:/var/lib/samba# [2010/05/10 05:33:53, 0] nmbd/nmbd.c:main(849)
 nmbd version 3.2.5 started.
 Copyright Andrew Tridgell and the Samba Team 1992-2008
 [2010/05/10 05:33:53, 0] nmbd/asyncdns.c:start_async_dns(155)
 started asyncdns process 2921
 [2010/05/10 05:33:53, 0] nmbd/nmbd_logonnames.c:add_logon_names(160)
 add_domain_logon_names:
 Attempting to become logon server for workgroup DOMINIO.INT on subnet
 192.168.56.102
 [2010/05/10 05:33:53, 0] nmbd/nmbd_logonnames.c:add_logon_names(160)
 add_domain_logon_names:
 Attempting to become logon server for workgroup DOMINIO.INT on subnet
 UNICAST_SUBNET
 [2010/05/10 05:33:53, 0]
 nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(336)
 become_domain_master_browser_wins:
 Attempting to become domain master browser on workgroup DOMINIO.INT,
 subnet UNICAST_SUBNET.
 [2010/05/10 05:33:53, 0]
 nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(350)
 become_domain_master_browser_wins: querying WINS server from IP
 127.0.0.1 for domain master browser name DOMINIO.INT1b on workgroup
 DOMINIO.INT
 [2010/05/10 05:33:53, 0] 
 nmbd/nmbd_logonnames.c:become_logon_server_success(121)
 become_logon_server_success: Samba is now a logon server for workgroup
 DOMINIO.INT on subnet UNICAST_SUBNET
 [2010/05/10 05:33:53, 0]
 nmbd/nmbd_become_dmb.c:become_domain_master_query_success(234)
 become_domain_master_query_success:
 There is already a domain master browser at IP 192.168.56.101 for
 workgroup DOMINIO.INT registered on subnet UNICAST_SUBNET.
 [2010/05/10 05:33:57, 0] 
 nmbd/nmbd_logonnames.c:become_logon_server_success(121)
 become_logon_server_success: Samba is now a logon server for workgroup
 DOMINIO.INT on subnet 192.168.56.102

 [2010/05/10 05:34:16, 0] 
 nmbd/nmbd_become_lmb.c:become_local_master_stage2(395)
 *

 Samba name server LNX-1 is now a local master browser for workgroup
 DOMINIO.INT on subnet 192.168.56.102
 *
 lnx-1:/var/lib/samba# [2010/05/10 05:34:37, 0]
 nmbd/nmbd_browsesync.c:domain_master_node_status_fail(247)
 domain_master_node_status_fail:
 Doing a node status request to the domain master browser
 for workgroup DOMINIO.INT at IP 192.168.56.101 failed.
 Cannot sync browser lists.
 [2010/05/10 05:39:07, 0]
 nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(336)
 become_domain_master_browser_wins:
 Attempting to become domain master browser on workgroup DOMINIO.INT,
 subnet UNICAST_SUBNET.
 [2010/05/10 05:39:07, 0]
 nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(350)
 become_domain_master_browser_wins: querying WINS server from IP
 127.0.0.1 for domain master browser name DOMINIO.INT1b on workgroup
 DOMINIO.INT
 [2010/05/10 05:39:08, 0]
 nmbd/nmbd_become_dmb.c:become_domain_master_query_success(234)
 become_domain_master_query_success:
 There is already a domain master browser at IP 192.168.56.101 for
 workgroup DOMINIO.INT registered on subnet UNICAST_SUBNET.

 [2010/05/10 06:13:33,  0]
 nmbd/nmbd_browsesync.c:domain_master_node_status_fail(247)
  domain_master_node_status_fail:
  Doing a node status request to the domain master browser
  for workgroup DOMINIO.INT at IP 192.168.56.101 failed.
  Cannot sync browser lists.


 Old ip 192.168.56.101
 new ip 192.168.56.102


 How clean cache ip wins in the server pdc?

 Thanks.




 --
 #
 #   Sistema Operativo: Debian      #
 #        Caracas, Venezuela          #
 #
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba




-- 
#
#   Sistema Operativo: Debian  #
#Caracas, Venezuela  #
#
-- 
To unsubscribe from this list go to the following URL and read the

[Samba] tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb is already open in this process

2010-05-12 Thread Jose
Why this log?

Debian Lenny  5.0.4
Samba with PDC

tailf -f /var/log/samna/log.nmbd

tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb (65025,49187)
is already open in this process
[2010/05/12 09:57:36,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:36,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:36,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:36,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:36,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:36,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:36,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:36,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:36,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:37,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:37,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:37,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:37,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:37,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:37,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:37,  1] lib/util_tdb.c:tdb_log(682)
  tdb(unnamed): tdb_open_ex: /var/run/samba/unexpected.tdb
(65025,49187) is already open in this process
[2010/05/12 09:57:37,  1] lib/util_tdb.c:tdb_log(682)


Thanks

-- 
#
#   Sistema Operativo: Debian  #
#Caracas, Venezuela  #
#
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] RE : Domain not found in Samba 4 AD

2010-05-12 Thread Viatte Frédéric
I tried your solution, reinstalling my server and my DNS, and I put as name :   
   domaine.ch

I have not reinstalled all Samba 4, but when it's doing, I'll gives new!

This may be the name: Samba can cause confusion

Thank you


De : Michael Wood [esiot...@gmail.com]
Date d'envoi : mercredi 12 mai 2010 15:42
À : Viatte Frédéric
Cc : Andrew Bartlett; samba@lists.samba.org
Objet : Re: RE : RE : RE : [Samba] RE : RE : RE : Domain not found in Samba 4   
AD

2010/5/12 Viatte Frédéric frederic.via...@rpn.ch:
 Here is the command that I realized:

 . / Setup / provision - realm = Server.Samba - domain = Samba - adminpass = 
 password - server-role = 'domain controller'

OK, then it seems that your realm, and therefore your DNS domain, is
server.samba, so that is why the Windows machine is trying to find
server.server.samba.

I think you should try something like this rather:

setup/provision --realm=SAMBA.LOCAL --domain=SAMBA --adminpass=
--server-role=domain controller

Then make sure that your DNS works for all of these:
server.samba.local (A record)
_ldap._tcp.samba.local. (SRV record)
_kerberos._udp.samba.local. (SRV record)

I hope that works.

--
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] RE : Domain not found in Samba 4 AD

2010-05-12 Thread Michael Wood
2010/5/12 Viatte Frédéric frederic.via...@rpn.ch:
 I tried your solution, reinstalling my server and my DNS, and I put as name : 
      domaine.ch

 I have not reinstalled all Samba 4, but when it's doing, I'll gives new!

OK, I hope it works.

 This may be the name: Samba can cause confusion

I don't think there's anything special about the name samba.  I
think the problem was a confusion between the machine name and the
realm/DNS domain name.

Anyway, I hope using domain.ch as the realm fixes your problem.

-- 
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


[Samba] (no subject)

2010-05-12 Thread andrew . miskell
I think I'm chalking this up to a bug with either the configure script or 
the xl_C compiler not returning the correct results for that test.

If I use the gcc compiler, the configure log has:

configure:29740: checking whether krb5_mk_error takes 3 arguments MIT or 9 
Heimdal
configure:29758: gcc -c -I/opt/CMNSsamba/include -O 
-I/opt/CMNSsamba/include  -Iinclude -I./include  -I. -I. 
-I./../lib/replace -I./../lib/tevent -I./libaddn
s -I./librpc -I./.. -I./../lib/popt -I/opt/CMNSsamba/include 
-DLDAP_DEPRECATED conftest.c 5
conftest.c: In function 'main':
conftest.c:525: error: too few arguments to function 'krb5_mk_error'
configure:29758: $? = 1

If I use the xl_C compiler, the configure log has:

configure:29740: checking whether krb5_mk_error takes 3 arguments MIT or 9 
Heimdal
configure:29758: cc -qlanglvl=extc89 -qlanglvl=extc99 -c 
-I/opt/CMNSsamba/include  -D_LINUX_SOURCE_COMPAT -qmaxmem=32000 
-D_LINUX_SOURCE_COMPAT -qmaxmem=3200
0 -I/opt/CMNSsamba/include  -Iinclude -I./include  -I. -I. 
-I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./.. 
-I./../lib/popt -I/opt/CMNSsam
ba/include -DLDAP_DEPRECATED conftest.c 5
conftest.c, line 524.18: 1506-098 (E) Missing argument(s).
configure:29758: $? = 0
configure:29765: result: yes

So editing config.h to undefine HAVE_SHORT_KRB5_MK_ERROR_INTERFACE, allows 
me to continue compiling, however, when I get to linking smbd, I get the 
following output. The duplicate symbols are fine, but I can't seem to 
figure out the unresolved symbol.

Linking bin/smbd
ld: 0711-224 WARNING: Duplicate symbol: __start
ld: 0711-224 WARNING: Duplicate symbol: .__start
ld: 0711-224 WARNING: Duplicate symbol: __C_runtime_pstartup
ld: 0711-224 WARNING: Duplicate symbol: p_xargc
ld: 0711-224 WARNING: Duplicate symbol: p_xargv
ld: 0711-224 WARNING: Duplicate symbol: .__threads_init
ld: 0711-224 WARNING: Duplicate symbol: __threads_init
ld: 0711-224 WARNING: Duplicate symbol: _malloc_user_defined_name
ld: 0711-224 WARNING: Duplicate symbol: __pth_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _bsd_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _xti_tli_init_routine
ld: 0711-224 WARNING: Duplicate symbol: _nsl_init_routine
ld: 0711-224 WARNING: Duplicate symbol: __dce_compat_init_routine
ld: 0711-224 WARNING: Duplicate symbol: .rep_asprintf
ld: 0711-224 WARNING: Duplicate symbol: .rep_vsnprintf
ld: 0711-224 WARNING: Duplicate symbol: .rep_snprintf
ld: 0711-224 WARNING: Duplicate symbol: .rep_vasprintf
ld: 0711-224 WARNING: Duplicate symbol: .fsav
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF14
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef14
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF15
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef15
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF16
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef16
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF17
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef17
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF18
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef18
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF19
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef19
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF20
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef20
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF21
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef21
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF22
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef22
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF23
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef23
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF24
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef24
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF25
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef25
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF26
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef26
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF27
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef27
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF28
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef28
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF29
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef29
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF30
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef30
ld: 0711-224 WARNING: Duplicate symbol: .$SAVEF31
ld: 0711-224 WARNING: Duplicate symbol: .Ssavef31
ld: 0711-224 WARNING: Duplicate symbol: ._savef3
ld: 0711-224 WARNING: Duplicate symbol: .fres
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF14
ld: 0711-224 WARNING: Duplicate symbol: .Srestf14
ld: 0711-224 WARNING: Duplicate symbol: ._restf14
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF15
ld: 0711-224 WARNING: Duplicate symbol: .Srestf15
ld: 0711-224 WARNING: Duplicate symbol: ._restf15
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF16
ld: 0711-224 WARNING: Duplicate symbol: .Srestf16
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF17
ld: 0711-224 WARNING: Duplicate symbol: .Srestf17
ld: 0711-224 WARNING: Duplicate symbol: .$RESTF18
ld: 0711-224 

Re: [Samba] samba4 - where is libnss_winbind.so?

2010-05-12 Thread Laurent BARRAILLE

Since samba 4 alpha 11 libnss_winbind.so is not compiled.
There is some info in the the samba-technical mailing list :

http://lists.samba.org/archive/samba-technical/2010-March/069882.html


Le 11/05/2010 12:55, Tomasz Chmielewski a écrit :

I compiled Samba4 with these instructions:

http://wiki.samba.org/index.php/Samba4/HOWTO


I would like to use Winbind according to this description (so that I
can use getent passwd to enumerate users):

http://wiki.samba.org/index.php/Samba4/Winbind


Unfortunately, I don't find libnss_winbind.so anywhere.

In fact, I don't find any \*winbind\*so file anywhere in compiled
Samba4 sources.

What should I do to use Winbind with Samba4?



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


Re: [Samba] new users, new group, can't access share

2010-05-12 Thread Dale Schroeder

On 05/12/2010 8:30 AM, Leonardo Carneiro - Veltrac wrote:

Leonardo Carneiro - Veltrac wrote:
Hi everyone. I have a Samba 3.4.7 (bpo) on a debian box running as 
PDC with a LDAP backend. i have added a new group, 2 new users and 
created a new group share for them, but by some unknown reason they 
cannon access the share. the client is running windows vista. here's 
what i did:


   smbldap-groupadd -a office
   smbldap-useradd -a -m user1
   smbldap-useradd -a -m user2
   smbldap-passwd user1
   smbldap-passwd user2
   smbldap-usermod -G +office user1
   smbldap-usermod -G +office user2

and added the following entry to my smb.conf:

   [office]
   writeable = yes
   map acl inherit = yes
   inherit permissions = yes
   path = /home/grupos/office
   force directory mode = 02777
   force create mode = 0777
   create mask = 0777
   directory mask = 02777
   valid users = @office

here is the folder permissions:

   fileserver:~# ls -ld /home/grupos/office/
   drwxrwx--- 2 root office 4096 2010-05-12 09:30 /home/grupos/office/

did i missed something?

Possibly.


Tks in advance.
I forgot to tell, this particular machine has not joined the domain, 
but this never has been a problem with other machines so far.


Since the client is not in the domain, do you have this in [global]?
map untrusted to domain = Yes

See the Authentication Changes section of 
http://www.samba.org/samba/history/samba-3.4.0.html


Dale

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


Re: [Samba] Samba join to AD error

2010-05-12 Thread Dale Schroeder
On 05/12/2010 3:21 AM, chin wrote:
 ads_sasl_spnego_krb5_bind fail : Invalid credentials Failed to join domain :
 Invalid credentials

 Best regards
 
 誠德科技有限公司
 侯景騰 Chin  0922-874-882;0968608-438 
 台北市中山區敬業三路176號3樓
 TEL:02-85025695 #17
 Fax:02-85025696
 eMail:chin...@artt.com.tw 
 
   
If you're using one of the Debian-based linux distributions, check your
version of libkrb5-3 and compare to this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566977

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

[Samba] upgraded 3.0.28a-2 to 3.4.7-0.2, profile desktop configuration no longer saved

2010-05-12 Thread David Mathog
Upgraded a Samba server from 3.0.28a-2 to 3.4.7-0.2.  Initially the XP
workstations could not log on (not finding machine account) then
discovered a new passdb variable, so added to smb.conf:

 passdb backend = smbpasswd

and also changed all browseable - browsable.  Restarted the server. 
Domain logins worked.  Test files saved to desktop are retained between
logins (are stored in the profile).  Logins take about 30 seconds.

HOWEVER, changes to the icon layout and desktop, for instance the
background color, are NOT retained.  Those default back to the original
settings on each logon. They used to be saved.  No change to the XP
client has been made.

After logout, if no files were explicitly saved, the only files with new
data stamps in the profile are:
  ntuser.dat, ntuser.dat.LOG and ntuser.ini.

Looked at the event viewer as Administrator on the XP machine and found
an application warning for the test account which might be relevant (or
a red herring):

  Windows has detected that Offline Caching is enabled on the Roaming
  Profile share - to avoid potential profile corruption, Offline
  Caching must be disabled on shares where roaming user profiles are
  shared.

Part of the smb.conf (unchanged since the older server other than
spelling change on browsable) :

[homes]
comment = Home Directories
read only = No
create mask = 0700
directory mask = 0700
browsable = No

[netlogon]
comment = Contains login script which just mounts PDB area
path = /u1/usr/netlogon

[pdb]
comment = PDB database directory
path = /u4/pdb

[profiles]
comment = user's profile directories
path = /u1/usr/people/%u/profile
read only = No
create mask = 0700
directory mask = 0700
browsable = No

The one script contains just this line:

  net use p: \\safserver\pdb /persistent:no

Desktop settings used to be retained in the roaming profiles.
What has changed between these Samba versions to account for this
difference?


Thank you,

David Mathog
mat...@caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Re-Installing samba on new hard drive

2010-05-12 Thread Dale Schroeder

On 05/12/2010 8:13 AM, Leandro Tracchia wrote:

I'm currently running samba as a primary domain controller on Ubuntu
8.04. I am going to do a fresh install of Ubuntu 10.04 onto a new hard
drive and install that distribution's samba package. This will replace
my current installation. I don't plan on changing the configuration
file (smb.conf). The configuration file from my current samba
installation will be copied to the new installation.
   
Familiarize yourself with the changes between your old version of Samba 
and the new:

http://www.samba.org/samba/history/

How will my Window clients that are joined to the current domain handle this?
Will they have to re-join the new domain, even though its not a new
domain since its the same configuration file?
   

Start here:
http://www.samba.org/samba/docs/man/Samba-Guide/upgrades.html#id2600749

Retain the same SID.
Perhaps, copy /var/lib/samba.
There are other variables, depending upon your particular configuration.

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


Re: [Samba] please wait for the user profile service...

2010-05-12 Thread Damien Dye
Well the roaming profiles are copied to the host machine when a user logson and 
back again when they log off. You can use policy to redirect some of the 
profile folders like my doc desktop and app data live on the server to make the 
profile significantly smaller.

Also enforcing deleting roaming profiles in policy will remove the profile at 
logoff too 

-Original Message-
From: Evan Ingram evan.ing...@cariss.co.uk
Sent: 12 May 2010 09:24 AM
To: Damien Dye damien.j@googlemail.com
Cc: samba samba@lists.samba.org
Subject: Re: [Samba] please wait for the user profile service...

On Thu, 2010-05-06 at 18:41 +0100, Damien Dye wrote:
 Evan
 
 whats your profile paths set to in the global section of smb.conf  ?
 because windows thinks you got it set to \\samba\username\

http://pastebin.com/DedrS9Uh

 
 no c: users is required you must have the registry part of the profile
 local the rest does not.

so no matter where i have my profile dirs on samba, they always have to
be on the windows C: drive as well? 

i set the server up with a relatively small windows partition and a big
samba partition thinking all the user data and shared data could go on
the samba partition. as it stands user data is filling my windows
partition up.


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


[Samba] select read/write access by user or group?

2010-05-12 Thread William P.N. Smith
This should be simple, but I've been pounding my head against it for 
several hours, and I'm not getting the result I want.


I'd like to be able to select shares, whether they are the root of a 
drive or /home/username and designate who can read and who can read/write.


Does Samba have it's own groups to go with it's own users?

I really can only use security = user in this case...

I'd like to do something like give the root user read/write access to 
the root of the drive, give user roy read-only access to the root of the 
drive, and give user willie read/write access to /home/pictures, is 
there a way to do that with Samba or is that a Linux/groups/acl kind of 
thing?


It seems if I have a share that someone can read, anyone can read it, is 
that right?


There are some hints in the default smb.conf like:
# A publicly accessible directory, but read only, except for people in
# the staff group
;   [public]
;   comment = Public Stuff
;   path = /home/samba
;   public = yes
;   writable = yes
;   printable = no
;   write list = +staff

but +staff isn't documented anywhere (user or @group is, but not 
+staff), and adding creating a Linux group called staff and adding users 
to it doesn't help.


Thanks in advance for any hints!
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] upgraded 3.0.28a-2 to 3.4.7-0.2, profile desktop configuration no longer saved

2010-05-12 Thread David Mathog
No progress so far.  Changed to this

  logon path = \\%L\profiles\%U\%a

which moved the profile out of the home directory, but otherwise made no
difference.  Also tried adding

  csc policy = disable

which also did not enable saving of desktop configuration information.
(Server was restarted after each change.)  Note files in the profile are
saved, but for some reason the desktop configuration information either
doesn't get to the server, or isn't downloaded from it at the next login.

Anything else I should try?

Thanks,

David Mathog
mat...@caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech

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


Re: [Samba] select read/write access by user or group?

2010-05-12 Thread zoolook
2010/5/12 William P.N. Smith w_sm...@compusmiths.com:

 It seems if I have a share that someone can read, anyone can read it, is
 that right?

depends; how did you configure your shares?


 but +staff isn't documented anywhere (user or @group is, but not +staff),
 and adding creating a Linux group called staff and adding users to it
 doesn't help.

+ is explained in the manual. Did you read it?


 Thanks in advance for any hints!


man smb.conf:

   valid users (S)

   This is a list of users that should be allowed to login to
this service. Names starting with �...@´, ´+´ and ´´
   are interpreted using the same rules as described in the
invalid users parameter.

   If this is empty (the default) then any user can login. If
a username is in both this list and the invalid
   users list then access is denied for that user.

   The current servicename is substituted for %S. This is
useful in the [homes] section.

   Default: valid users =  # No valid users list (anyone can login)

   Example: valid users = greg, @pcusers


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


[Samba] Still can't mount Samba shares from other Samba server

2010-05-12 Thread Mike Leone
I am *still* unable to mount shares from a Ubuntu 10.04 server, using a 
Ubuntu 10.04 laptop. I totally re-formatted both my desktop and my 
laptop with Ubuntu 10.04 (so that they would be using the same version 
of Samba). I am using the exact same smb.conf for the 2 machines (less 
the share definitions, which exist only on the desktop, known as 
workhorse). wbinfo -u, wbinfo -g, wbinfo -t, wbinfo -a domainuser- 
these all work. getent passwd and getent group both work, and both 
return the exact same info, on both machines:


DACRIB+administrator:*:10002:1:Administrator:/home/DACRIB/Administrator:/bin/sh
DACRIB+krbtgt:*:10006:1:krbtgt:/home/DACRIB/krbtgt:/bin/sh
DACRIB+turgon:*:10003:1:Mike Leone:/home/DACRIB/turgon:/bin/bash
DACRIB+leonem:*:1:1:Leone, Mike:/home/DACRIB/LeoneM:/bin/bash
DACRIB+servicerunner:*:10005:1:ServiceRunner:/home/DACRIB/ServiceRunner:/bin/sh
DACRIB+ldap-proxy:*:10001:1:LDAP Proxy:/home/DACRIB/ldap-proxy:/bin/sh

It returns the uid that was entered on the Unix Attributes tab of my 
Win2003 w/SFU AD entry. So it looks like domain users are being mapped 
identically, on both machines.


Yet trying to mount a share from workhorse onto Dual-Booter fails:

(on Dual-Booter)
# smbmount //workhorse/OldHome /OldHome -o username=DACRIB+turgon
Password:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

So I did a  echo 1  /proc/fs/cifs/cifsFYI  and tried again, and then 
saw this, in syslog:


/build/buildd/linux-2.6.32/fs/cifs/cifsfs.c: Devname: 
//workhorse/OldHome flags: 64
/build/buildd/linux-2.6.32/fs/cifs/connect.c: CIFS VFS: in cifs_mount as 
Xid: 1 with uid: 0

/build/buildd/linux-2.6.32/fs/cifs/connect.c: Username: DACRIB+turgon
/build/buildd/linux-2.6.32/fs/cifs/connect.c: UNC: \\workhorse\OldHome 
ip: 10.0.0.20

/build/buildd/linux-2.6.32/fs/cifs/connect.c: Socket created
/build/buildd/linux-2.6.32/fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 
rcvtimeo 0x6d6

/build/buildd/linux-2.6.32/fs/cifs/connect.c: Existing smb sess not found
/build/buildd/linux-2.6.32/fs/cifs/cifssmb.c: secFlags 0x7
/build/buildd/linux-2.6.32/fs/cifs/transport.c: For smb_command 114
/build/buildd/linux-2.6.32/fs/cifs/transport.c: Sending smb:  total_len 82
/build/buildd/linux-2.6.32/fs/cifs/connect.c: Demultiplex PID: 1752
/build/buildd/linux-2.6.32/fs/cifs/connect.c: rfc1002 length 0x5f
/build/buildd/linux-2.6.32/fs/cifs/misc.c: Calculated size 81 vs length 
95 mismatch for mid 1

/build/buildd/linux-2.6.32/fs/cifs/cifssmb.c: Dialect: 2
/build/buildd/linux-2.6.32/fs/cifs/cifssmb.c: negprot rc 0
/build/buildd/linux-2.6.32/fs/cifs/connect.c: Security Mode: 0x3 
Capabilities: 0x80f3fc TimeAdjust: 14400

/build/buildd/linux-2.6.32/fs/cifs/sess.c: sess setup type 2
/build/buildd/linux-2.6.32/fs/cifs/transport.c: For smb_command 115
/build/buildd/linux-2.6.32/fs/cifs/transport.c: Sending smb:  total_len 260
/build/buildd/linux-2.6.32/fs/cifs/connect.c: rfc1002 length 0x5e
/build/buildd/linux-2.6.32/fs/cifs/misc.c: Null buffer passed to 
cifs_small_buf_release

/build/buildd/linux-2.6.32/fs/cifs/sess.c: ssetup rc from sendrecv2 is 0
/build/buildd/linux-2.6.32/fs/cifs/sess.c: Guest login
/build/buildd/linux-2.6.32/fs/cifs/sess.c: UID = 100
/build/buildd/linux-2.6.32/fs/cifs/sess.c: bleft 48
/build/buildd/linux-2.6.32/fs/cifs/sess.c: serverOS=Unix
/build/buildd/linux-2.6.32/fs/cifs/sess.c: serverNOS=Samba 3.4.7
/build/buildd/linux-2.6.32/fs/cifs/sess.c: serverDomain=DACRIB
/build/buildd/linux-2.6.32/fs/cifs/sess.c: ssetup freeing small buf d99201c0
/build/buildd/linux-2.6.32/fs/cifs/connect.c: CIFS Session Established 
successfully
/build/buildd/linux-2.6.32/fs/cifs/connect.c: file mode: 0x1ed  dir 
mode: 0x1ed

/build/buildd/linux-2.6.32/fs/cifs/transport.c: For smb_command 117
/build/buildd/linux-2.6.32/fs/cifs/transport.c: Sending smb:  total_len 94
/build/buildd/linux-2.6.32/fs/cifs/connect.c: rfc1002 length 0x27
/build/buildd/linux-2.6.32/fs/cifs/netmisc.c: Mapping smb error code 5 
to POSIX err -13

/build/buildd/linux-2.6.32/fs/cifs/connect.c: CIFS Tcon rc = -13
/build/buildd/linux-2.6.32/fs/cifs/connect.c: CIFS VFS: in cifs_put_tcon 
as Xid: 2 with uid: 0

/build/buildd/linux-2.6.32/fs/cifs/cifssmb.c: In tree disconnect
/build/buildd/linux-2.6.32/fs/cifs/transport.c: For smb_command 113
/build/buildd/linux-2.6.32/fs/cifs/transport.c: Sending smb:  total_len 39
/build/buildd/linux-2.6.32/fs/cifs/connect.c: rfc1002 length 0x27
/build/buildd/linux-2.6.32/fs/cifs/netmisc.c: Mapping smb error code 64 
to POSIX err -5

/build/buildd/linux-2.6.32/fs/cifs/cifssmb.c: Tree disconnect failed -5
/build/buildd/linux-2.6.32/fs/cifs/connect.c: CIFS VFS: in 
cifs_put_smb_ses as Xid: 3 with uid: 0
/build/buildd/linux-2.6.32/fs/cifs/cifssmb.c: In SMBLogoff for session 
disconnect

/build/buildd/linux-2.6.32/fs/cifs/transport.c: For smb_command 116
/build/buildd/linux-2.6.32/fs/cifs/transport.c: Sending smb:  total_len 43

Build status as of Wed May 12 06:00:03 2010

2010-05-12 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2010-05-11 
00:00:20.0 -0600
+++ /home/build/master/cache/broken_results.txt 2010-05-12 00:00:05.0 
-0600
@@ -1,4 +1,4 @@
-Build status as of Tue May 11 06:00:03 2010
+Build status as of Wed May 12 06:00:03 2010
 
 Build counts:
 Tree Total  Broken Panic 
@@ -12,11 +12,11 @@
 rsync30 12 0 
 samba-docs   0  0  0 
 samba-web0  0  0 
-samba_3_current 28 24 1 
+samba_3_current 28 25 2 
 samba_3_master 28 27 1 
-samba_3_next 28 25 2 
+samba_3_next 28 26 3 
 samba_4_0_test 30 30 0 
-samba_4_0_waf 30 29 2 
+samba_4_0_waf 30 27 4 
 talloc   30 5  0 
 tdb  28 9  0 
 


[SCM] Samba Shared Repository - branch master updated

2010-05-12 Thread Stefan Metzmacher
The branch, master has been updated
   via  825b595... s4:heimdal_build: remove heimdal/lib/hcrypto/evp-cc.c 
from autoconf build
  from  d5c3db6... work around AIX6.1 name space pollution rename mod_name 
to module_name

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


- Log -
commit 825b59506ba92cbe875a6392c279c31b934f288e
Author: Stefan Metzmacher me...@samba.org
Date:   Wed May 12 09:08:32 2010 +0200

s4:heimdal_build: remove heimdal/lib/hcrypto/evp-cc.c from autoconf build

metze

---

Summary of changes:
 source4/heimdal_build/internal.mk |1 -
 1 files changed, 0 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/heimdal_build/internal.mk 
b/source4/heimdal_build/internal.mk
index 8b834ab..2f8487e 100644
--- a/source4/heimdal_build/internal.mk
+++ b/source4/heimdal_build/internal.mk
@@ -431,7 +431,6 @@ HEIMDAL_HCRYPTO_OBJ_FILES = \
$(heimdalsrcdir)/lib/hcrypto/ui.o \
$(heimdalsrcdir)/lib/hcrypto/evp.o \
$(heimdalsrcdir)/lib/hcrypto/evp-hcrypto.o \
-   $(heimdalsrcdir)/lib/hcrypto/evp-cc.o \
$(heimdalsrcdir)/lib/hcrypto/pkcs5.o \
$(heimdalsrcdir)/lib/hcrypto/pkcs12.o \
$(heimdalsrcdir)/lib/hcrypto/rand.o \


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-05-12 Thread Stefan Metzmacher
The branch, master has been updated
   via  1f9bce1... s4:heimdal_build: undefine __APPLE__ as we don't need 
that magic
  from  825b595... s4:heimdal_build: remove heimdal/lib/hcrypto/evp-cc.c 
from autoconf build

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


- Log -
commit 1f9bce1c0d7081c14ee20750b7d3f6910c285d80
Author: Stefan Metzmacher me...@samba.org
Date:   Wed May 12 09:42:44 2010 +0200

s4:heimdal_build: undefine __APPLE__ as we don't need that magic

This hopefully fixes the build on Mac OS 10.

metze

---

Summary of changes:
 source4/heimdal_build/config.h |5 +
 1 files changed, 5 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/heimdal_build/config.h b/source4/heimdal_build/config.h
index 35981b8..2cf36d3 100644
--- a/source4/heimdal_build/config.h
+++ b/source4/heimdal_build/config.h
@@ -28,4 +28,9 @@
 #define LIBINTL
 #endif
 
+/* we do not want any __APPLE__ magic */
+#ifdef __APPLE__
+#undef __APPLE__
+#endif
+
 #endif


-- 
Samba Shared Repository


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

2010-05-12 Thread Karolin Seeger
The branch, v3-4-test has been updated
   via  2317602... work around AIX6.1 name space pollution rename mod_name 
to module_name
  from  df75d92... s3-spoolss: Fix _spoolss_EnumPrinters servername 
handling.

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


- Log -
commit 231760282dcb1232019f62025e1e5918a940bb5b
Author: Olaf Flebbe o.fle...@science-computing.de
Date:   Tue May 11 11:30:04 2010 +0200

work around AIX6.1 name space pollution rename mod_name to module_name

Fix bug #7421 (samba 3.4.7 does not compile on AIX 6.1).

---

Summary of changes:
 source3/libnet/libnet_samsync_ldif.c |   16 
 source4/lib/com/tables.c |6 +++---
 2 files changed, 11 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libnet/libnet_samsync_ldif.c 
b/source3/libnet/libnet_samsync_ldif.c
index dc3bc75..fb1ddc5 100644
--- a/source3/libnet/libnet_samsync_ldif.c
+++ b/source3/libnet/libnet_samsync_ldif.c
@@ -57,7 +57,7 @@ struct samsync_ldif_context {
const char *add_template;
const char *mod_template;
char *add_name;
-   char *mod_name;
+   char *module_name;
FILE *add_file;
FILE *mod_file;
FILE *ldif_file;
@@ -941,8 +941,8 @@ static NTSTATUS ldif_init_context(TALLOC_CTX *mem_ctx,
}
 
r-add_name = talloc_strdup(mem_ctx, add_template);
-   r-mod_name = talloc_strdup(mem_ctx, mod_template);
-   if (!r-add_name || !r-mod_name) {
+   r-module_name = talloc_strdup(mem_ctx, mod_template);
+   if (!r-add_name || !r-module_name) {
status = NT_STATUS_NO_MEMORY;
goto done;
}
@@ -953,8 +953,8 @@ static NTSTATUS ldif_init_context(TALLOC_CTX *mem_ctx,
status = NT_STATUS_UNSUCCESSFUL;
goto done;
}
-   if (!(r-mod_file = fdopen(smb_mkstemp(r-mod_name),w))) {
-   DEBUG(1, (Could not open %s\n, r-mod_name));
+   if (!(r-mod_file = fdopen(smb_mkstemp(r-module_name),w))) {
+   DEBUG(1, (Could not open %s\n, r-module_name));
status = NT_STATUS_UNSUCCESSFUL;
goto done;
}
@@ -1027,10 +1027,10 @@ static void ldif_free_context(struct 
samsync_ldif_context *r)
fclose(r-mod_file);
}
 
-   if ((r-mod_name != NULL) 
-   strcmp(r-mod_name, r-mod_template)  (unlink(r-mod_name))) {
+   if ((r-module_name != NULL) 
+   strcmp(r-module_name, r-mod_template)  
(unlink(r-module_name))) {
DEBUG(1,(unlink(%s) failed, error was (%s)\n,
-r-mod_name, strerror(errno)));
+r-module_name, strerror(errno)));
}
 
if (r-ldif_file  (r-ldif_file != stdout)) {
diff --git a/source4/lib/com/tables.c b/source4/lib/com/tables.c
index ed21da7..f56e1c3 100644
--- a/source4/lib/com/tables.c
+++ b/source4/lib/com/tables.c
@@ -51,16 +51,16 @@ static struct IUnknown *get_com_class_running(const struct 
GUID *clsid)
 
 static struct IUnknown *get_com_class_so(TALLOC_CTX *mem_ctx, const struct 
GUID *clsid)
 {
-   char *mod_name;
+   char *module_name;
char *clsid_str;
void *mod;
get_class_object_function f;
 
clsid_str = GUID_string(mem_ctx, clsid);
-   mod_name = talloc_asprintf(mem_ctx, %s.so, clsid_str);
+   module_name = talloc_asprintf(mem_ctx, %s.so, clsid_str);
talloc_free(clsid_str);
 
-   mod = dlopen(mod_name, 0);
+   mod = dlopen(module_name, 0);
 
if (!mod) {
return NULL;


-- 
Samba Shared Repository


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

2010-05-12 Thread Karolin Seeger
The branch, v3-5-test has been updated
   via  9649538... work around AIX6.1 name space pollution rename mod_name 
to module_name
  from  ae0ee66... lib/replace: make sure IPV6_V6ONLY is available for IPv6 
support

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


- Log -
commit 9649538f81aec325be47b704a5a056b5ae16be22
Author: Olaf Flebbe o.fle...@science-computing.de
Date:   Tue May 11 11:30:04 2010 +0200

work around AIX6.1 name space pollution rename mod_name to module_name

Fix bug #7421 (samba 3.4.7 does not compile on AIX 6.1).

---

Summary of changes:
 source3/libnet/libnet_samsync_ldif.c |   16 
 source4/lib/com/tables.c |6 +++---
 2 files changed, 11 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libnet/libnet_samsync_ldif.c 
b/source3/libnet/libnet_samsync_ldif.c
index 9311079..f18ba5b 100644
--- a/source3/libnet/libnet_samsync_ldif.c
+++ b/source3/libnet/libnet_samsync_ldif.c
@@ -57,7 +57,7 @@ struct samsync_ldif_context {
const char *add_template;
const char *mod_template;
char *add_name;
-   char *mod_name;
+   char *module_name;
FILE *add_file;
FILE *mod_file;
FILE *ldif_file;
@@ -941,8 +941,8 @@ static NTSTATUS ldif_init_context(TALLOC_CTX *mem_ctx,
}
 
r-add_name = talloc_strdup(mem_ctx, add_template);
-   r-mod_name = talloc_strdup(mem_ctx, mod_template);
-   if (!r-add_name || !r-mod_name) {
+   r-module_name = talloc_strdup(mem_ctx, mod_template);
+   if (!r-add_name || !r-module_name) {
status = NT_STATUS_NO_MEMORY;
goto done;
}
@@ -953,8 +953,8 @@ static NTSTATUS ldif_init_context(TALLOC_CTX *mem_ctx,
status = NT_STATUS_UNSUCCESSFUL;
goto done;
}
-   if (!(r-mod_file = fdopen(mkstemp(r-mod_name),w))) {
-   DEBUG(1, (Could not open %s\n, r-mod_name));
+   if (!(r-mod_file = fdopen(mkstemp(r-module_name),w))) {
+   DEBUG(1, (Could not open %s\n, r-module_name));
status = NT_STATUS_UNSUCCESSFUL;
goto done;
}
@@ -1027,10 +1027,10 @@ static void ldif_free_context(struct 
samsync_ldif_context *r)
fclose(r-mod_file);
}
 
-   if ((r-mod_name != NULL) 
-   strcmp(r-mod_name, r-mod_template)  (unlink(r-mod_name))) {
+   if ((r-module_name != NULL) 
+   strcmp(r-module_name, r-mod_template)  
(unlink(r-module_name))) {
DEBUG(1,(unlink(%s) failed, error was (%s)\n,
-r-mod_name, strerror(errno)));
+r-module_name, strerror(errno)));
}
 
if (r-ldif_file  (r-ldif_file != stdout)) {
diff --git a/source4/lib/com/tables.c b/source4/lib/com/tables.c
index ed21da7..f56e1c3 100644
--- a/source4/lib/com/tables.c
+++ b/source4/lib/com/tables.c
@@ -51,16 +51,16 @@ static struct IUnknown *get_com_class_running(const struct 
GUID *clsid)
 
 static struct IUnknown *get_com_class_so(TALLOC_CTX *mem_ctx, const struct 
GUID *clsid)
 {
-   char *mod_name;
+   char *module_name;
char *clsid_str;
void *mod;
get_class_object_function f;
 
clsid_str = GUID_string(mem_ctx, clsid);
-   mod_name = talloc_asprintf(mem_ctx, %s.so, clsid_str);
+   module_name = talloc_asprintf(mem_ctx, %s.so, clsid_str);
talloc_free(clsid_str);
 
-   mod = dlopen(mod_name, 0);
+   mod = dlopen(module_name, 0);
 
if (!mod) {
return NULL;


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-05-12 Thread Karolin Seeger
The branch, master has been updated
   via  da5c49d... s3-docs: Move -D option to the right paragraph in man 
winbindd.
  from  1f9bce1... s4:heimdal_build: undefine __APPLE__ as we don't need 
that magic

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


- Log -
commit da5c49d727150eea7d2a4b83da1a02ac1f26e77c
Author: Karolin Seeger ksee...@samba.org
Date:   Wed May 12 11:24:57 2010 +0200

s3-docs: Move -D option to the right paragraph in man winbindd.

Fix bug #7260 (Command line option documentation in wrong place in winbindd 
man
page.). Thanks to Ged Haywood sa...@jubileegroup.co.uk for reporting!

Karolin

---

Summary of changes:
 docs-xml/manpages-3/winbindd.8.xml |   20 ++--
 1 files changed, 10 insertions(+), 10 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages-3/winbindd.8.xml 
b/docs-xml/manpages-3/winbindd.8.xml
index 45f1627..c9fd4d8 100644
--- a/docs-xml/manpages-3/winbindd.8.xml
+++ b/docs-xml/manpages-3/winbindd.8.xml
@@ -80,16 +80,6 @@
 
variablelist
varlistentry
-   term-D/term
-   listitemparaIf specified, this parameter causes
-   the server to operate as a daemon. That is, it detaches
-   itself and runs in the background on the appropriate port. 
-   This switch is assumed if commandwinbindd/command is 
-   executed on the command line of a shell.
-   /para/listitem
-   /varlistentry
-
-   varlistentry
termhosts/term
listitemparaThis feature is only available on IRIX.
User information traditionally stored in
@@ -147,6 +137,16 @@ hosts: files wins
 
variablelist
varlistentry
+   term-D/term
+   listitemparaIf specified, this parameter causes
+   the server to operate as a daemon. That is, it detaches
+   itself and runs in the background on the appropriate port.
+   This switch is assumed if commandwinbindd/command is
+   executed on the command line of a shell.
+   /para/listitem
+   /varlistentry
+
+   varlistentry
term-F/term
listitemparaIf specified, this parameter causes
the main commandwinbindd/command process to not daemonize,


-- 
Samba Shared Repository


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

2010-05-12 Thread Karolin Seeger
The branch, v3-5-test has been updated
   via  b737434... s3-docs: Move -D option to the right paragraph in man 
winbindd.
  from  9649538... work around AIX6.1 name space pollution rename mod_name 
to module_name

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


- Log -
commit b737434fbf60c250166f10cf196af8030b388bdb
Author: Karolin Seeger ksee...@samba.org
Date:   Wed May 12 11:24:57 2010 +0200

s3-docs: Move -D option to the right paragraph in man winbindd.

Fix bug #7260 (Command line option documentation in wrong place in winbindd 
man
page.). Thanks to Ged Haywood sa...@jubileegroup.co.uk for reporting!

Karolin
(cherry picked from commit da5c49d727150eea7d2a4b83da1a02ac1f26e77c)

---

Summary of changes:
 docs-xml/manpages-3/winbindd.8.xml |   20 ++--
 1 files changed, 10 insertions(+), 10 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages-3/winbindd.8.xml 
b/docs-xml/manpages-3/winbindd.8.xml
index 91ac2c8..ba20c5e 100644
--- a/docs-xml/manpages-3/winbindd.8.xml
+++ b/docs-xml/manpages-3/winbindd.8.xml
@@ -80,16 +80,6 @@
 
variablelist
varlistentry
-   term-D/term
-   listitemparaIf specified, this parameter causes
-   the server to operate as a daemon. That is, it detaches
-   itself and runs in the background on the appropriate port. 
-   This switch is assumed if commandwinbindd/command is 
-   executed on the command line of a shell.
-   /para/listitem
-   /varlistentry
-
-   varlistentry
termhosts/term
listitemparaThis feature is only available on IRIX.
User information traditionally stored in
@@ -147,6 +137,16 @@ hosts: files wins
 
variablelist
varlistentry
+   term-D/term
+   listitemparaIf specified, this parameter causes
+   the server to operate as a daemon. That is, it detaches
+   itself and runs in the background on the appropriate port.
+   This switch is assumed if commandwinbindd/command is
+   executed on the command line of a shell.
+   /para/listitem
+   /varlistentry
+
+   varlistentry
term-F/term
listitemparaIf specified, this parameter causes
the main commandwinbindd/command process to not daemonize,


-- 
Samba Shared Repository


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

2010-05-12 Thread Karolin Seeger
The branch, v3-4-test has been updated
   via  1afa6b5... s3-docs: Move -D option to the right paragraph in man 
winbindd.
  from  2317602... work around AIX6.1 name space pollution rename mod_name 
to module_name

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


- Log -
commit 1afa6b56da01bef9d8fcca3f8278c42378c0a21d
Author: Karolin Seeger ksee...@samba.org
Date:   Wed May 12 11:24:57 2010 +0200

s3-docs: Move -D option to the right paragraph in man winbindd.

Fix bug #7260 (Command line option documentation in wrong place in winbindd 
man
page.). Thanks to Ged Haywood sa...@jubileegroup.co.uk for reporting!

Karolin
(cherry picked from commit da5c49d727150eea7d2a4b83da1a02ac1f26e77c)
(cherry picked from commit b737434fbf60c250166f10cf196af8030b388bdb)

---

Summary of changes:
 docs-xml/manpages-3/winbindd.8.xml |   20 ++--
 1 files changed, 10 insertions(+), 10 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages-3/winbindd.8.xml 
b/docs-xml/manpages-3/winbindd.8.xml
index b1e3465..0988ed4 100644
--- a/docs-xml/manpages-3/winbindd.8.xml
+++ b/docs-xml/manpages-3/winbindd.8.xml
@@ -80,16 +80,6 @@
 
variablelist
varlistentry
-   term-D/term
-   listitemparaIf specified, this parameter causes
-   the server to operate as a daemon. That is, it detaches
-   itself and runs in the background on the appropriate port. 
-   This switch is assumed if commandwinbindd/command is 
-   executed on the command line of a shell.
-   /para/listitem
-   /varlistentry
-
-   varlistentry
termhosts/term
listitemparaThis feature is only available on IRIX.
User information traditionally stored in
@@ -147,6 +137,16 @@ hosts: files wins
 
variablelist
varlistentry
+   term-D/term
+   listitemparaIf specified, this parameter causes
+   the server to operate as a daemon. That is, it detaches
+   itself and runs in the background on the appropriate port.
+   This switch is assumed if commandwinbindd/command is
+   executed on the command line of a shell.
+   /para/listitem
+   /varlistentry
+
+   varlistentry
term-F/term
listitemparaIf specified, this parameter causes
the main commandwinbindd/command process to not daemonize,


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-05-12 Thread Karolin Seeger
The branch, master has been updated
   via  ad6f638... s3-docs: Add documentation of the net g_lock subcommand.
  from  da5c49d... s3-docs: Move -D option to the right paragraph in man 
winbindd.

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


- Log -
commit ad6f63822915463011074c9e5f3ed938b48579f4
Author: Karolin Seeger ksee...@samba.org
Date:   Wed May 12 16:17:33 2010 +0200

s3-docs: Add documentation of the net g_lock subcommand.

Karolin

---

Summary of changes:
 docs-xml/manpages-3/net.8.xml |   40 
 1 files changed, 40 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages-3/net.8.xml b/docs-xml/manpages-3/net.8.xml
index 6542c4f..8a0713c 100644
--- a/docs-xml/manpages-3/net.8.xml
+++ b/docs-xml/manpages-3/net.8.xml
@@ -1790,6 +1790,46 @@ This example would connect to a computer named XP as the 
local administrator usi
 /refsect2
 
 refsect2
+titleG_LOCK/title
+
+paraManage global locks./para
+
+refsect3
+titleG_LOCK DO replaceablelockname/replaceable 
replaceabletimeout/replaceable replaceablecommand/replaceable/title
+
+para
+Execute a shell command under a global lock. This might be useful to define the
+order in which serveral shell commands will be executed. The locking 
information
+is stored in a file called filenameg_lock.tdb/filename. In setups with CTDB
+running, the locking information will be available on all cluster nodes.
+/para
+
+itemizedlist
+listitemparareplaceableLOCKNAME/replaceable defines the name of the 
global lock./para/listitem
+listitemparareplaceableTIMEOUT/replaceable defines the 
timeout./para/listitem
+listitemparareplaceableCOMMAND/replaceable defines the shell command 
to execute./para/listitem
+/itemizedlist
+/refsect3
+
+refsect3
+titleG_LOCK locks/title
+
+para
+Print a list of all currently existing locknames.
+/para
+/refsect3
+
+refsect3
+titleG_LOCK dump replaceablelockname/replaceable/title
+
+para
+Dump the locking table of a certain global lock.
+/para
+/refsect3
+
+/refsect2
+
+refsect2
 titleHELP [COMMAND]/title
 
 paraGives usage information for the specified command./para


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-05-12 Thread Karolin Seeger
The branch, master has been updated
   via  da64913... s3-docs: Unify capitalization.
  from  ad6f638... s3-docs: Add documentation of the net g_lock subcommand.

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


- Log -
commit da64913f55fa2c3d0b34cda3b8c4953894c4ed66
Author: Karolin Seeger ksee...@samba.org
Date:   Wed May 12 16:21:56 2010 +0200

s3-docs: Unify capitalization.

Karolin

---

Summary of changes:
 docs-xml/manpages-3/net.8.xml |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages-3/net.8.xml b/docs-xml/manpages-3/net.8.xml
index 8a0713c..4be0c4e 100644
--- a/docs-xml/manpages-3/net.8.xml
+++ b/docs-xml/manpages-3/net.8.xml
@@ -1812,7 +1812,7 @@ running, the locking information will be available on all 
cluster nodes.
 /refsect3
 
 refsect3
-titleG_LOCK locks/title
+titleG_LOCK LOCKS/title
 
 para
 Print a list of all currently existing locknames.
@@ -1820,7 +1820,7 @@ Print a list of all currently existing locknames.
 /refsect3
 
 refsect3
-titleG_LOCK dump replaceablelockname/replaceable/title
+titleG_LOCK DUMP replaceablelockname/replaceable/title
 
 para
 Dump the locking table of a certain global lock.


-- 
Samba Shared Repository


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

2010-05-12 Thread Karolin Seeger
The branch, v3-5-test has been updated
   via  f4d8716... s3-docs: Unify capitalization.
   via  4b55c32... s3-docs: Add documentation of the net g_lock subcommand.
  from  b737434... s3-docs: Move -D option to the right paragraph in man 
winbindd.

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


- Log -
commit f4d87160444eaa4f5a0239ad58159f13e03a851e
Author: Karolin Seeger ksee...@samba.org
Date:   Wed May 12 16:21:56 2010 +0200

s3-docs: Unify capitalization.

Karolin
(cherry picked from commit da64913f55fa2c3d0b34cda3b8c4953894c4ed66)

commit 4b55c32a614f47849f8e6e12eccdd06fbbea5e96
Author: Karolin Seeger ksee...@samba.org
Date:   Wed May 12 16:17:33 2010 +0200

s3-docs: Add documentation of the net g_lock subcommand.

Karolin
(cherry picked from commit ad6f63822915463011074c9e5f3ed938b48579f4)

---

Summary of changes:
 docs-xml/manpages-3/net.8.xml |   40 
 1 files changed, 40 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages-3/net.8.xml b/docs-xml/manpages-3/net.8.xml
index 76ef51f..51971c8 100644
--- a/docs-xml/manpages-3/net.8.xml
+++ b/docs-xml/manpages-3/net.8.xml
@@ -1790,6 +1790,46 @@ This example would connect to a computer named XP as the 
local administrator usi
 /refsect2
 
 refsect2
+titleG_LOCK/title
+
+paraManage global locks./para
+
+refsect3
+titleG_LOCK DO replaceablelockname/replaceable 
replaceabletimeout/replaceable replaceablecommand/replaceable/title
+
+para
+Execute a shell command under a global lock. This might be useful to define the
+order in which serveral shell commands will be executed. The locking 
information
+is stored in a file called filenameg_lock.tdb/filename. In setups with CTDB
+running, the locking information will be available on all cluster nodes.
+/para
+
+itemizedlist
+listitemparareplaceableLOCKNAME/replaceable defines the name of the 
global lock./para/listitem
+listitemparareplaceableTIMEOUT/replaceable defines the 
timeout./para/listitem
+listitemparareplaceableCOMMAND/replaceable defines the shell command 
to execute./para/listitem
+/itemizedlist
+/refsect3
+
+refsect3
+titleG_LOCK LOCKS/title
+
+para
+Print a list of all currently existing locknames.
+/para
+/refsect3
+
+refsect3
+titleG_LOCK DUMP replaceablelockname/replaceable/title
+
+para
+Dump the locking table of a certain global lock.
+/para
+/refsect3
+
+/refsect2
+
+refsect2
 titleHELP [COMMAND]/title
 
 paraGives usage information for the specified command./para


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2010-05-12 Thread Stefan Metzmacher
The branch, master has been updated
   via  9cddf89... Choose between local tevent_status.h header file and 
installed one
   via  693995c... Install util/tevent_* public headers. Required by 
OpenChange for compiling IDL
   via  e8139ac... s4:librpc: remove explicit 
../librpc/gen_ndr/ndr_drsblobs.o from python_drsblobs
  from  da64913... s3-docs: Unify capitalization.

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


- Log -
commit 9cddf891ad2a09ed1de83f3b51b4f2fc3e6855e8
Author: Julien Kerihuel j.kerih...@openchange.org
Date:   Wed May 12 12:55:56 2010 +0200

Choose between local tevent_status.h header file and installed one

Signed-off-by: Stefan Metzmacher me...@samba.org

commit 693995c1c4d36e03537d66db9fa3823baf3e6002
Author: Julien Kerihuel j.kerih...@openchange.org
Date:   Wed May 12 12:34:54 2010 +0200

Install util/tevent_* public headers. Required by OpenChange for compiling 
IDL

Signed-off-by: Stefan Metzmacher me...@samba.org

commit e8139ac14ab3041109cc593a4fa32ea39a330901
Author: Stefan Metzmacher me...@samba.org
Date:   Wed May 12 19:18:36 2010 +0200

s4:librpc: remove explicit ../librpc/gen_ndr/ndr_drsblobs.o from 
python_drsblobs

It already comes via RPC_NDR_DRSBLOBS.

metze

---

Summary of changes:
 lib/util/config.mk   |2 ++
 lib/util/wscript_build   |2 +-
 pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm |2 +-
 source4/headermap.txt|3 +++
 source4/librpc/config.mk |2 +-
 5 files changed, 8 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/util/config.mk b/lib/util/config.mk
index 7df5227..0a5d62f 100644
--- a/lib/util/config.mk
+++ b/lib/util/config.mk
@@ -49,6 +49,8 @@ PUBLIC_HEADERS += $(addprefix $(libutilsrcdir)/, util.h \
 time.h \
 util_ldb.h \
 talloc_stack.h \
+tevent_ntstatus.h \
+tevent_unix.h  \
 xfile.h)
 
 [SUBSYSTEM::ASN1_UTIL]
diff --git a/lib/util/wscript_build b/lib/util/wscript_build
index debc701..a606058 100644
--- a/lib/util/wscript_build
+++ b/lib/util/wscript_build
@@ -3,7 +3,7 @@
 bld.SAMBA_LIBRARY('LIBSAMBA-UTIL',
source='xfile.c debug.c fault.c signal.c system.c time.c genrand.c 
dprintf.c util_str.c rfc1738.c substitute.c util_strlist.c util_file.c 
data_blob.c util.c blocking.c util_net.c fsusage.c ms_fnmatch.c mutex.c 
idtree.c become_daemon.c rbtree.c talloc_stack.c smb_threads.c params.c 
parmlist.c util_id.c',
public_deps='talloc LIBCRYPTO CHARSET execinfo UID_WRAPPER tevent',
-   public_headers='attr.h byteorder.h data_blob.h debug.h memory.h mutex.h 
safe_string.h time.h talloc_stack.h xfile.h dlinklist.h util.h',
+   public_headers='attr.h byteorder.h data_blob.h debug.h memory.h mutex.h 
safe_string.h time.h talloc_stack.h xfile.h dlinklist.h util.h 
tevent_ntstatus.h tevent_unix.h',
 header_path= [ ('dlinklist.h util.h', '.'), ('*', 'util') ],
 local_include=False,
vnum='0.0.1'
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm 
b/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
index 189eb9e..81f8477 100644
--- a/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
@@ -377,7 +377,7 @@ sub Parse()
$res .= #include core/ntstatus.h\n;
}
$res .= #include tevent.h\n;
-   $res .= #include \lib/util/tevent_ntstatus.h\\n;
+   $res .= choose_header(lib/util/tevent_ntstatus.h, 
util/tevent_ntstatus.h).\n;
$res .= #include \$ndr_header\\n;
$res .= #include \$client_header\\n;
$res .= \n;
diff --git a/source4/headermap.txt b/source4/headermap.txt
index fb6be56..a998ff9 100644
--- a/source4/headermap.txt
+++ b/source4/headermap.txt
@@ -40,6 +40,8 @@ lib/cmdline/popt_common.h: samba/popt.h
 ../lib/util/dlinklist.h: dlinklist.h
 ../lib/util/data_blob.h: util/data_blob.h
 ../lib/util/time.h: util/time.h
+../lib/util/tevent_ntstatus.h: util/tevent_ntstatus.h
+../lib/util/tevent_unix.h: util/tevent_unix.h
 version.h: samba/version.h
 param/param.h: param.h
 ../lib/util/asn1.h: samba/asn1.h
@@ -54,6 +56,7 @@ param/share.h: share.h
 ../libcli/ldap/ldap_message.h: ldap_message.h
 ../libcli/ldap/ldap_errors.h: ldap_errors.h
 ../libcli/ldap/ldap_ndr.h: ldap_ndr.h
+../tevent/tevent.h: tevent.h
 ../lib/tevent/tevent.h: tevent.h
 ../lib/tevent/tevent_internal.h: tevent_internal.h
 auth/session.h: samba/session.h
diff --git a/source4/librpc/config.mk b/source4/librpc/config.mk
index aa065a0..5985e92 100644
--- a/source4/librpc/config.mk
+++ b/source4/librpc/config.mk
@@ -726,7 +726,7 @@ python_drsuapi_OBJ_FILES = 

[SCM] Samba Shared Repository - branch master updated

2010-05-12 Thread Jeremy Allison
The branch, master has been updated
   via  1101c62... Pass more SMB2 oplock tests. Only oplock stream tests 
left to fix.
  from  9cddf89... Choose between local tevent_status.h header file and 
installed one

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


- Log -
commit 1101c6214415675fbd32377d539276ca19c4407f
Author: Jeremy Allison j...@samba.org
Date:   Wed May 12 15:19:45 2010 -0700

Pass more SMB2 oplock tests. Only oplock stream tests left to fix.

Jeremy.

---

Summary of changes:
 source3/smbd/oplock.c |5 -
 source3/smbd/smb2_break.c |6 ++
 2 files changed, 10 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index d00bcba..1ff1737 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -320,7 +320,10 @@ static void oplock_timeout_handler(struct event_context 
*ctx,
TALLOC_FREE(fsp-oplock_timeout);
DEBUG(0, (Oplock break failed for file %s -- replying anyway\n,
  fsp_str_dbg(fsp)));
-   global_client_failed_oplock_break = True;
+   /* Only set this for SMB1.. */
+   if (!smbd_server_conn-allow_smb2) {
+   global_client_failed_oplock_break = True;
+   }
remove_oplock(fsp);
reply_to_oplock_break_requests(fsp);
 }
diff --git a/source3/smbd/smb2_break.c b/source3/smbd/smb2_break.c
index bd0fc56..a214da0 100644
--- a/source3/smbd/smb2_break.c
+++ b/source3/smbd/smb2_break.c
@@ -204,6 +204,12 @@ static struct tevent_req 
*smbd_smb2_oplock_break_send(TALLOC_CTX *mem_ctx,
fsp_str_dbg(fsp),
fsp-fnum ));
 
+   /* Are we awaiting a break message ? */
+   if (fsp-oplock_timeout == NULL) {
+   tevent_req_nterror(req, NT_STATUS_INVALID_OPLOCK_PROTOCOL);
+   return tevent_req_post(req, ev);
+   }
+
if ((fsp-sent_oplock_break == BREAK_TO_NONE_SENT) ||
(break_to_none)) {
result = remove_oplock(fsp);


-- 
Samba Shared Repository


[SCM] CTDB repository - branch libctdb updated - ctdb-1.0.114-94-gfade378

2010-05-12 Thread Ronnie Sahlberg
The branch, libctdb has been updated
   via  fade378b6af02c3c8ca33cd7851657ac3f865cf5 (commit)
  from  7e9d5cf24672d50d95094cd5c52a901d38c65527 (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=libctdb


- Log -
commit fade378b6af02c3c8ca33cd7851657ac3f865cf5
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Thu May 13 09:46:38 2010 +1000

temporary kludge

add a temporary kludge to the ctdb_service() function to handle the timed 
events with zero timeout that are used in the loibctdb code.

---

Summary of changes:
 libctdb/libctdb.c |7 ++-
 libctdb/tst.c |2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/libctdb/libctdb.c b/libctdb/libctdb.c
index 638874c..47cc7c2 100644
--- a/libctdb/libctdb.c
+++ b/libctdb/libctdb.c
@@ -22,9 +22,11 @@
 #include poll.h
 #include includes.h
 #include lib/events/events.h
+#include lib/events/events_internal.h
 #include include/ctdb.h
 #include include/ctdb_protocol.h
 #include include/ctdb_private.h
+#include sys/time.h
 
 struct ctdb_context *ctdb_connect(const char *addr)
 {
@@ -120,9 +122,12 @@ struct ctdb_context *ctdb_init(struct event_context *ev)
 int ctdb_service(struct ctdb_context *ctdb)
 {
int ret;
+   struct timeval t;
 
ret = event_loop_once(ctdb-ev);
-   ret = event_loop_once(ctdb-ev);
+   do {
+   t = common_event_loop_timer_delay(ctdb-ev);
+   } while(timeval_is_zero(t));
 
return 0;
 }
diff --git a/libctdb/tst.c b/libctdb/tst.c
index 8f315ca..002d77b 100644
--- a/libctdb/tst.c
+++ b/libctdb/tst.c
@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
printf(Failed to register message port\n);
exit(10);
}
-   ret = ctdb_set_message_handler_recv(ctdb_context, ctdb_handle);
+   ret = ctdb_set_message_handler_recv(ctdb_context, handle);
if (ret != 0) {
printf(Failed to receive set_message_handler reply\n);
exit(10);


-- 
CTDB repository


[SCM] Samba Shared Repository - branch master updated

2010-05-12 Thread Andrew Bartlett
The branch, master has been updated
   via  72e65a0... s3:winbindd Provide a winbindd_register_handlers() 
helper function for s3compat
   via  f5c0f90... s3:winbindd Split helper functions to allow s3compat to 
call them
   via  7f70b53... s3:Winbindd Move winbindd_event_context to a different 
file
   via  cdf0704... s3:winbindd Rename 'children' to 'winbindd_children' and 
make static
   via  4ef847a... s3:libsmb/namecache Remove namecache_enable()
   via  426d92e... s3:smbd Remove calls to namecache_enable()
   via  82fb4eb... s3:winbindd Remove call to namecache_enable().
   via  468fb4f... s3:auth Make get_ntlm_challenge more like Samba4
  from  1101c62... Pass more SMB2 oplock tests. Only oplock stream tests 
left to fix.

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


- Log -
commit 72e65a05213e857b4aaef9951df318c10e9774ae
Author: Andrew Bartlett abart...@samba.org
Date:   Tue May 11 21:37:30 2010 +1000

s3:winbindd Provide a winbindd_register_handlers() helper function for 
s3compat

This function provides a useful entry point for s3compat to set things
up in winbindd.

Andrew Bartlett

commit f5c0f90da5f5372ca6b7a72daa8d073a2444a068
Author: Andrew Bartlett abart...@samba.org
Date:   Tue May 11 21:31:18 2010 +1000

s3:winbindd Split helper functions to allow s3compat to call them

This provides a more useful entry point for s3compat.

Andrew Bartlett

commit 7f70b53dd65941ad7c2153947e3c6ea13b28b281
Author: Andrew Bartlett abart...@samba.org
Date:   Tue May 11 20:24:42 2010 +1000

s3:Winbindd Move winbindd_event_context to a different file

This allows this function to be easily replaced in s3compat

Andrew Bartlett

commit cdf07042728efc2d2bfeb56d1a8cdecc516a2411
Author: Andrew Bartlett abart...@samba.org
Date:   Tue May 11 20:22:06 2010 +1000

s3:winbindd Rename 'children' to 'winbindd_children' and make static

commit 4ef847a3b7031147711751f96e002f120bb05f04
Author: Andrew Bartlett abart...@samba.org
Date:   Tue May 11 10:04:30 2010 +1000

s3:libsmb/namecache Remove namecache_enable()

No caller honours the return value, and this call only prints a
DEBUG().  Removing this reduces the number of initialisation
boilerplate calls s3compat has to make.

Andrew Bartlett

commit 426d92eedbe002624ab8553d23ec9ea1465acefa
Author: Andrew Bartlett abart...@samba.org
Date:   Tue May 11 10:02:52 2010 +1000

s3:smbd Remove calls to namecache_enable()

This only prints a DEBUG()

Andrew Bartlett

commit 82fb4ebca761521bddf3a8a76b41b061569995e4
Author: Andrew Bartlett abart...@samba.org
Date:   Tue May 11 09:59:48 2010 +1000

s3:winbindd Remove call to namecache_enable().

This call only prints a DEBUG()

Andrew Bartlett

commit 468fb4fee49aa0cd1919fcd3803d2490e2ac568d
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Dec 14 19:43:59 2009 +1100

s3:auth Make get_ntlm_challenge more like Samba4

This helps with the upcoming NTLMSSP merge, and allows errors to be 
returned.

Andrew Bartlett

---

Summary of changes:
 source3/Makefile.in|1 +
 source3/auth/auth.c|5 +-
 source3/include/auth.h |4 +-
 source3/libsmb/namecache.c |   28 --
 source3/smbd/server.c  |2 -
 source3/winbindd/winbindd.c|  261 ++--
 source3/winbindd/winbindd_dual.c   |   18 +-
 .../{smbd/noquotas.c = winbindd/winbindd_event.c} |   32 ++--
 source3/winbindd/winbindd_proto.h  |7 +-
 9 files changed, 166 insertions(+), 192 deletions(-)
 copy source3/{smbd/noquotas.c = winbindd/winbindd_event.c} (57%)


Changeset truncated at 500 lines:

diff --git a/source3/Makefile.in b/source3/Makefile.in
index 5e63602..06e288c 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -1155,6 +1155,7 @@ IDMAP_ADEX_OBJ = \
 
 WINBINDD_OBJ1 = \
winbindd/winbindd.o   \
+   winbindd/winbindd_event.o \
winbindd/winbindd_group.o \
winbindd/winbindd_util.o  \
winbindd/winbindd_cache.o \
diff --git a/source3/auth/auth.c b/source3/auth/auth.c
index 317fe30..b4995ce 100644
--- a/source3/auth/auth.c
+++ b/source3/auth/auth.c
@@ -76,7 +76,7 @@ static struct auth_init_function_entry 
*auth_find_backend_entry(const char *name
  Returns a const char of length 8 bytes.
 /
 
-static void get_ntlm_challenge(struct auth_context *auth_context,
+static NTSTATUS get_ntlm_challenge(struct auth_context *auth_context,
   uint8_t 

[SCM] CTDB repository - branch libctdb updated - ctdb-1.0.114-97-gf5ca198

2010-05-12 Thread Ronnie Sahlberg
The branch, libctdb has been updated
   via  f5ca198445ec9b6c6e989c52057a46c144e3a033 (commit)
   via  1f00d8191dcf0f9d506adcbdbbc8ad0b35b0b9fc (commit)
   via  3d99dc78978830eafd9b2c7f58b19d524f0df2be (commit)
  from  fade378b6af02c3c8ca33cd7851657ac3f865cf5 (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=libctdb


- Log -
commit f5ca198445ec9b6c6e989c52057a46c144e3a033
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Thu May 13 12:16:00 2010 +1000

change the old ctdb_ctrl_getpnn() function with tiemout use the new
libctdb functions instead of calling ctdb_control() directly.

commit 1f00d8191dcf0f9d506adcbdbbc8ad0b35b0b9fc
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Thu May 13 12:00:22 2010 +1000

Change the ctdb_getpnn*() functions to take a destination node parameter so 
we can send it to any node (as a ping are you there?)

move the special addresses like CTDB_CURRENT_NODE from ctdb_protocol.h to 
ctdb.h

commit 3d99dc78978830eafd9b2c7f58b19d524f0df2be
Author: Ronnie Sahlberg ronniesahlb...@gmail.com
Date:   Thu May 13 10:14:27 2010 +1000

Add a control to read the PNN number of the local node to libctdb

---

Summary of changes:
 client/ctdb_client.c|   19 ++--
 include/ctdb.h  |   79 
 include/ctdb_protocol.h |8 
 libctdb/libctdb.c   |  103 +++
 libctdb/tst.c   |   21 +++--
 5 files changed, 196 insertions(+), 34 deletions(-)


Changeset truncated at 500 lines:

diff --git a/client/ctdb_client.c b/client/ctdb_client.c
index 7b49931..a3349e0 100644
--- a/client/ctdb_client.c
+++ b/client/ctdb_client.c
@@ -1393,17 +1393,26 @@ int ctdb_ctrl_thaw(struct ctdb_context *ctdb, struct 
timeval timeout, uint32_t d
 int ctdb_ctrl_getpnn(struct ctdb_context *ctdb, struct timeval timeout, 
uint32_t destnode)
 {
int ret;
-   int32_t res;
+   uint32_t pnn;
+   ctdb_handle *handle;
 
-   ret = ctdb_control(ctdb, destnode, 0, 
-  CTDB_CONTROL_GET_PNN, 0, tdb_null, 
-  NULL, NULL, res, timeout, NULL);
+   handle = ctdb_getpnn_send(ctdb, destnode, NULL, NULL);
+   if (handle == NULL) {
+   DEBUG(DEBUG_ERR, (__location__  Failed to send getpnn 
control\n));
+   return -1;
+   }
+
+   if (!timeval_is_zero(timeout)) {
+   event_add_timed(ctdb-ev, handle, timeout, 
ctdb_control_timeout_func, handle);
+   }
+
+   ret = ctdb_getpnn_recv(ctdb, handle, pnn);
if (ret != 0) {
DEBUG(DEBUG_ERR,(__location__  ctdb_control for getpnn 
failed\n));
return -1;
}
 
-   return res;
+   return pnn;
 }
 
 /*
diff --git a/include/ctdb.h b/include/ctdb.h
index 12bdb89..b074876 100644
--- a/include/ctdb.h
+++ b/include/ctdb.h
@@ -20,6 +20,19 @@
 #ifndef _CTDB_H
 #define _CTDB_H
 
+/* Functions are not thread safe so all function calls must be wrapped
+ * inside a pthread_mutex for threaded applications.
+ *
+ * All _send() functions are guaranteed to be non-blocking and fully
+ * asynchronous.
+ *
+ * Avoid using the synchronous calls
+ */
+
+/*
+ * Connect to ctdb using the specified domain socket.
+ * Returns a ctdb context if successful or NULL.
+ */
 struct ctdb_context *ctdb_connect(const char *addr);
 
 int ctdb_get_fd(struct ctdb_context *ctdb);
@@ -29,22 +42,35 @@ int ctdb_which_events(struct ctdb_context *ctdb);
 int ctdb_service(struct ctdb_context *ctdb);
 
 
+/*
+ * Special node addresses :
+ */
+/* used on the domain socket, send a pdu to the local daemon */
+#define CTDB_CURRENT_NODE 0xF001
+/* send a broadcast to all nodes in the cluster, active or not */
+#define CTDB_BROADCAST_ALL0xF002
+/* send a broadcast to all nodes in the current vnn map */
+#define CTDB_BROADCAST_VNNMAP 0xF003
+/* send a broadcast to all connected nodes */
+#define CTDB_BROADCAST_CONNECTED 0xF004
+
 
-typedef void ctdb_handle;
 
 
-/*
- * function to cancel a request/call
- */
-int ctdb_cancel(ctdb_handle *);
 
+typedef void ctdb_handle;
 
 
 /*
- * messaging functions 
+ * messaging functions
+ * these functions provide a messaging layer for applications to communicate
+ * with eachother across
  */
 typedef void (*ctdb_message_fn_t)(struct ctdb_context *, uint64_t srvid, 
TDB_DATA data, void *);
 
+/*
+ * register a message handler and start listening on a service port
+ */
 typedef void (*ctdb_set_message_handler_cb)(int32_t status, void 
*private_data);
 
 ctdb_handle *
@@ -59,6 +85,10 @@ int ctdb_set_message_handler(struct ctdb_context *ctdb, 
uint64_t srvid,
 ctdb_message_fn_t handler, void *private_data);
 
 
+
+/*
+ * unregister a message handler and stop listening on teh