WG: [Samba] Strange!!! Clients only log on to samba bdc

2008-09-18 Thread Daniel Müller
Is there nothing to solve the problem ?

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im
Auftrag von Daniel Müller
Gesendet: Mittwoch, 17. September 2008 08:20
An: samba@lists.samba.org
Betreff: [Samba] Strange!!! Clients only log on to samba bdc

Hello to all,
 
My samba  servers are doing strange things . I’ve set up a smba-ldap as
PDC and another as BDC. Everything was ok until last week. Suddenly all
clients log on to my BDC not longer
to the PDC. Testparm  didn’ t show any changes the PDC results Server
role=ROLE_DOMAIN_PDC and the BDC Server role=ROLE_DOMAIN_BDC.
I put the os level of the PDC to 240 and the BDC’s to 86 nothing
changed. I also changed the Preferred master to no.
How can I force the xp and vista clients only to log on to the PDC?
 
Greetings
 
Daniel Müller
Tropenklinik Paul-Lechler-Krankenhaus
[EMAIL PROTECTED]


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

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


Re: [Samba] red hat 5 EL

2008-09-18 Thread vishesh

Marc Fromm wrote:

I installed red hat 5EL. I created samba users in command line using
pdbedit -a username and then supplied a password at the prompt.

On our fedora core 5 server the users were listed in a file called smbpasswd, 
much like /etc/shadow

Where in red hat 5EL is the smbpasswd file? Does creating a samba user still 
require first creating a red hat user by the same name?

Thanks

Marc

  

Dear mark

users information is determined by parameter passdb backend in 
smb.conf. By default value for this parameter is tdbsam in EL5 (passdb 
backend=tdbsam). To get location of file that hold user information , 
use following command

smbd -b|grep PRIVATE_DIR
look into that directory, all information get stored into tdb database.

also remember that pdbedit -a just add windows specific attribute to 
existing linux user.

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


[Samba] Update from 3.0.29 to 3.2.3 -- smbd panic

2008-09-18 Thread Ralf Aumüller

Hello,

when I try to update from Samba version 3.0.29 to 3.2.3 smbd crashes
(Samba is configured as a PDC and works without problems under 3.0.29).

In the smbd log-file I found the following:

[2008/09/18 08:09:36,  0, pid=15063]   
tdb(/opt/samba-3.2.3/var/locks/registry.tdb): tdb_transaction_setup_recovery: 
failed to write recovery data
[2008/09/18 08:09:36,  0, pid=15063]   
tdb(/opt/samba-3.2.3/var/locks/registry.tdb): tdb_transaction_commit: failed to 
setup recovery data
[2008/09/18 08:09:36,  1, pid=15063]   
tdb(/opt/samba-3.2.3/var/locks/registry.tdb): tdb_transaction_cancel: no 
transaction
[2008/09/18 08:09:36,  0, pid=15063]   PANIC (pid 15063): Cancelling 
transaction failed
[2008/09/18 08:09:36,  0, pid=15063]   BACKTRACE: 10 stack frames:
 #0 /opt/samba/sbin/smbd(log_stack_trace+0x26) [0x893025]
 #1 /opt/samba/sbin/smbd(smb_panic+0x7b) [0x892ea2]
 #2 /opt/samba/sbin/smbd(dbwrap_trans_store+0x259) [0x89c1d8]
 #3 /opt/samba/sbin/smbd(dbwrap_trans_store_int32+0x5b) [0x89c4ad]
 #4 /opt/samba/sbin/smbd(regdb_init+0x2b4) [0xa72c72]
 #5 /opt/samba/sbin/smbd(registry_init_common+0x21) [0xa74807]
 #6 /opt/samba/sbin/smbd(registry_init_full+0x1e) [0xa780b8]
 #7 /opt/samba/sbin/smbd(main+0x8a4) [0xaa167b]
 #8 /lib/tls/libc.so.6(__libc_start_main+0xd3) [0x3cede3]
 #9 /opt/samba/sbin/smbd [0x6a60e9]
[2008/09/18 08:09:36,  0, pid=15063]   dumping core in 
/opt/samba-3.2.3/var/cores/smbd

Any ideas how to resolve this? Can I just delete the old registry.tdb
file?

Thanks,
Ralf
---
Ralf AumuellerTel:   0711/7816-249
IPVS, Univ. Stuttgart Fax:   0711/7816-248
Universitaetsstrasse 38   Email: [EMAIL PROTECTED]
D-70569 Stuttgart
---
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] primary group

2008-09-18 Thread mallapadi niranjan
Hi vishesh

As you have mentioned that You have configured Winbind to get user
information from AD on the Linux system. And on the AD, any user created  is
by default a member of Domain Users and also member of any other groups if
you have added the user to other groups.

So when you create a file on Linux systems, the default gid would be that of
Domain Users.

Now if you want the default GID or group Domain Users to be some thing
else for that user, then you will have to tweak this on your Windows AD. I
don't think you can do anything through winbind.

Winbind just gets the user information and maps the SID to the appropriate
UID and GID from the (IDMAP UID and GID)  pool as mentioned in smb.conf.


Regards
Niranjan



On Thu, Sep 18, 2008 at 3:13 PM, vishesh [EMAIL PROTECTED] wrote:

 dear all

  I am using winbind to get ADz user on samba. The problem i facing is
 related with group.
 To clear the problem i am taking an example
 There is a AD user that belong to Domain users and Marketting Group,
 the new file/folder created by that user has group ownership Domain users
 but i want that Marketting should be group owner. Is it possible without
 setting SGID bit?
 is there any short of primary group feature in AD.
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba

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


Re: WG: [Samba] Strange!!! Clients only log on to samba bdc

2008-09-18 Thread Michael Heydon

Daniel Müller wrote:

Suddenly all clients log on to my BDC not longer to the PDC.
  
What happens if the BDC is unavailable (You could simulate this by 
setting up iptables rules to drop all traffic from a given workstation)? 
The way I understand it, workstations will use what ever DC is closest 
to them. If the PDC is taking longer to respond or something then they 
may consider the BDC to be the best choice.


*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

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


WG: WG: [Samba] Strange!!! Clients only log on to samba bdc

2008-09-18 Thread Daniel Müller
When I stop the BDC all clients log on to the PDC. And to my confusion
when I restarted the BDC today and made a testparm on both PDC and BDC
both showd role domain pdc -- Server role: ROLE_DOMAIN_PDC

Here my smb.confs:

PDC:
 [global]
   security=user
smb ports = 139
logon script = logon.bat
logon path = \\%L\%U\profile\%U
logon drive = S:
domain logons = Yes
os level = 254
preferred master = Yes
domain master = Yes
wins server = 192.168.135.150 #this is a smbd4wins server
running on  the same
machine
BDC:

[global]
security=user
smb ports = 139
logon script = logon.bat
logon path = \\%L\%U\profile\%U
logon drive = S:
domain logons = Yes
os level = 65
preferred master = Yes
domain master = No
wins server = 192.168.135.150 


-Ursprüngliche Nachricht-
Von: Michael Heydon [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 18. September 2008 09:46
An: [EMAIL PROTECTED]
Cc: samba@lists.samba.org
Betreff: Re: WG: [Samba] Strange!!! Clients only log on to samba bdc

Daniel Müller wrote:
 Suddenly all clients log on to my BDC not longer to the PDC.
   
What happens if the BDC is unavailable (You could simulate this by 
setting up iptables rules to drop all traffic from a given workstation)?

The way I understand it, workstations will use what ever DC is closest

to them. If the PDC is taking longer to respond or something then they 
may consider the BDC to be the best choice.

*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


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


[Samba] domain user?

2008-09-18 Thread Xu, Qiang (FXSGSC)
Hi, all:

In doing image transfer over SMB protocol, our printer (which is using samba 
3.0.25a) exhibits some strange behavior:

When an image is scanned and transferred to the filing server, the user 
sun-rm\z27jxk cannot log in. In contrast, if the user is set to \z27jxk, 
then login is successful.

My question is, when the server receives the login request with the username in 
the form \username, what domain it will look up the user in?

Looking forward to any suggestions,
Xu Qiang
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] print job counter never decreases

2008-09-18 Thread Martin Schmid

Hello

I've a samba printing problem: while all cups handled printers work 
perfectly, a fax printer application recently stopped working because of 
the default 'max print jobs' of 1000. In reality, the spool directory is 
empty.


My question is: where ist this 'max print jobs' stored and how should it 
decrease or be decreased automatically or manually?
Is there a way for the 'print command' to tell samba to decrease the job 
counter after such job is processed?


I have set up a work-around by setting 'max print jobs = 0' but I really 
want to fix the problem permanently.


My samba is a 3.0.24

--
Martin Schmid
APS systems AG, Neumatt 4, CH-4626 Niederbuchsiten 
Tel direkt: +41 62 389 8891, Fax: +41 62 389 8880, Tel: +41 62 389 

www.aps-systems.ch

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


RE: [Samba] Samba write performance in kernel

2008-09-18 Thread Lin Mac

hi,
 On Mon, Sep 15, 2008 at 02:44:32PM +0800, Lin Mac wrote:
 This is a kernel implementation detail. Remember Samba
 runs on many other kernels, not just Linux. Linux has
 splice, *BSD has receivefile, Solaris probably has
 something different.
Samba using splice on Linux doesn't work, that is for sure. 
Is there any OS that such mechanism (splice, receivefile,...,etc) would work on?

Thanks anyway...
Best Regards,
Mac Lin

_
聰明搜尋和瀏覽網路的免費工具列 — MSN 搜尋工具列 
http://toolbar.live.com/
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba write performance in kernel

2008-09-18 Thread Volker Lendecke
On Thu, Sep 18, 2008 at 09:45:43PM +0800, Lin Mac wrote:
  On Mon, Sep 15, 2008 at 02:44:32PM +0800, Lin Mac wrote:
  This is a kernel implementation detail. Remember Samba
  runs on many other kernels, not just Linux. Linux has
  splice, *BSD has receivefile, Solaris probably has
  something different.

 Samba using splice on Linux doesn't work, that is for sure. 

And there's no way that this can be fixed?

Volker


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

[Samba] Rid generation

2008-09-18 Thread Nuno Fernandes
Hi,

If i have smbpasswd with:

user1:1416:803A317873C24BBDAAD3B435B51404EE:2DF2CB1538FE718DE034707A521AA893:
[U  ]:LCT-1221415636:

and i do:

pdbedit -i smbpasswd:file


And 

SID for domain SERVER is: S-1-5-21-1454471165-2146950999-672003340

How does samba generate the rid part of that users sid?


[EMAIL PROTECTED] samba]# pdbedit -L -v user1
User SID: S-1-5-21-1454471165-2146950999-672003340-1416

Where does it get the 1416 Rid from?

Thanks,
Nuno Fernandes
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba write performance in kernel

2008-09-18 Thread Lin Mac

hi,

Just do some debugging, and found something. I hope this do help. Correct me if 
anything wrong.

I'm using samba-3.2.2.
For some reason, Linux can not splice a socket and a filefd directly, which 
samba does so.

In linux, sys_splice calls do_splice, which would require either in or out fd 
to be a PIPE(FIFO).
Both parameter (fromfd, tofd) that  samba sent with splice failed the test 
S_ISFIFO() in linux.

Maybe it would work to add an addition FIFO? splice(fromfd, FIFO) and 
splice(FIFO, tofd)?

Best Regards,
Mac Lin

 Date: Thu, 18 Sep 2008 16:01:29 +0200
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]; samba@lists.samba.org
 Subject: Re: [Samba] Samba write performance in kernel
 
 On Thu, Sep 18, 2008 at 09:45:43PM +0800, Lin Mac wrote:
   On Mon, Sep 15, 2008 at 02:44:32PM +0800, Lin Mac wrote:
   This is a kernel implementation detail. Remember Samba
   runs on many other kernels, not just Linux. Linux has
   splice, *BSD has receivefile, Solaris probably has
   something different.
 
  Samba using splice on Linux doesn't work, that is for sure. 
 
 And there's no way that this can be fixed?
 
 Volker

_
用部落格分享照片、影音、趣味小工具和最愛清單,盡情秀出你自己 — Windows Live Spaces
http://spaces.live.com/
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Rid generation

2008-09-18 Thread Hari Sekhon

Nuno Fernandes wrote:

[EMAIL PROTECTED] samba]# pdbedit -L -v user1
User SID: S-1-5-21-1454471165-2146950999-672003340-1416

Where does it get the 1416 Rid from?
  
Samba does not generate the Rid, that is a Microsoft Domain Controller 
function (allocation of rids is controlled through the Rid master if I 
remember my MCSE days correctly)


Samba is simply querying the domain controller for the Sid. If samba is 
being used as a dc, then I guess it must basically do the same thing as 
Microsoft and generate the rid from 1000 onwards incrementally for each 
user, similar to what happens for unix uids I expect, since rids and 
uids are basically the same idea on different platforms.


-h

--
Hari Sekhon

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


[Samba] Samba with 2 NICs

2008-09-18 Thread hamacker
Hi everybody.

I upgrade samba2 to samba3 in last month, I installed version  3.0.28a-1ubuntu4.

But I have one big problem, I have two NICs that I use to
balance/redundant (timming) that can not be enabled two simultaneos,
if I do then win95 and win98 can not logon to network/domain.

If  I disabled one NIC then win95/win98 can logon normally, if enable
two NICs then only Windows XP can logon.

I try to put in smb.conf :

   #interfaces = 192.168.1.2/24 192.168.1.3 127.
   interfaces = eth0 eth1

But the same problem ocours.

If I enabled two NICs, only WinXP can logon.
If I enabled only one NIC, WinXP and Win95/98 can logon.

Please, I need two NICs and WinXP/Win95/Win98 logon in my network/domain.

Any help will be welcome ?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Rid generation

2008-09-18 Thread Nuno Fernandes
On Thursday 18 September 2008 15:37:21 Hari Sekhon wrote:
 Nuno Fernandes wrote:
  [EMAIL PROTECTED] samba]# pdbedit -L -v user1
  User SID: S-1-5-21-1454471165-2146950999-672003340-1416
 
  Where does it get the 1416 Rid from?

 Samba does not generate the Rid, that is a Microsoft Domain Controller
 function (allocation of rids is controlled through the Rid master if I
 remember my MCSE days correctly)

 Samba is simply querying the domain controller for the Sid. If samba is
 being used as a dc, then I guess it must basically do the same thing as
 Microsoft and generate the rid from 1000 onwards incrementally for each
 user, similar to what happens for unix uids I expect, since rids and
 uids are basically the same idea on different platforms.

 -h

I don't have any windows domain controler. This samba server is the domain 
controller. What i would like to know is how does samba generated the RID 
part? Is it based on what? How is it calculated?

Best regards,
Nuno Fernandes

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


Re: [Samba] Rid generation

2008-09-18 Thread Hari Sekhon

Nuno Fernandes wrote:

On Thursday 18 September 2008 15:37:21 Hari Sekhon wrote:
  

Nuno Fernandes wrote:


[EMAIL PROTECTED] samba]# pdbedit -L -v user1
User SID: S-1-5-21-1454471165-2146950999-672003340-1416

Where does it get the 1416 Rid from?
  

it must basically do the same thing as
Microsoft and generate the rid from 1000 onwards incrementally for each
user, similar to what happens for unix uids I expect, since rids and
uids are basically the same idea on different platforms.

I don't have any windows domain controler. This samba server is the domain 
controller. What i would like to know is how does samba generated the RID 
part? Is it based on what? How is it calculated
My guess would be that it's incremental, like on Windows, as I mentioned 
above. How else would you generate it? How are uids generate on unix 
systems? Incrementally.


Can any samba dev confirm this? Or perhaps you could just create a few 
users and see the Rid incrementing each time?


-h

--
Hari Sekhon

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


[Samba] Fwd: Sol9 make failure of samba 3.2.2 with gcc 3.4.6 -- libtalloc.so.1

2008-09-18 Thread Dave S
I'm on Solaris 9 sparc.  Current versions are:
gcc 3.4.6 (sunfreeware pkg)
MIT krb5-1.6.3 (source)
openldap-2.4.11 (compiled with --with-tls and --enable-crypto)
samba-3.2.2
db-4.2.52.NC (sunfreeware pkg)

No compiler env vars set, except CC is set to
CC=/usr/local/bin/gcc

I'm invoking configure as follows:
./configure --with-ads --with-windbind --with-krb5=/usr/local --with-ldap

'make' fails with the following output:
Linking non-shared library bin/libtalloc.a
Compiling lib/replace/replace.c
Compiling lib/replace/snprintf.c
Compiling lib/replace/getpass.c
Compiling lib/replace/strptime.c
Compiling lib/replace/timegm.c
Compiling lib/replace/inet_aton.c
Compiling lib/replace/getifaddrs.c
creating /root/samba-3.2.2/source/exports/libtalloc.syms
Linking shared library bin/libtalloc.so.1
/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.6/../../../../sparc-sun-solaris2.9/bin/ld:
cannot open linker script file
/root/samba-3.2.2/source/exports/libtalloc.so.1: No such file or
directory
collect2: ld returned 1 exit status
make: *** [bin/libtalloc.so.1] Error 1

make -n shows the following line prior to the failure:
/usr/local/bin/gcc -I/usr/local/include -O -D_SAMBA_BUILD_=3 -G
-Wl,-z,relro -L/usr/local/lib -R/usr/local/lib
-L/usr/local/BerkeleyDB.4.2/lib -lthread -L./bin
-Wl,--version-script,/root/samba-3.2.2/source/exports/`basename
bin/libtalloc.so.1 | sed 's/so\(.[0-9]\{1,\}\)\{0,1\}$/syms/'` -o
bin/libtalloc.so.1 lib/talloc/talloc.o lib/replace/replace.o
lib/replace/snprintf.o lib/replace/getpass.o lib/replace/strptime.o
lib/replace/timegm.o lib/replace/inet_aton.o lib/replace/getifaddrs.o
-Wl,-soname=`basename bin/libtalloc.so.1`

source/bin contains only libtalloc.a at the fail point.
Any ideas?  I'm not experienced at doing builds on Solaris.

Thanks,

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


Re: [Samba] Rid generation

2008-09-18 Thread John H Terpstra
On Thursday 18 September 2008 11:48:44 Nuno Fernandes wrote:
 On Thursday 18 September 2008 15:37:21 Hari Sekhon wrote:
  Nuno Fernandes wrote:
   [EMAIL PROTECTED] samba]# pdbedit -L -v user1
   User SID: S-1-5-21-1454471165-2146950999-672003340-1416
  
   Where does it get the 1416 Rid from?
 
  Samba does not generate the Rid, that is a Microsoft Domain Controller
  function (allocation of rids is controlled through the Rid master if I
  remember my MCSE days correctly)
 
  Samba is simply querying the domain controller for the Sid. If samba is
  being used as a dc, then I guess it must basically do the same thing as
  Microsoft and generate the rid from 1000 onwards incrementally for each
  user, similar to what happens for unix uids I expect, since rids and
  uids are basically the same idea on different platforms.
 
  -h

 I don't have any windows domain controler. This samba server is the domain
 controller. What i would like to know is how does samba generated the RID
 part? Is it based on what? How is it calculated?

 Best regards,
 Nuno Fernandes

Did you check the Samba3-HOWTO?  It is available on-line in HTML or in PDF.  
The HTML version is at http://www.samba.org/samba/docs. The PDF can be 
downloaded from:
http://www.samba.org/samba/docs/Samba3-HOWTO.pdf

The PDF has hotlinked index at the back, you will find RID listed in the 
index.

If this does not answer your question please let me know.

- John T.
-- 
John H Terpstra

Don't do as I do; Show me better! - Anonymous.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Fwd: Sol9 make failure of samba 3.2.2 with gcc 3.4.6 -- libtalloc.so.1

2008-09-18 Thread Christian McHugh
We are compiling samba on solaris 10 (also works on solaris 9) by installing 
the kerberos, openldap, and openldap-devel stuff from blastwave. With that 
done samba can be compiled by pointing to the csw locations:

export CPPFLAGS='-I/opt/csw/include'
export LDFLAGS='-L/opt/csw/lib'
./configure --prefix=/usr/local/samba --with-shared-modules=idmap_ad --with-pam 
--with-ads --with-krb5=/opt/csw

After the configure finishes you must edit the Makefile to remove entries 
for -z text (see bug 5770) and change the /bin/sh entry to /bin/bash (bug 
5765)

after that a gmake  gmake install should work

To get samba to function once installed you will also have to edit the library 
path to add the location for the shared samba libraries:
crle -c /var/ld/ld.config -l /lib:/usr/lib:/opt/csw/lib:/usr/local/samba/lib

and that should  do it!

Good luck,
Christian McHugh
Northern Arizona University
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Rid generation

2008-09-18 Thread Helmut Hullen
Hallo, Nuno,

Du (npf-mlists) meintest am 18.09.08:

 If i have smbpasswd with:

 user1:1416:803A317873C24BBDAAD3B435B51404EE:2DF2CB1538FE718DE034707A5
 21AA893: [U  ]:LCT-1221415636:

 [EMAIL PROTECTED] samba]# pdbedit -L -v user1
 User SID: S-1-5-21-1454471165-2146950999-672003340-1416

 Where does it get the 1416 Rid from?

What tells

getent passwd user1

The Samba Rid looks like the Linux group ID.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Problems during make install

2008-09-18 Thread Gason Gregor
Hello,

 

During my compilation and installation (specificly the make
install portion) while trying to create compile I receive an error on every
file that reads as follows:

 

Compiling filename

./librpc/gen_ndr/srvsvc.h, line 232: warning enumerator value overflows
INT_MAX (2137483647)

./librpc/gen_ndr/srvsvc.h, line 235: warning enumerator value overflows
INT_MAX (2137483647)

./librpc/gen_ndr/srvsvc.h, line 238: warning enumerator value overflows
INT_MAX (2137483647)

./librpc/gen_ndr/srvsvc.h, line 242: warning enumerator value overflows
INT_MAX (2137483647)

./librpc/gen_ndr/wksscv.h, line 10: warning useless declaration

./librpc/gen_ndr/samr.h, line 633: warning useless declaration

./librpc/gen_ndr/nbt.h, line 496: warning useless declaration

./librpc/gen_ndr/netlogon.h, line 204: warning useless declaration

./librpc/gen_ndr/netlogon.h, line 206: warning useless declaration

./librpc/gen_ndr/libnet_join.h, line 10: warning useless declaration

 

This repeats for every file that is installed.  I am using a Solaris 10
Sparc system with the latest 3.2.4 version of Samba.  I use SunStudio as my
C compiler.  I am unaware of how to solve this issue and any help/guidance
would be greatly appreciated.

 

I apologize in advance if this group is not where this kind of
troubleshooting is done.  I am new to Samba and unaware of where to search
for help for this topic.

 

Thank you,

Gason Gregor

 

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


[Samba] Using local Windows and AD accounts with SAMBA

2008-09-18 Thread [EMAIL PROTECTED]
Question about shares and ADS vs. local Windows accounts. I have a NAS 
(linux/samba based) set in ADS mode. If I'm logged into the domain with 
user1/pass1, I can access shares. If I log into the Windows machine locally 
with the same credentials, I can't access the shares. I have another older NAS 
(linux based) where I can, so I'm thinking it must be some setting in the 
samba.conf file, or else something has been changed in SAMBA's AD 
implementation.

e.g./clarification
A share that is accessible to user1 when he logs in to the domain is not 
accessible to user1 when he logs into the same computer locally (using the 
same username and password). 

Is there any way to change this?

Thanks for any help. 

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


Re: [Samba] Samba with 2 NICs

2008-09-18 Thread Chris Smith
 Any help will be welcome ?

Bind the nics, it's the proper way.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba user file Red hat 5 EL

2008-09-18 Thread Marc Fromm

(This is a resend to my question, due to an error between the keyboard and 
chair.)

I installed red hat 5EL. I created samba users in command line using
pdbedit -a username and then supplied a password at the prompt.

On our fedora core 5 server the users are listed in a file called smbpasswd, 
much like /etc/shadow

Where in red hat 5EL is the smbpasswd file or what file stores the users and 
passwords? Does creating a samba user still require first creating a red hat 
user by the same name?

Thanks

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


[Samba] [ANNOUNCE] Samba 3.2.4 Available for Download

2008-09-18 Thread Karolin Seeger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

===
It is only with one's heart that one can see
 clearly. What is essential is invisible to the
 eye.

   Antoine de Saint-Exupéry
===

Release Announcements
=


This is a bug fix release of the Samba 3.2 series.

Major bug fixes included in Samba 3.2.4 are:

  o Fix Winbind crashes.
  o Fix changing of machine account passwords.
  o Fix non guest connections to shares when security = share
is used.
  o Fix file write times.


##
Changes
###

Changes since 3.2.3
- ---


o   Michael Adam [EMAIL PROTECTED]
* BUG 5590: Fix binary stripping on older OS.
* BUG 5492: Fix RHEL SPEC file by removing libmsrpc stuff.
* BUG 5507: Fix several issues in the RHEL SPEC file.
* Fix linking of cifs.upcall when nscd_flush_cache() is found.


o   Jeremy Allison [EMAIL PROTECTED]
* BUG 5052: Allow inheritable permissions.
* BUG 5697: Fix spinning of nmbd in reload_interfaces when only loopback
  has an IPv4 address.
* BUG 5698: Fix non guest connections to shares when security = share
  is used.
* BUG 5729: Explicitly allow -valid.
* BUG 5745: Fix Kerberos authentication with (lib)smbclient.
* BUG 5751: Fix showing of ACLs on DFS in (lib)smbclient.
* BUG 5761: Fix opening of mangled directory name (resulted
  'is a stream name').
* Fix the wcache_invalidate_samlogon calls.
* Add st_birthtime and friends for accurate create times on *BSD and MacOSX.
* Clarify usage of force create mode.
* Write times code update.


o   Gerald (Jerry) Carter [EMAIL PROTECTED]
* Fix Winbind crash.
* idmap_ad: Fix a segfault when calling nss_get_info() with a NULL ads
  structure.


o   Steven Danneman [EMAIL PROTECTED]
* Fix build warnings.
* Cleanup of DC enumeration in get_dcs().


o   Günther Deschner [EMAIL PROTECTED]
* BUG 5710: Fix changing of machine account passwords.
* Fix several build warnings.
* Fix invalid sid copy (hit when enumerating sibling domains) in Winbind.


o   James Ding [EMAIL PROTECTED]
* BUG 5736: Fix Winbind crash bug with trusted domains.


o   Ephi Dror [EMAIL PROTECTED]
* Correct the netsamlogon_clear_cached_user function.


o   Jeff Layton [EMAIL PROTECTED]
* Fix handling of MSKRB5 OID in cifs.upcall.
* Fix build warnings in cifs.upcall.
* Change default install location of cifs.upcall to EPREFIX/sbin.
* Enable building of cifs.upcall by default on Linux.


o   Volker Lendecke [EMAIL PROTECTED]
* BUG 5707: Do proper error handling if the socket is closed.
* Fix calculation of useable_space for trans2 and nttrans replies.
* Fix Coverity ID 587.
* Add mapping of generic bits when setting an NFSv4 ACL.


o   Stefan Metzmacher [EMAIL PROTECTED]
* Some write time fixes.


o   David Leonard [EMAIL PROTECTED]
* BUG 4516: No IPv6 on Solaris 2.6.


o   Simo Sorce [EMAIL PROTECTED]
* BUG 5571: Fix group memeberships in Winbind.


o   Timur [EMAIL PROTECTED]
* Fix cut and paste error in quota code.
* Fix display of POSIX ACLs.
* Fix aio on FreeBSD.


o   Andrew Tridgell [EMAIL PROTECTED]
* Avoid a race condition in glibc between AIO and setresuid().
* Add missing become root for AIO operations.
* Fix logic of tsmsm_sendfile().
* Fix an errno handling bug that could lead to an infinite loop.
* Fix handling of arbitrary new PAC types.


o   Qiao Yang [EMAIL PROTECTED]
* Fix a memleak.


##
Reporting bugs  Development Discussion
###

Please discuss this release on the samba-technical mailing list or by
joining the #samba-technical IRC channel on irc.freenode.net.

If you do report problems then please try to send high quality
feedback. If you don't provide vital information to help us track down
the problem then you will probably be ignored.  All bug reports should
be filed under the Samba 3.2 product in the project's Bugzilla
database (https://bugzilla.samba.org/).


==
== Our Code, Our Bugs, Our Responsibility.
== The Samba Team
==



Download Details


The uncompressed tarballs and patch files have been signed
using GnuPG (ID 6568B7EA).  The source code can be downloaded
from:

http://download.samba.org/samba/ftp/

The release notes are available online at:

http://www.samba.org/samba/ftp/history/samba-3.2.4.html

Binary packages will be made available on a volunteer basis from


[Samba] Migrating from Samba PDC to Windows Server 2003?

2008-09-18 Thread Alex Strasheim
Is it possible migrate a domain from a Samba PDC to Active Directory
using Windows Server 2003?

Is it possible add a Windows server to the domain, make it a domain
controller, have it sync up with Samba, and then turn the Samba PDC
off?  If it's possible, does it tend to work in the real world, or
does it cause problems?

(We're getting pushed this way by larger, non-Samba related issues --
I have to get AD set up.  I'm hoping there's an easy way to do it, but
I'm not too optimistic.)

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


Re: [Samba] Samba user file Red hat 5 EL

2008-09-18 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Marc Fromm wrote:
 (This is a resend to my question, due to an error between the keyboard and 
 chair.)
 
 I installed red hat 5EL. I created samba users in command line using
 pdbedit -a username and then supplied a password at the prompt.
 
 On our fedora core 5 server the users are listed in a file called smbpasswd, 
 much like /etc/shadow
 
 Where in red hat 5EL is the smbpasswd file or what file stores the users and 
 passwords? Does creating a samba user still require first creating a red hat 
 user by the same name?
 
 Thanks
 
 Marc

Someone answered that tdbsam is the default on RHEL5. Were you not able
to see the response?

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFI0ss/mb+gadEcsb4RAq3bAJjim8E/PmkX4hf9/02HW7HYniplAKClehjQ
kPPHHwVcz8J/lAjOtQILZA==
=EsHs
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Fwd: Sol9 make failure of samba 3.2.2 with gcc 3.4.6 -- libtalloc.so.1

2008-09-18 Thread William Wilson
I'm trying out samba 3.2.4. Have the latest version of openldap  
installed from source.  When I gmake the prog I get:


Compiling lib/md5.c
In file included from lib/md5.c:23:
/nau/local/include/md5.h:27: error: parse error before UINT4
/nau/local/include/md5.h:27: warning: no semicolon at end of struct or  
union
/nau/local/include/md5.h:28: warning: data definition has no type or  
storage class

/nau/local/include/md5.h:30: error: parse error before '}' token
/nau/local/include/md5.h:30: warning: data definition has no type or  
storage class

/nau/local/include/md5.h:32: error: parse error before PROTO_LIST
/nau/local/include/md5.h:33: error: parse error before PROTO_LIST
/nau/local/include/md5.h:35: error: parse error before PROTO_LIST
/nau/local/include/md5.h:37: error: parse error before PROTO_LIST
The following command failed:
gcc -I. -I/nau/src/Net/samba-3.2.4/source  -I/nau/local/include -O - 
D_SAMBA_BUILD_=3 -I/nau/src/Net/samba-3.2.4/source/popt -I/nau/src/Net/ 
samba-3.2.4/source/iniparser/src -Iinclude -I./include  -I. -I. -I./ 
lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc  
-DHAVE_CONFIG_H  -I/nau/local/include -I/nau/share/include -I/nau/ 
local/include -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 - 
Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/ 
tdb/include -I./libaddns -I./librpc -I./popt -I/usr/local/include - 
DLDAP_DEPRECATED -DSUNOS5   -I/include -I/nau/src/Net/samba-3.2.4/ 
source/lib -D_SAMBA_BUILD_=3 -fPIC -c lib/md5.c -o lib/md5.o

gmake: *** [lib/md5.o] Error 1


My configure looks like:

setenv LDFLAGS -L/nau/share/lib/ldap/lib
setenv CPPFLAGS -I/nau/share/include -I/nau/local/include

./configure --prefix=/nau/samba --without-LD --with-ldap=/nau/share -- 
with-stati
c-libs=libtalloc,libtdb,idmap_ad --with-pam --with-krb5=/nau/local -- 
with-ads --

with-libiconv=/usr/local


Any idea on the compile error
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Can't authenticate users from both domains in forest

2008-09-18 Thread Roger Roden
I have 2 domains in my forest. I need to allow users from both DomA (The
forest root and the Domain the server is joined to) and DomB to log in. All
works fine with DomA, but no one from DomB can log in. wbinfo --domain=DOMB
-u returns error looking up domain users. wbinfo -D DOMB returns the
following:

Name  : DOMB
Alt_Name  : DOMB.local
SID   : S-1-5-21-1846896199-2149236580-2910475250
Active Directory  : No
Native: No
Primary   : No
Sequence  : -1

I can get a kerberos ticket from DomB.

Here is my smb.conf

[global]
#--authconfig--start-line--

# Generated by authconfig on 2008/09/17 12:52:21
# DO NOT EDIT THIS SECTION (delimited by --start-line--/--end-line--)
# Any modification may be deleted or altered by authconfig in future

  workgroup = DOMA
  password server = ad01.doma.local
  realm = DOMA.LOCAL
  security = ads
  idmap uid = 16777216-33554431
  idmap gid = 16777216-33554431
  template shell = /bin/bash
  template homedir = /home/%U
  winbind use default domain = false
  winbind offline logon = false

#--authconfig--end-line--

   log level = 3
   server string = Samba Server Version %v
   client use spnego = yes
   passdb backend = tdbsam
   wins server = AN.I.P.ADDRESS
   cups options = raw
---
I'm running CentOS 5 and Samba 3.0.28. All AD Servers are 2003 R2.

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


Re: [Samba] Why are some error messages printed to stdout?

2008-09-18 Thread Stan
Hi again :)
Ok.  I was looking at something else now and stumbled into a similar thing.
 This time it is in the client code (client.c):

if (!NT_STATUS_IS_OK(status)) {
d_printf(Connection to %s\\%s failed - %s\n,
 server, share, nt_errstr(status));
talloc_free(ctx);
return NULL;
}

Haven't looked into what exactly d_printf does, but do see in my output that
it is going out on the stdout and not stderr as might have been expected.

Thanks.

On Tue, Sep 16, 2008 at 10:54 PM, Bhairav Shah [EMAIL PROTECTED] wrote:

 Hi Jeremy,

 Thanks for pointing that out.  I see now that only the torture/* files are
 like that.  Other files that I looked at were correctly using
 fprintf(stderr, ... ) for error cases.

 Regards.


 On Tue, Sep 16, 2008 at 6:45 PM, Jeremy Allison [EMAIL PROTECTED] wrote:

 On Tue, Sep 16, 2008 at 06:30:48PM -0400, Bhairav Shah wrote:
  Hello,
 
  I am writing a perl script that makes use of Samba and I find that some
 of
  the error messages are getting printed to stdout.  This kinda creates a
  problem with trying to figure out whether the message output is really
 an
  error or not.  Any reason why some of the error outputs are not sent out
  over stderr?
 
  As an example, in the torture_open_connection_share method in the
  torture/util_smb.c file, the following line prints the error to stdout:
printf(Failed to open connection - %s\n,
 nt_errstr(status));
 
  I noticed a few others that were doing the same thing.  I was expecting
 to
  see fprintf (stderr ...) for these kinds of messages.

 Bug. Torture isn't as carefully written as some of the other
 parts of Samba as it was meant as an internal test tool.

 Jeremy.



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


[Samba] LDAP user search request includes domain

2008-09-18 Thread Howard Allison

Hi,
I'm running a Samba 3.0.32 server on AIX 6.1, AIX is authorizing with 
secldapclntd to an OpenLDAP Server.
The Clients are coming from a Windows 2003 Terminal Server Thin Client 
session, logged in to the domain.
I see in the logs that secldapclntd tries 3 times to authorize using 
DOMAIN\USER as identification, and then finally uses USER(which works). 
Is this Samba behavior, or AIX? Is there any way to convince Samba that 
he should use just the User name for File Access?

Thanks

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


[Samba] joining samba server to Active Directory for

2008-09-18 Thread Gregory Machin
Hi
I'm trying to get my samba file server to authenticate against my
windows 2008 active directory server , so that there is a unified log
in and if anyone logs onto the box the they are authenticated against
the a server and there account is created.

I'm battling to get my samba server server to join the domain .. I can
get any further than this

[EMAIL PROTECTED] ~]# kinit [EMAIL PROTECTED]
Password for [EMAIL PROTECTED]:
[EMAIL PROTECTED] ~]# net ads join -U administrator
administrator's password:
[2008/09/19 07:46:37, 0] libsmb/smb_signing.c:signing_good(253)
  signing_good: BAD SIG: seq 1
Failed to join domain: Logon failure
[EMAIL PROTECTED] ~]#

I know it's not the wrong password because I get a totoaly different
error If I deliberately put in the wrong password.

What have I missed ?

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


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3038-gd553faf

2008-09-18 Thread Karolin Seeger
The branch, v3-2-test has been updated
   via  d553faff4ae9aa1fdc1bb716e901dcede7799f27 (commit)
   via  1b9f43d732362e32bbe07d6bc6f5b3d7e3a247c0 (commit)
  from  a31b006a411266adf49d2eefd1f80bbb091f0c4c (commit)

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


- Log -
commit d553faff4ae9aa1fdc1bb716e901dcede7799f27
Author: Karolin Seeger [EMAIL PROTECTED]
Date:   Wed Sep 17 08:48:19 2008 +0200

find_missing_manpages.pl: Adapt script to changed directory structure.

Karolin
(cherry picked from commit b6b7aa023b62ab8994d13cb91d5185204c1500b2)

commit 1b9f43d732362e32bbe07d6bc6f5b3d7e3a247c0
Author: Karolin Seeger [EMAIL PROTECTED]
Date:   Thu Sep 18 08:46:54 2008 +0200

WHATSNEW: Improve description of Simo's bug fix.

Karolin

---

Summary of changes:
 WHATSNEW.txt  |3 ++-
 docs-xml/scripts/find_missing_manpages.pl |   27 ---
 2 files changed, 22 insertions(+), 8 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 2a211ec..87acb2e 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -95,7 +95,8 @@ o   David Leonard [EMAIL PROTECTED]
 
 
 o   Simo Sorce [EMAIL PROTECTED]
-* BUG 5571: Fix group memeberships in Winbind.
+* BUG 5571: Fix enumeration of nested group memberships in Winbind.
+  This affected only setups using security = ads.
 
 
 o   Timur [EMAIL PROTECTED]
diff --git a/docs-xml/scripts/find_missing_manpages.pl 
b/docs-xml/scripts/find_missing_manpages.pl
index c468d7d..aa5751b 100755
--- a/docs-xml/scripts/find_missing_manpages.pl
+++ b/docs-xml/scripts/find_missing_manpages.pl
@@ -1,14 +1,25 @@
 #!/usr/bin/perl
 
-my %doc;
-
 $invar = 0;
-
 $topdir = (shift @ARGV) or $topdir = .;
-
+$makefile = $topdir/source/Makefile.in;
+$mandir = $topdir/docs-xml/manpages-3;
 $progs = ;
 
-open(IN, $topdir/Makefile.in);
+chdir($topdir);
+
+if(! -e $makefile) {
+   print $makefile does not exist!\n;
+   print Wrong directory?\n;
+   exit(1);
+}
+
+if(! -d $mandir) {
+print $mandir does not exist!\n;
+exit(1);
+}
+
+open(IN, $makefile);
 while(IN) {
if($invar  /^([ \t]*)(.*?)([\\])$/) {
$progs.=  . $2;
@@ -22,15 +33,17 @@ while(IN) {
 foreach(split(/bin\//, $progs)) {
next if($_ eq  );
s/[EMAIL PROTECTED]@//g;
+   s/[EMAIL PROTECTED]@//g;
s/ //g;
 
 
$f = $_;
-   
+
$found = 0;
 
+
for($i = 0; $i  9; $i++) {
-   if(-e manpages/$f.$i.xml) { $found = 1; }
+   if(-e $mandir/$f.$i.xml) { $found = 1; }
}
 
if(!$found) {


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-stable updated - release-3-2-3-99-gd89ba32

2008-09-18 Thread Karolin Seeger
The branch, v3-2-stable has been updated
   via  d89ba32c49049ae105b02b2cea578605a13a7afb (commit)
   via  ce92c96a3e80409b6dca7ef0198400403d72b7d4 (commit)
  from  3202012836cc25b6981bced9c9fa12458df0de9d (commit)

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


- Log -
commit d89ba32c49049ae105b02b2cea578605a13a7afb
Author: Karolin Seeger [EMAIL PROTECTED]
Date:   Wed Sep 17 08:48:19 2008 +0200

find_missing_manpages.pl: Adapt script to changed directory structure.

Karolin
(cherry picked from commit b6b7aa023b62ab8994d13cb91d5185204c1500b2)
(cherry picked from commit d553faff4ae9aa1fdc1bb716e901dcede7799f27)

commit ce92c96a3e80409b6dca7ef0198400403d72b7d4
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Wed Sep 17 11:59:18 2008 -0700

Ensure all pointers are initialized. Without this we can crash when looking 
up a non-existant uid.
Jeremy.
(cherry picked from commit a31b006a411266adf49d2eefd1f80bbb091f0c4c)

---

Summary of changes:
 docs-xml/scripts/find_missing_manpages.pl |   27 ++-
 source/services/services_db.c |   40 ++--
 2 files changed, 40 insertions(+), 27 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/scripts/find_missing_manpages.pl 
b/docs-xml/scripts/find_missing_manpages.pl
index c468d7d..aa5751b 100755
--- a/docs-xml/scripts/find_missing_manpages.pl
+++ b/docs-xml/scripts/find_missing_manpages.pl
@@ -1,14 +1,25 @@
 #!/usr/bin/perl
 
-my %doc;
-
 $invar = 0;
-
 $topdir = (shift @ARGV) or $topdir = .;
-
+$makefile = $topdir/source/Makefile.in;
+$mandir = $topdir/docs-xml/manpages-3;
 $progs = ;
 
-open(IN, $topdir/Makefile.in);
+chdir($topdir);
+
+if(! -e $makefile) {
+   print $makefile does not exist!\n;
+   print Wrong directory?\n;
+   exit(1);
+}
+
+if(! -d $mandir) {
+print $mandir does not exist!\n;
+exit(1);
+}
+
+open(IN, $makefile);
 while(IN) {
if($invar  /^([ \t]*)(.*?)([\\])$/) {
$progs.=  . $2;
@@ -22,15 +33,17 @@ while(IN) {
 foreach(split(/bin\//, $progs)) {
next if($_ eq  );
s/[EMAIL PROTECTED]@//g;
+   s/[EMAIL PROTECTED]@//g;
s/ //g;
 
 
$f = $_;
-   
+
$found = 0;
 
+
for($i = 0; $i  9; $i++) {
-   if(-e manpages/$f.$i.xml) { $found = 1; }
+   if(-e $mandir/$f.$i.xml) { $found = 1; }
}
 
if(!$found) {
diff --git a/source/services/services_db.c b/source/services/services_db.c
index 620b036..56e76a3 100644
--- a/source/services/services_db.c
+++ b/source/services/services_db.c
@@ -91,8 +91,8 @@ static SEC_DESC* construct_service_sd( TALLOC_CTX *ctx )
SEC_ACE ace[4];
SEC_ACCESS mask;
size_t i = 0;
-   SEC_DESC *sd;
-   SEC_ACL *acl;
+   SEC_DESC *sd = NULL;
+   SEC_ACL *acl = NULL;
size_t sd_size;
 
/* basic access for Everyone */
@@ -188,11 +188,11 @@ static char *cleanup_string( const char *string )
 
 static bool read_init_file( const char *servicename, struct 
rcinit_file_information **service_info )
 {
-   struct rcinit_file_information *info;
+   struct rcinit_file_information *info = NULL;
char *filepath = NULL;
char str[1024];
-   XFILE *f;
-   char *p;
+   XFILE *f = NULL;
+   char *p = NULL;
 
if ( !(info = TALLOC_ZERO_P( NULL, struct rcinit_file_information ) ) )
return False;
@@ -335,12 +335,12 @@ static void fill_service_values( const char *name, 
REGVAL_CTR *values )
 static void add_new_svc_name( REGISTRY_KEY *key_parent, REGSUBKEY_CTR *subkeys,
   const char *name )
 {
-   REGISTRY_KEY *key_service, *key_secdesc;
+   REGISTRY_KEY *key_service = NULL, *key_secdesc = NULL;
WERROR wresult;
char *path = NULL;
-   REGVAL_CTR *values;
-   REGSUBKEY_CTR *svc_subkeys;
-   SEC_DESC *sd;
+   REGVAL_CTR *values = NULL;
+   REGSUBKEY_CTR *svc_subkeys = NULL;
+   SEC_DESC *sd = NULL;
DATA_BLOB sd_blob;
NTSTATUS status;
 
@@ -444,7 +444,7 @@ void svcctl_init_keys( void )
 {
const char **service_list = lp_svcctl_list();
int i;
-   REGSUBKEY_CTR *subkeys;
+   REGSUBKEY_CTR *subkeys = NULL;
REGISTRY_KEY *key = NULL;
WERROR wresult;
 
@@ -502,9 +502,9 @@ void svcctl_init_keys( void )
 
 SEC_DESC *svcctl_get_secdesc( TALLOC_CTX *ctx, const char *name, NT_USER_TOKEN 
*token )
 {
-   REGISTRY_KEY *key;
-   REGVAL_CTR *values;
-   REGISTRY_VALUE *val;
+   REGISTRY_KEY *key = NULL;
+   REGVAL_CTR *values = NULL;
+   REGISTRY_VALUE *val = NULL;
SEC_DESC *ret_sd = NULL;
char *path= NULL;
WERROR wresult;
@@ -563,10 +563,10 @@ done:
 
 bool svcctl_set_secdesc( TALLOC_CTX *ctx, 

[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-32-39-g72b4ca3

2008-09-18 Thread Günther Deschner
The branch, v3-0-test has been updated
   via  72b4ca3ec5714d6056654ecb0fdcbd7d954e6984 (commit)
  from  a605c5352485cf1b50090301b909b5258de8be8c (commit)

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


- Log -
commit 72b4ca3ec5714d6056654ecb0fdcbd7d954e6984
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Thu Sep 18 14:09:27 2008 +0200

fix net_io_q_srv_pwset2.

yes, we all love hand-marshalled rpc...

Guenther

---

Summary of changes:
 source/rpc_parse/parse_net.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/rpc_parse/parse_net.c b/source/rpc_parse/parse_net.c
index 708f5ba..8d99e80 100644
--- a/source/rpc_parse/parse_net.c
+++ b/source/rpc_parse/parse_net.c
@@ -1044,7 +1044,7 @@ BOOL net_io_q_srv_pwset2(const char *desc, 
NET_Q_SRV_PWSET2 *q_s, prs_struct *ps
 
if(!smb_io_clnt_info(, q_s-clnt_id, ps, depth)) /* client 
identification/authentication info */
return False;
-   if(!prs_uint8s(False, pwd.data, ps, depth, q_s-pwd.data, 516)) /* 
new password - undocumented */
+   if(!prs_uint8s(False, pwd.data, ps, depth, q_s-pwd.data, 512)) /* 
new password - undocumented */
return False;
if(!prs_uint32(pwd.length, ps, depth, q_s-pwd.length)) /* new 
password - undocumented */
return False;


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - annotated tag release-3-2-4 created - release-3-2-4

2008-09-18 Thread Karolin Seeger
The annotated tag, release-3-2-4 has been created
at  ca69b01d0d39fb9619b126a59585e9f5b4705a84 (tag)
   tagging  d89ba32c49049ae105b02b2cea578605a13a7afb (commit)
  replaces  release-3-2-3
 tagged by  Karolin Seeger
on  Thu Sep 18 13:59:22 2008 +0200

- Log -
tag release 3-2-4
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQBI0kX4bzORW2Vot+oRAlLnAJ9/crbcVHNJ8nSu7+5fw7K8OLp9pwCghXfw
/k5djphuV9ahk8OYwPYRXdQ=
=dch8
-END PGP SIGNATURE-

Andrew Tridgell (6):
  Avoid a race condition in glibc between AIO and setresuid().
  EINVAL is also a valid error return, meaning this filesystem
  become root for AIO operations
  fixed tsmsm_sendfile(). The logic was totally broken.
  fixed an errno handling bug that could lead to an infinite loop
  Handle arbitrary new PAC types

David Leonard (1):
  Fix bug 4516, no IPv6 on Solaris 2.6.

Ephi Dror (1):
  Correct the netsamlogon_clear_cached_user function.

Gerald (Jerry) Carter (4):
  nss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT
  winbindd: Fix crash in cm_connect_sam()
  Add simple script to build docs
  Add workaround for docs build and dependency on parameters.all.xml

Gerald W. Carter (2):
  Release scripts: Update create-tarball to include docs and other 
packaging details.
  idmap_ad: Fix a segfault when calling nss_get_info() with a NULL ads 
structure.

Günther Deschner (7):
  fix another build warning.
  fix build warning.
  IDL: fix IDL for netr_ServerPasswordSet2().
  re-run make idl.
  Fix Bug #5710 and make machine account password changing work again.
  winbindd: fix invalid sid copy (hit when enumerating sibling domains).
  kerberos: fix indent of enc type lines in generated krb5.conf files.

Herb Lewis (2):
  get rid of unneeded argument for get_methods
  get rid of unneeded argument for get_alloc_methods as well

James Ding (1):
  Fix winbindd crash bug with trusted domains. Bug #5736

Jeff Layton (7):
  cifs.upcall: handle MSKRB5 OID properly
  cifs.upcall: fix build warning
  cifs.upcall: bump SPNEGO msg version number and don't reject old versions
  cifs.upcall: enable building by default on linux
  cifs.upcall: move default install location to EPREFIX/sbin
  cifs.upcall: make most functions static and silence compiler warnings
  mount.cifs: make local versions of strlcat and strlcpy static

Jeremy Allison (20):
  Fix bug 5697 nmbd spins in reload_interfaces when only loopback has an 
IPv4 address
  Fix bug 5698 - mixup of TALLOC/malloc. Spotted by Douglas Wegscheid 
[EMAIL PROTECTED].
  Don't re-initialize a token when we already have one. This fixes the 
build farm failures when winbindd connects as guest.
  Be explicit about setting perms for the ldb. Helps others who may use 
this api.
  Fix the wcache_invalidate_samlogon calls.
  Add st_birthtime and friends for accurate create times on systems that 
support it (*BSD and MacOSX). This really needs to be in 3.2.x.
  Clarify usage of force create mode.
  Deal with systems that don't initialize birthtime correctly.
  Fix bug #5729. Explicitly allow -valid.
  Remove unecessary msync.
  Write times code update.
  Fix debug message to show correct function name.
  Fix blocker bug 5745 kerberos authentication with (lib)smbclient is 
broken.
  When requesting UNIX info levels on findfirst/findnext, don't play games 
with write time,
  Fix bug #5052 - not work cancel inheritance on share. We were
  Fix bug #5751 cannot show ACLs on DFS reported by SATOH Fumiyasu [EMAIL 
PROTECTED].
  Use the given name, not the absolute pathname, when printing out ACL info.
  Modify a comment to make things clearer.
  Fix bug 5761 open of mangled directory name results in 'is a stream 
name'
  Ensure all pointers are initialized. Without this we can crash when 
looking up a non-existant uid.

Karolin Seeger (12):
  VERSION: Raise version number up tp 3.2.4.
  WHATSNEW: Update changes since 3.2.3.
  WHATSNEW: Update changes since 3.2.3.
  WHATSNEW: Update changes since 3.2.3.
  WHATSNEW: Update changes since 3.2.3.
  WHATSNEW: Update changes since 3.2.3.
  WHATSNEW: Update changes since 3.2.3.
  WHATSNEW: Update changes since 3.2.3.
  man cifs.upcall: Fix typo, wrap lines.
  WHATSNEW: Update changes since 3.2.3.
  WHATSNEW: Update changes since 3.2.3.
  find_missing_manpages.pl: Adapt script to changed directory structure.

Michael Adam (20):
  build: fix linking cifs.upcall when nscd_flush_cache() is found.
  build: rename LIBNETAPI_OBJ1 to LIBNETAPI_OBJ0 for consistency.
  build: fall down to the same place when using an internal lib statically.
  build: fix bug #5590 by not linking in the static libs but the objects.
  

svn commit: samba-web r1238 - in trunk: . devel history

2008-09-18 Thread kseeger
Author: kseeger
Date: 2008-09-18 13:14:06 + (Thu, 18 Sep 2008)
New Revision: 1238

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

Log:
Announce Samba 3.2.4.
Karolin
Added:
   trunk/history/samba-3.2.4.html
Modified:
   trunk/devel/index.html
   trunk/header_columns.html
   trunk/history/header_history.html
   trunk/index.html


Changeset:
Modified: trunk/devel/index.html
===
--- trunk/devel/index.html  2008-09-15 17:57:33 UTC (rev 1237)
+++ trunk/devel/index.html  2008-09-18 13:14:06 UTC (rev 1238)
@@ -20,8 +20,8 @@
 3.0.x and 2.2.x versions of Samba, which are no longer in active development.
 /p
 
-pThe latest production release is emSamba 3.2.3/em (a
-href=/samba/history/samba-3.2.3.htmlrelease notes/a and a
+pThe latest production release is emSamba 3.2.4/em (a
+href=/samba/history/samba-3.2.4.htmlrelease notes/a and a
 href=/samba/download/download/a)./p
 
 pWith the release of version 3 of the GPL, the Samba Team has decided to

Modified: trunk/header_columns.html
===
--- trunk/header_columns.html   2008-09-15 17:57:33 UTC (rev 1237)
+++ trunk/header_columns.html   2008-09-18 13:14:06 UTC (rev 1238)
@@ -130,9 +130,9 @@
   div class=releases
 h4Current Stable Release/h4
 ul
-lia href=/samba/ftp/stable/samba-3.2.3.tar.gzSamba 3.2.3 
(gzipped)/a/li
-lia href=/samba/history/samba-3.2.3.htmlRelease Notes/a/li
-lia href=/samba/ftp/stable/samba-3.2.3.tar.ascSignature/a/li
+lia href=/samba/ftp/stable/samba-3.2.4.tar.gzSamba 3.2.4 
(gzipped)/a/li
+lia href=/samba/history/samba-3.2.4.htmlRelease Notes/a/li
+lia href=/samba/ftp/stable/samba-3.2.4.tar.ascSignature/a/li
 /ul
 
 h4Historical/h4

Modified: trunk/history/header_history.html
===
--- trunk/history/header_history.html   2008-09-15 17:57:33 UTC (rev 1237)
+++ trunk/history/header_history.html   2008-09-18 13:14:06 UTC (rev 1238)
@@ -77,6 +77,7 @@
   div class=notes
 h6Release Notes/h6
 ul
+lia href=samba-3.2.4.htmlsamba-3.2.4/a/li
 lia href=samba-3.2.3.htmlsamba-3.2.3/a/li
 lia href=samba-3.2.2.htmlsamba-3.2.2/a/li
 lia href=samba-3.2.1.htmlsamba-3.2.1/a/li

Added: trunk/history/samba-3.2.4.html
===
--- trunk/history/samba-3.2.4.html  2008-09-15 17:57:33 UTC (rev 1237)
+++ trunk/history/samba-3.2.4.html  2008-09-18 13:14:06 UTC (rev 1238)
@@ -0,0 +1,157 @@
+!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
+http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
+html xmlns=http://www.w3.org/1999/xhtml;
+
+head
+titleSamba - Release Notes Archive/title
+/head
+
+body
+
+   H2Samba 3.2.4 Available for Download/H2
+
+p
+pre
+   ==
+   Release Notes for Samba 3.2.4
+   September 18, 2008
+   ==
+
+
+This is a bug fix release of the Samba 3.2 series.
+
+Major bug fixes included in Samba 3.2.4 are:
+
+  o Fix Winbind crashes.
+  o Fix changing of machine account passwords.
+  o Fix non guest connections to shares when security = share
+is used.
+  o Fix file write times.
+
+
+##
+Changes
+###
+
+Changes since 3.2.3
+---
+
+
+o   Michael Adam [EMAIL PROTECTED]
+* BUG 5590: Fix binary stripping on older OS.
+* BUG 5492: Fix RHEL SPEC file by removing libmsrpc stuff.
+* BUG 5507: Fix several issues in the RHEL SPEC file.
+* Fix linking of cifs.upcall when nscd_flush_cache() is found.
+
+
+o   Jeremy Allison [EMAIL PROTECTED]
+* BUG 5052: Allow inheritable permissions.
+* BUG 5697: Fix spinning of nmbd in reload_interfaces when only loopback
+  has an IPv4 address.
+* BUG 5698: Fix non guest connections to shares when security = share
+  is used.
+* BUG 5729: Explicitly allow -valid.
+* BUG 5745: Fix Kerberos authentication with (lib)smbclient.
+* BUG 5751: Fix showing of ACLs on DFS in (lib)smbclient.
+* BUG 5761: Fix opening of mangled directory name (resulted
+  'is a stream name').
+* Fix the wcache_invalidate_samlogon calls.
+* Add st_birthtime and friends for accurate create times on *BSD and 
MacOSX.
+* Clarify usage of force create mode.
+* Write times code update.
+
+
+o   Gerald (Jerry) Carter [EMAIL PROTECTED]
+* Fix Winbind crash.
+* idmap_ad: Fix a segfault when calling nss_get_info() with a NULL ads
+  structure.
+
+
+o   Steven Danneman [EMAIL PROTECTED]
+* Fix build warnings.
+* Cleanup of DC enumeration in get_dcs().
+
+
+o   Günther Deschner [EMAIL PROTECTED]
+* BUG 5710: Fix changing of machine account passwords.
+* Fix several build warnings.

[SCM] Samba Shared Repository - branch master updated - fcf6740d3f6adab2bcaea819c4e84126555ce3e0

2008-09-18 Thread Jelmer Vernooij
The branch, master has been updated
   via  fcf6740d3f6adab2bcaea819c4e84126555ce3e0 (commit)
  from  0379d9c151359f0f74cbe7883e73a87b7d96d48d (commit)

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


- Log -
commit fcf6740d3f6adab2bcaea819c4e84126555ce3e0
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu Sep 18 15:16:48 2008 +0200

Fix location of nss_wrapper.pl script.

---

Summary of changes:
 source3/script/tests/selftest.sh |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/script/tests/selftest.sh b/source3/script/tests/selftest.sh
index 15e48b0..0894b25 100755
--- a/source3/script/tests/selftest.sh
+++ b/source3/script/tests/selftest.sh
@@ -166,9 +166,9 @@ cat $SERVERCONFFILEEOF
domain logons = yes
time server = yes
 
-   add user script = $PERL $SRCDIR/lib/nss_wrapper/nss_wrapper.pl --path 
$NSS_WRAPPER_PASSWD --type passwd --action add --name %u
-   add machine script = $PERL $SRCDIR/lib/nss_wrapper/nss_wrapper.pl 
--path $NSS_WRAPPER_PASSWD --type passwd --action add --name %u
-   delete user script = $PERL $SRCDIR/lib/nss_wrapper/nss_wrapper.pl 
--path $NSS_WRAPPER_PASSWD --type passwd --action delete --name %u
+   add user script = $PERL $SRCDIR/../lib/nss_wrapper/nss_wrapper.pl 
--path $NSS_WRAPPER_PASSWD --type passwd --action add --name %u
+   add machine script = $PERL $SRCDIR/../lib/nss_wrapper/nss_wrapper.pl 
--path $NSS_WRAPPER_PASSWD --type passwd --action add --name %u
+   delete user script = $PERL $SRCDIR/../lib/nss_wrapper/nss_wrapper.pl 
--path $NSS_WRAPPER_PASSWD --type passwd --action delete --name %u
 
kernel oplocks = no
kernel change notify = no


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - b72d29724d5dec8133cb2afc039ed8c6fb6f5227

2008-09-18 Thread Jelmer Vernooij
The branch, master has been updated
   via  b72d29724d5dec8133cb2afc039ed8c6fb6f5227 (commit)
  from  fcf6740d3f6adab2bcaea819c4e84126555ce3e0 (commit)

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


- Log -
commit b72d29724d5dec8133cb2afc039ed8c6fb6f5227
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu Sep 18 15:25:31 2008 +0200

Fix python path for systems without tdb installed in the system.

---

Summary of changes:
 source4/selftest/samba4_tests.sh |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/selftest/samba4_tests.sh b/source4/selftest/samba4_tests.sh
index cde0a05..3c2bb13 100755
--- a/source4/selftest/samba4_tests.sh
+++ b/source4/selftest/samba4_tests.sh
@@ -334,7 +334,7 @@ SUBUNITRUN=$PYTHON ./scripting/bin/subunitrun
 plantest ldb.python none PYTHONPATH=$PYTHONPATH:lib/ldb/tests/python/ 
$SUBUNITRUN api
 plantest credentials.python none 
PYTHONPATH=$PYTHONPATH:auth/credentials/tests $SUBUNITRUN bindings
 plantest registry.python none PYTHONPATH=$PYTHONPATH:lib/registry/tests/ 
$SUBUNITRUN bindings
-plantest tdb.python none PYTHONPATH=$PYTHONPATH:lib/tdb/python/tests 
$SUBUNITRUN simple
+plantest tdb.python none PYTHONPATH=$PYTHONPATH:../lib/tdb/python/tests 
$SUBUNITRUN simple
 plantest auth.python none PYTHONPATH=$PYTHONPATH:auth/tests/ $SUBUNITRUN 
bindings
 plantest security.python none PYTHONPATH=$PYTHONPATH:libcli/security/tests 
$SUBUNITRUN bindings
 plantest param.python none PYTHONPATH=$PYTHONPATH:param/tests $SUBUNITRUN 
bindings


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4150-g020c03b

2008-09-18 Thread Günther Deschner
The branch, v3-3-test has been updated
   via  020c03bff844ef976dd786a755c4d682bf161a3d (commit)
  from  e60be05baff1a0d9f99cd2be8fbfd66e76893c1d (commit)

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


- Log -
commit 020c03bff844ef976dd786a755c4d682bf161a3d
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Fri Sep 5 14:01:45 2008 +0200

build: don't install the cifs.upcall binary twice.

Guenther
(cherry picked from commit 1f44b4aaa5f700827ee2ab272ae4b59e559b094b)

---

Summary of changes:
 source/Makefile.in |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/Makefile.in b/source/Makefile.in
index ca1b887..1b2339e 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -178,7 +178,7 @@ PATH_FLAGS = -DSMB_PASSWD_FILE=\$(SMB_PASSWD_FILE)\ \
 
 # Note that all executable programs now provide for an optional executable 
suffix.
 
-SBIN_PROGS = bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ @SWAT_SBIN_TARGETS@ 
@EXTRA_SBIN_PROGS@ @CIFSUPCALL_PROGS@
+SBIN_PROGS = bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ @SWAT_SBIN_TARGETS@ 
@EXTRA_SBIN_PROGS@
 
 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4151-gcf40fb9

2008-09-18 Thread Karolin Seeger
The branch, v3-3-test has been updated
   via  cf40fb97239ed9a11e5750fde6e078233e567bba (commit)
  from  020c03bff844ef976dd786a755c4d682bf161a3d (commit)

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


- Log -
commit cf40fb97239ed9a11e5750fde6e078233e567bba
Author: Karolin Seeger [EMAIL PROTECTED]
Date:   Thu Sep 18 15:52:06 2008 +0200

build-docs: Add 'make clean'.

Karolin

---

Summary of changes:
 release-scripts/build-docs |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/release-scripts/build-docs b/release-scripts/build-docs
index fa38d8d..53500d7 100755
--- a/release-scripts/build-docs
+++ b/release-scripts/build-docs
@@ -25,4 +25,7 @@ cd ../docs || exit 1
 mv manpages-3 manpages
 mv htmldocs/manpages-3 htmldocs/manpages
 
+cd $DOCSRCDIR || exit 1
+make clean
+
 exit


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-stable updated - release-3-3-0pre1-315-g6e1d92e

2008-09-18 Thread Karolin Seeger
The branch, v3-3-stable has been updated
   via  6e1d92e3b324a0759486f914a0e4b32be1142aee (commit)
  from  4b67ebea54ab1bb974aead28c5bf2d841013a61e (commit)

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


- Log -
commit 6e1d92e3b324a0759486f914a0e4b32be1142aee
Author: Karolin Seeger [EMAIL PROTECTED]
Date:   Thu Sep 18 15:52:06 2008 +0200

build-docs: Add 'make clean'.

Karolin
(cherry picked from commit cf40fb97239ed9a11e5750fde6e078233e567bba)

---

Summary of changes:
 release-scripts/build-docs |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/release-scripts/build-docs b/release-scripts/build-docs
index fa38d8d..53500d7 100755
--- a/release-scripts/build-docs
+++ b/release-scripts/build-docs
@@ -25,4 +25,7 @@ cd ../docs || exit 1
 mv manpages-3 manpages
 mv htmldocs/manpages-3 htmldocs/manpages
 
+cd $DOCSRCDIR || exit 1
+make clean
+
 exit


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3041-g6561897

2008-09-18 Thread Karolin Seeger
The branch, v3-2-test has been updated
   via  656189740d701246a8689e3348510715122bf148 (commit)
   via  5a4ffd53c49efb37a15f097438d4ee4487d1b616 (commit)
   via  fa66d3220ecd48b488f40e96492154ac7f130322 (commit)
  from  d553faff4ae9aa1fdc1bb716e901dcede7799f27 (commit)

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


- Log -
commit 656189740d701246a8689e3348510715122bf148
Author: Karolin Seeger [EMAIL PROTECTED]
Date:   Thu Sep 18 15:52:06 2008 +0200

build-docs: Add 'make clean'.

Karolin
(cherry picked from commit cf40fb97239ed9a11e5750fde6e078233e567bba)
(cherry picked from commit 6e1d92e3b324a0759486f914a0e4b32be1142aee)

commit 5a4ffd53c49efb37a15f097438d4ee4487d1b616
Author: Karolin Seeger [EMAIL PROTECTED]
Date:   Thu Sep 18 15:58:02 2008 +0200

WHATSNEW: Start WHATSNEW for 3.2.5.

Karolin

commit fa66d3220ecd48b488f40e96492154ac7f130322
Author: Karolin Seeger [EMAIL PROTECTED]
Date:   Thu Sep 18 15:56:02 2008 +0200

VERSION: Raise version number up to 3.2.5.

Karolin

---

Summary of changes:
 WHATSNEW.txt   |  107 ++-
 release-scripts/build-docs |3 +
 source/VERSION |2 +-
 3 files changed, 9 insertions(+), 103 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 87acb2e..51d88da 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,120 +1,23 @@
==
-   Release Notes for Samba 3.2.4
-   September 18, 2008
+   Release Notes for Samba 3.2.5
+
==
 
 
 This is a bug fix release of the Samba 3.2 series.
 
-Major bug fixes included in Samba 3.2.4 are:
-
-  o Fix Winbind crashes.
-  o Fix changing of machine account passwords.
-  o Fix non guest connections to shares when security = share
-is used.
-  o Fix file write times.
+Major bug fixes included in Samba 3.2.5 are:
 
+  o 
 
 ##
 Changes
 ###
 
-Changes since 3.2.3
+Changes since 3.2.4
 ---
 
 
-o   Michael Adam [EMAIL PROTECTED]
-* BUG 5590: Fix binary stripping on older OS.
-* BUG 5492: Fix RHEL SPEC file by removing libmsrpc stuff.
-* BUG 5507: Fix several issues in the RHEL SPEC file.
-* Fix linking of cifs.upcall when nscd_flush_cache() is found.
-
-
-o   Jeremy Allison [EMAIL PROTECTED]
-* BUG 5052: Allow inheritable permissions.
-* BUG 5697: Fix spinning of nmbd in reload_interfaces when only loopback
-  has an IPv4 address.
-* BUG 5698: Fix non guest connections to shares when security = share
-  is used.
-* BUG 5729: Explicitly allow -valid.
-* BUG 5745: Fix Kerberos authentication with (lib)smbclient.
-* BUG 5751: Fix showing of ACLs on DFS in (lib)smbclient.
-* BUG 5761: Fix opening of mangled directory name (resulted
-  'is a stream name').
-* Fix the wcache_invalidate_samlogon calls.
-* Add st_birthtime and friends for accurate create times on *BSD and 
MacOSX.
-* Clarify usage of force create mode.
-* Write times code update.
-
-
-o   Gerald (Jerry) Carter [EMAIL PROTECTED]
-* Fix Winbind crash.
-* idmap_ad: Fix a segfault when calling nss_get_info() with a NULL ads
-  structure.
-
-
-o   Steven Danneman [EMAIL PROTECTED]
-* Fix build warnings.
-* Cleanup of DC enumeration in get_dcs().
-
-
-o   Günther Deschner [EMAIL PROTECTED]
-* BUG 5710: Fix changing of machine account passwords.
-* Fix several build warnings.
-* Fix invalid sid copy (hit when enumerating sibling domains) in Winbind.
-
-
-o   James Ding [EMAIL PROTECTED]
-* BUG 5736: Fix Winbind crash bug with trusted domains.
-
-
-o   Ephi Dror [EMAIL PROTECTED]
-* Correct the netsamlogon_clear_cached_user function.
-
-
-o   Jeff Layton [EMAIL PROTECTED]
-* Fix handling of MSKRB5 OID in cifs.upcall.
-* Fix build warnings in cifs.upcall.
-* Change default install location of cifs.upcall to EPREFIX/sbin.
-* Enable building of cifs.upcall by default on Linux.
-
-
-o   Volker Lendecke [EMAIL PROTECTED]
-* BUG 5707: Do proper error handling if the socket is closed.
-* Fix calculation of useable_space for trans2 and nttrans replies.
-* Fix Coverity ID 587.
-* Add mapping of generic bits when setting an NFSv4 ACL.
-
-
-o   Stefan Metzmacher [EMAIL PROTECTED]
-* Some write time fixes.
-
-
-o   David Leonard [EMAIL PROTECTED]
-* BUG 4516: No IPv6 on Solaris 2.6.
-
-
-o   Simo Sorce [EMAIL PROTECTED]
-* BUG 5571: Fix enumeration of nested group memberships in Winbind.
-  This affected only setups using security = ads.
-
-
-o   Timur [EMAIL PROTECTED]
-* Fix cut and paste error in 

[SCM] Samba Shared Repository - branch v3-2-stable updated - release-3-2-4-3-g4f9f592

2008-09-18 Thread Karolin Seeger
The branch, v3-2-stable has been updated
   via  4f9f592ab792e36e870bbeba96a1fb8f0ee9efda (commit)
   via  5fa999c79ef7f68cd98805365168669e3edf102a (commit)
   via  f9f2a78144813abfae75d8031e99d35e7b2ac9f3 (commit)
  from  d89ba32c49049ae105b02b2cea578605a13a7afb (commit)

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


- Log -
commit 4f9f592ab792e36e870bbeba96a1fb8f0ee9efda
Author: Karolin Seeger [EMAIL PROTECTED]
Date:   Thu Sep 18 15:52:06 2008 +0200

build-docs: Add 'make clean'.

Karolin
(cherry picked from commit cf40fb97239ed9a11e5750fde6e078233e567bba)
(cherry picked from commit 6e1d92e3b324a0759486f914a0e4b32be1142aee)
(cherry picked from commit 656189740d701246a8689e3348510715122bf148)

commit 5fa999c79ef7f68cd98805365168669e3edf102a
Author: Karolin Seeger [EMAIL PROTECTED]
Date:   Thu Sep 18 15:58:02 2008 +0200

WHATSNEW: Start WHATSNEW for 3.2.5.

Karolin

commit f9f2a78144813abfae75d8031e99d35e7b2ac9f3
Author: Karolin Seeger [EMAIL PROTECTED]
Date:   Thu Sep 18 16:02:19 2008 +0200

VERSION: Raise version number up to 3.2.5.

Karolin

---

Summary of changes:
 WHATSNEW.txt   |  106 ++-
 release-scripts/build-docs |3 +
 source/VERSION |2 +-
 3 files changed, 9 insertions(+), 102 deletions(-)


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index 2a211ec..51d88da 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -1,119 +1,23 @@
==
-   Release Notes for Samba 3.2.4
-   September 18, 2008
+   Release Notes for Samba 3.2.5
+
==
 
 
 This is a bug fix release of the Samba 3.2 series.
 
-Major bug fixes included in Samba 3.2.4 are:
-
-  o Fix Winbind crashes.
-  o Fix changing of machine account passwords.
-  o Fix non guest connections to shares when security = share
-is used.
-  o Fix file write times.
+Major bug fixes included in Samba 3.2.5 are:
 
+  o 
 
 ##
 Changes
 ###
 
-Changes since 3.2.3
+Changes since 3.2.4
 ---
 
 
-o   Michael Adam [EMAIL PROTECTED]
-* BUG 5590: Fix binary stripping on older OS.
-* BUG 5492: Fix RHEL SPEC file by removing libmsrpc stuff.
-* BUG 5507: Fix several issues in the RHEL SPEC file.
-* Fix linking of cifs.upcall when nscd_flush_cache() is found.
-
-
-o   Jeremy Allison [EMAIL PROTECTED]
-* BUG 5052: Allow inheritable permissions.
-* BUG 5697: Fix spinning of nmbd in reload_interfaces when only loopback
-  has an IPv4 address.
-* BUG 5698: Fix non guest connections to shares when security = share
-  is used.
-* BUG 5729: Explicitly allow -valid.
-* BUG 5745: Fix Kerberos authentication with (lib)smbclient.
-* BUG 5751: Fix showing of ACLs on DFS in (lib)smbclient.
-* BUG 5761: Fix opening of mangled directory name (resulted
-  'is a stream name').
-* Fix the wcache_invalidate_samlogon calls.
-* Add st_birthtime and friends for accurate create times on *BSD and 
MacOSX.
-* Clarify usage of force create mode.
-* Write times code update.
-
-
-o   Gerald (Jerry) Carter [EMAIL PROTECTED]
-* Fix Winbind crash.
-* idmap_ad: Fix a segfault when calling nss_get_info() with a NULL ads
-  structure.
-
-
-o   Steven Danneman [EMAIL PROTECTED]
-* Fix build warnings.
-* Cleanup of DC enumeration in get_dcs().
-
-
-o   Günther Deschner [EMAIL PROTECTED]
-* BUG 5710: Fix changing of machine account passwords.
-* Fix several build warnings.
-* Fix invalid sid copy (hit when enumerating sibling domains) in Winbind.
-
-
-o   James Ding [EMAIL PROTECTED]
-* BUG 5736: Fix Winbind crash bug with trusted domains.
-
-
-o   Ephi Dror [EMAIL PROTECTED]
-* Correct the netsamlogon_clear_cached_user function.
-
-
-o   Jeff Layton [EMAIL PROTECTED]
-* Fix handling of MSKRB5 OID in cifs.upcall.
-* Fix build warnings in cifs.upcall.
-* Change default install location of cifs.upcall to EPREFIX/sbin.
-* Enable building of cifs.upcall by default on Linux.
-
-
-o   Volker Lendecke [EMAIL PROTECTED]
-* BUG 5707: Do proper error handling if the socket is closed.
-* Fix calculation of useable_space for trans2 and nttrans replies.
-* Fix Coverity ID 587.
-* Add mapping of generic bits when setting an NFSv4 ACL.
-
-
-o   Stefan Metzmacher [EMAIL PROTECTED]
-* Some write time fixes.
-
-
-o   David Leonard [EMAIL PROTECTED]
-* BUG 4516: No IPv6 on Solaris 2.6.
-
-
-o   Simo Sorce [EMAIL PROTECTED]
-* BUG 5571: Fix group memeberships in Winbind.
-
-
-o   Timur [EMAIL PROTECTED]
-* Fix cut and paste error 

[SCM] Samba Shared Repository - branch master updated - b4bd93776cf1cdd3f11856876688bdbcc261bdb9

2008-09-18 Thread Jelmer Vernooij
The branch, master has been updated
   via  b4bd93776cf1cdd3f11856876688bdbcc261bdb9 (commit)
   via  a61c9ded4060e9d83c58bee5b8390ff31e4aa108 (commit)
  from  b72d29724d5dec8133cb2afc039ed8c6fb6f5227 (commit)

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


- Log -
commit b4bd93776cf1cdd3f11856876688bdbcc261bdb9
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu Sep 18 16:06:45 2008 +0200

List more delaywrite tests as known failing against Samba 4, per Metze's 
request.

commit a61c9ded4060e9d83c58bee5b8390ff31e4aa108
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu Sep 18 16:05:46 2008 +0200

Properly report why a test didn't succeed (required for use with known
failures).

---

Summary of changes:
 source4/samba4-knownfail   |6 +
 source4/torture/basic/delaywrite.c |  208 
 2 files changed, 97 insertions(+), 117 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/samba4-knownfail b/source4/samba4-knownfail
index ded7922..f99db4f 100644
--- a/source4/samba4-knownfail
+++ b/source4/samba4-knownfail
@@ -44,3 +44,9 @@ samba4.winbind.struct.*.SHOW_SEQUENCE # Not yet working 
in winbind
 samba4.winbind.struct.*.GETPWENT  # Not yet working in winbind
 samba4.winbind.struct.*.SETPWENT  # Not yet working in winbind
 samba4.winbind.struct.*.LOOKUP_NAME_SID   # Not yet working in winbind
+^samba4.*base.delaywrite.*update of write time and SMBwrite truncate$
+^samba4.*base.delaywrite.*update of write time and SMBwrite truncate expand$
+^samba4.*base.delaywrite.*delayed update of write time 3a$
+^samba4.*base.delaywrite.*delayed update of write time 3c$
+^samba4.*base.delaywrite.*update of write time using SET_END_OF_FILE$
+^samba4.*base.delaywrite.*update of write time using SET_ALLOCATION_SIZE$
diff --git a/source4/torture/basic/delaywrite.c 
b/source4/torture/basic/delaywrite.c
index af42beb..61678f4 100644
--- a/source4/torture/basic/delaywrite.c
+++ b/source4/torture/basic/delaywrite.c
@@ -55,7 +55,7 @@ static bool test_delayed_write_update(struct torture_context 
*tctx, struct smbcl
 
fnum1 = smbcli_open(cli-tree, fname, O_RDWR|O_CREAT, DENY_NONE);
if (fnum1 == -1) {
-   torture_comment(tctx, Failed to open %s\n, fname);
+   torture_result(tctx, TORTURE_FAIL, Failed to open %s, fname);
return false;
}
 
@@ -65,10 +65,7 @@ static bool test_delayed_write_update(struct torture_context 
*tctx, struct smbcl
 
status = smb_raw_fileinfo(cli-tree, tctx, finfo1);
 
-   if (!NT_STATUS_IS_OK(status)) {
-   DEBUG(0, (fileinfo failed: %s\n, nt_errstr(status)));
-   return false;
-   }
+   torture_assert_ntstatus_ok(tctx, status, fileinfo failed);

torture_comment(tctx, Initial write time %s\n, 
   nt_time_string(tctx, finfo1.basic_info.out.write_time));
@@ -80,8 +77,9 @@ static bool test_delayed_write_update(struct torture_context 
*tctx, struct smbcl
written =  smbcli_write(cli-tree, fnum1, 0, x, 0, 1);
 
if (written != 1) {
-   torture_comment(tctx, write failed - wrote %d bytes (%s)\n, 
-  (int)written, __location__);
+   torture_result(tctx, TORTURE_FAIL, 
+  write failed - wrote %d bytes 
(%s)\n, 
+  (int)written, __location__);
return false;
}
 
@@ -117,7 +115,8 @@ static bool test_delayed_write_update(struct 
torture_context *tctx, struct smbcl
}

if (finfo1.basic_info.out.write_time == 
finfo2.basic_info.out.write_time) {
-   torture_comment(tctx, Server did not update write time 
(wrong!)\n);
+   torture_result(tctx, TORTURE_FAIL, 
+  Server did not update write time 
(wrong!));
ret = false;
}
 
@@ -154,7 +153,7 @@ static bool test_delayed_write_update1(struct 
torture_context *tctx, struct smbc
 
fnum1 = smbcli_open(cli-tree, fname, O_RDWR|O_CREAT, DENY_NONE);
if (fnum1 == -1) {
-   torture_comment(tctx, Failed to open %s\n, fname);
+   torture_result(tctx, TORTURE_FAIL, Failed to open %s, fname);
return false;
}
 
@@ -174,10 +173,7 @@ static bool test_delayed_write_update1(struct 
torture_context *tctx, struct smbc
 
status = smb_raw_fileinfo(cli-tree, tctx, finfo1);
 
-   if (!NT_STATUS_IS_OK(status)) {
-   DEBUG(0, (fileinfo failed: %s\n, nt_errstr(status)));
-   return false;
-   }
+   torture_assert_ntstatus_ok(tctx, status, fileinfo failed);
 
torture_comment(tctx, Initial write time %s\n, 
   nt_time_string(tctx, 

[SCM] Samba Shared Repository - branch master updated - a45782a4cbba2b92c04d3ac9dba85db8c692145e

2008-09-18 Thread Jelmer Vernooij
The branch, master has been updated
   via  a45782a4cbba2b92c04d3ac9dba85db8c692145e (commit)
  from  b4bd93776cf1cdd3f11856876688bdbcc261bdb9 (commit)

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


- Log -
commit a45782a4cbba2b92c04d3ac9dba85db8c692145e
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu Sep 18 16:27:38 2008 +0200

Update pdbsql maintainers.

---

Summary of changes:
 MAINTAINERS |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/MAINTAINERS b/MAINTAINERS
index 2b09221..f6824a1 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -26,8 +26,8 @@ libmsrpc  Chris Nichols [EMAIL PROTECTED]
 
 libsmbclient   Derrell Lipman [EMAIL PROTECTED]
 
-pdb_*sql   Wilco Baan Hofman [EMAIL PROTECTED]
-   Florian Effenberger [EMAIL PROTECTED]
+pdb_*sql   Collen Blijenberg [EMAIL PROTECTED]
+   Herwin Weststrate [EMAIL PROTECTED]
 
http://pdbsql.sourceforge.net/
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - a0e5f9194a8214e6bc7f7e56b82575300401ffef

2008-09-18 Thread Jelmer Vernooij
The branch, master has been updated
   via  a0e5f9194a8214e6bc7f7e56b82575300401ffef (commit)
  from  a45782a4cbba2b92c04d3ac9dba85db8c692145e (commit)

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


- Log -
commit a0e5f9194a8214e6bc7f7e56b82575300401ffef
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu Sep 18 16:56:11 2008 +0200

Import ndr_syntax_id_equal from Samba 3.

---

Summary of changes:
 source4/librpc/ndr/libndr.h   |1 +
 source4/librpc/ndr/ndr_misc.c |6 ++
 2 files changed, 7 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/librpc/ndr/libndr.h b/source4/librpc/ndr/libndr.h
index b719be2..3f4de78 100644
--- a/source4/librpc/ndr/libndr.h
+++ b/source4/librpc/ndr/libndr.h
@@ -342,6 +342,7 @@ void ndr_print_dom_sid0(struct ndr_print *ndr, const char 
*name, const struct do
 size_t ndr_size_dom_sid0(const struct dom_sid *sid, int flags);
 void ndr_print_ipv4_addr(struct ndr_print *ndr, const char *name, const struct 
in_addr *_ip);
 void ndr_print_GUID(struct ndr_print *ndr, const char *name, const struct GUID 
*guid);
+bool ndr_syntax_id_equal(const struct ndr_syntax_id *i1, const struct 
ndr_syntax_id *i2); 
 enum ndr_err_code ndr_push_struct_blob(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, 
struct smb_iconv_convenience *iconv_convenience, const void *p, 
ndr_push_flags_fn_t fn);
 enum ndr_err_code ndr_push_union_blob(DATA_BLOB *blob, TALLOC_CTX *mem_ctx, 
struct smb_iconv_convenience *iconv_convenience, void *p, uint32_t level, 
ndr_push_flags_fn_t fn);
 size_t ndr_size_struct(const void *p, int flags, ndr_push_flags_fn_t push);
diff --git a/source4/librpc/ndr/ndr_misc.c b/source4/librpc/ndr/ndr_misc.c
index be7dab9..2e5ecba 100644
--- a/source4/librpc/ndr/ndr_misc.c
+++ b/source4/librpc/ndr/ndr_misc.c
@@ -38,3 +38,9 @@ _PUBLIC_ void ndr_print_GUID(struct ndr_print *ndr, const 
char *name, const stru
ndr-print(ndr, %-25s: %s, name, GUID_string(ndr, guid));
 }
 
+bool ndr_syntax_id_equal(const struct ndr_syntax_id *i1,
+const struct ndr_syntax_id *i2)
+{
+   return GUID_equal(i1-uuid, i2-uuid)
+(i1-if_version == i2-if_version);
+}


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-stable updated - release-3-3-0pre1-316-g5a9a190

2008-09-18 Thread Karolin Seeger
The branch, v3-3-stable has been updated
   via  5a9a190a5588b0cf938bc5c9659b7704d18cd4a3 (commit)
  from  6e1d92e3b324a0759486f914a0e4b32be1142aee (commit)

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


- Log -
commit 5a9a190a5588b0cf938bc5c9659b7704d18cd4a3
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Fri Sep 5 14:01:45 2008 +0200

build: don't install the cifs.upcall binary twice.

Guenther
(cherry picked from commit 1f44b4aaa5f700827ee2ab272ae4b59e559b094b)
(cherry picked from commit 020c03bff844ef976dd786a755c4d682bf161a3d)

---

Summary of changes:
 source/Makefile.in |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/Makefile.in b/source/Makefile.in
index beb14ee..704d3e5 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -178,7 +178,7 @@ PATH_FLAGS = -DSMB_PASSWD_FILE=\$(SMB_PASSWD_FILE)\ \
 
 # Note that all executable programs now provide for an optional executable 
suffix.
 
-SBIN_PROGS = bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ @SWAT_SBIN_TARGETS@ 
@EXTRA_SBIN_PROGS@ @CIFSUPCALL_PROGS@
+SBIN_PROGS = bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ @SWAT_SBIN_TARGETS@ 
@EXTRA_SBIN_PROGS@
 
 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3042-gc83295d

2008-09-18 Thread Karolin Seeger
The branch, v3-2-test has been updated
   via  c83295d3b575be80a432c4716be62cd63eb3bdef (commit)
  from  656189740d701246a8689e3348510715122bf148 (commit)

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


- Log -
commit c83295d3b575be80a432c4716be62cd63eb3bdef
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Fri Sep 5 14:01:45 2008 +0200

build: don't install the cifs.upcall binary twice.

Guenther
(cherry picked from commit 1f44b4aaa5f700827ee2ab272ae4b59e559b094b)
(cherry picked from commit 020c03bff844ef976dd786a755c4d682bf161a3d)
(cherry picked from commit 5a9a190a5588b0cf938bc5c9659b7704d18cd4a3)

---

Summary of changes:
 source/Makefile.in |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/Makefile.in b/source/Makefile.in
index 12c62e1..cf405fe 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -175,7 +175,7 @@ PATH_FLAGS = -DSMB_PASSWD_FILE=\$(SMB_PASSWD_FILE)\ \
 
 # Note that all executable programs now provide for an optional executable 
suffix.
 
-SBIN_PROGS = bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ @SWAT_SBIN_TARGETS@ 
@EXTRA_SBIN_PROGS@ @CIFSUPCALL_PROGS@
+SBIN_PROGS = bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ @SWAT_SBIN_TARGETS@ 
@EXTRA_SBIN_PROGS@
 
 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-stable updated - release-3-2-4-4-gcfc8dc2

2008-09-18 Thread Karolin Seeger
The branch, v3-2-stable has been updated
   via  cfc8dc236dda869dbe4141bef80f6965ce76188d (commit)
  from  4f9f592ab792e36e870bbeba96a1fb8f0ee9efda (commit)

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


- Log -
commit cfc8dc236dda869dbe4141bef80f6965ce76188d
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Fri Sep 5 14:01:45 2008 +0200

build: don't install the cifs.upcall binary twice.

Guenther
(cherry picked from commit 1f44b4aaa5f700827ee2ab272ae4b59e559b094b)
(cherry picked from commit 020c03bff844ef976dd786a755c4d682bf161a3d)
(cherry picked from commit 5a9a190a5588b0cf938bc5c9659b7704d18cd4a3)
(cherry picked from commit c83295d3b575be80a432c4716be62cd63eb3bdef)

---

Summary of changes:
 source/Makefile.in |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/Makefile.in b/source/Makefile.in
index 12c62e1..cf405fe 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -175,7 +175,7 @@ PATH_FLAGS = -DSMB_PASSWD_FILE=\$(SMB_PASSWD_FILE)\ \
 
 # Note that all executable programs now provide for an optional executable 
suffix.
 
-SBIN_PROGS = bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ @SWAT_SBIN_TARGETS@ 
@EXTRA_SBIN_PROGS@ @CIFSUPCALL_PROGS@
+SBIN_PROGS = bin/[EMAIL PROTECTED]@ bin/[EMAIL PROTECTED]@ @SWAT_SBIN_TARGETS@ 
@EXTRA_SBIN_PROGS@
 
 ROOT_SBIN_PROGS = @CIFSMOUNT_PROGS@
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - 5b827dfd8b20e4c268a594e733765bef147020fb

2008-09-18 Thread Stefan Metzmacher
The branch, master has been updated
   via  5b827dfd8b20e4c268a594e733765bef147020fb (commit)
  from  a0e5f9194a8214e6bc7f7e56b82575300401ffef (commit)

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


- Log -
commit 5b827dfd8b20e4c268a594e733765bef147020fb
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Thu Sep 18 17:38:47 2008 +0200

s4:lib/com: fix the build with automatic dependecies

metze

---

Summary of changes:
 source4/lib/com/main.c   |3 +--
 source4/lib/com/tables.c |2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/lib/com/main.c b/source4/lib/com/main.c
index 3e4127f..882b479 100644
--- a/source4/lib/com/main.c
+++ b/source4/lib/com/main.c
@@ -19,11 +19,10 @@
 */
 
 #include includes.h
-#include dlinklist.h
+#include lib/util/dlinklist.h
 #include lib/com/com.h
 #include lib/events/events.h
 #include librpc/gen_ndr/com_dcom.h
-#include build.h
 
 WERROR com_init_ctx(struct com_context **ctx, struct event_context *event_ctx)
 {
diff --git a/source4/lib/com/tables.c b/source4/lib/com/tables.c
index d9989ec..11bf95c 100644
--- a/source4/lib/com/tables.c
+++ b/source4/lib/com/tables.c
@@ -19,7 +19,7 @@
 */
 
 #include includes.h
-#include dlinklist.h
+#include lib/util/dlinklist.h
 #include lib/com/com.h
 #include librpc/gen_ndr/ndr_misc.h
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - fc7050e54c69919d754ca0adf3f2f741a501fec4

2008-09-18 Thread Jelmer Vernooij
The branch, master has been updated
   via  fc7050e54c69919d754ca0adf3f2f741a501fec4 (commit)
   via  900768067831f773b7cdeec03e095956bccb961e (commit)
   via  cb16488cb1bc29657a024a74c21b33445cde87b0 (commit)
   via  75b59c9b31d1a69ab58770d8741e15a894a1cad3 (commit)
   via  e9429a2abe06c20e5e4582febe8e6c0a20756e48 (commit)
  from  5b827dfd8b20e4c268a594e733765bef147020fb (commit)

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


- Log -
commit fc7050e54c69919d754ca0adf3f2f741a501fec4
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu Sep 18 19:58:47 2008 +0200

Add header.

commit 900768067831f773b7cdeec03e095956bccb961e
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu Sep 18 19:56:25 2008 +0200

Remove obsolete script.

commit cb16488cb1bc29657a024a74c21b33445cde87b0
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu Sep 18 19:18:13 2008 +0200

Fix path, typo.

commit 75b59c9b31d1a69ab58770d8741e15a894a1cad3
Merge: e9429a2abe06c20e5e4582febe8e6c0a20756e48 
5b827dfd8b20e4c268a594e733765bef147020fb
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu Sep 18 18:41:23 2008 +0200

Merge branch 'master' of ssh://git.samba.org/data/git/samba

commit e9429a2abe06c20e5e4582febe8e6c0a20756e48
Author: Matthias Dieter Wallnoefer [EMAIL PROTECTED]
Date:   Thu Sep 18 18:40:47 2008 +0200

Prevent prefix=/usr being used without --with-fhs.

---

Summary of changes:
 README.Coding  |2 +-
 prog_guide4.txt|4 +-
 source4/build/m4/check_path.m4 |5 +
 source4/script/build_smb_interfaces.pl |  161 
 source4/script/harness2subunit.pl  |4 +
 5 files changed, 12 insertions(+), 164 deletions(-)
 delete mode 100755 source4/script/build_smb_interfaces.pl


Changeset truncated at 500 lines:

diff --git a/README.Coding b/README.Coding
index 52ecf0e..8063ae8 100644
--- a/README.Coding
+++ b/README.Coding
@@ -173,7 +173,7 @@ Goto
 
 
 While many people have been academically taught that goto's are fundamentally
-evil, then can greatly enhance readability and reduce memory leaks when used
+evil, they can greatly enhance readability and reduce memory leaks when used
 as the single exit point from a function.  But in no Samba world what so ever 
 is a goto outside of a function or block of code a good idea.
 
diff --git a/prog_guide4.txt b/prog_guide4.txt
index bba58b3..2f5be5f 100644
--- a/prog_guide4.txt
+++ b/prog_guide4.txt
@@ -194,7 +194,7 @@ in the data and bss columns in size anyway (it will be 
included in
 How to use talloc
 -
 
-Please see the separate document, source/lib/talloc/talloc_guide.txt
+Please see the separate document, lib/talloc/talloc_guide.txt
 You _must_ read this if you want to program in Samba4.
 
 
@@ -646,7 +646,7 @@ file cannot be deleted until you reboot
 trans2 qpathinfo doesn't see the delete_pending flag correctly, but
 qfileinfo does!
 
-get rid of pstring, fstring, strtok
+get rid of strtok
 
 add programming documentation note about lp_set_cmdline()
 
diff --git a/source4/build/m4/check_path.m4 b/source4/build/m4/check_path.m4
index c45a803..51d5daa 100644
--- a/source4/build/m4/check_path.m4
+++ b/source4/build/m4/check_path.m4
@@ -23,6 +23,11 @@ winbindd_socket_dir=${localstatedir}/run/winbindd
 winbindd_privileged_socket_dir=${localstatedir}/lib/winbindd_privileged
 ntp_signd_socket_dir=${localstatedir}/run/ntp_signd
 
+# Check to prevent installing directly under /usr without the FHS
+AS_IF([test ${prefix} == /usr],[
+AC_MSG_ERROR([Don't install directly under /usr without using the FHS 
option (--with-fhs). This could lead to file loss!])
+])
+
 AC_ARG_WITH(fhs, 
 [AS_HELP_STRING([--with-fhs],[Use FHS-compliant paths (default=no)])],
 lockdir=${localstatedir}/lib/samba
diff --git a/source4/script/build_smb_interfaces.pl 
b/source4/script/build_smb_interfaces.pl
deleted file mode 100755
index 5fac94c..000
--- a/source4/script/build_smb_interfaces.pl
+++ /dev/null
@@ -1,161 +0,0 @@
-#!/usr/bin/perl
-#
-# Create ejs interfaces for structures in a C header file
-#
-
-use File::Basename;
-use Data::Dumper;
-
-#
-# Generate parse tree for header file
-#
-
-my $file = shift;
-require smb_interfaces;
-my $parser = new smb_interfaces;
-$header = $parser-parse($file);
-
-#
-# Make second pass over tree to make it easier to process.
-#
-
-sub flatten_structs($) {
-  my $obj = shift;
-  my $s = { %$obj };
-
-  # Map NAME, STRUCT_NAME and UNION_NAME elements into a more likeable
-  # property.
-
-  if (defined($obj-{STRUCT_NAME}) or defined($obj-{UNION_NAME})) {
-
-$s-{TYPE_DEFINED} = defined($obj-{STRUCT_NAME}) ? $obj-{STRUCT_NAME} 
-  : $obj-{UNION_NAME};
-
-delete $s-{STRUCT_NAME};
-delete $s-{UNION_NAME};
-  }
-
-  # Create a new list of structure fields 

[SCM] Samba Shared Repository - branch master updated - 6f6e42ce60e3f9adfebffa7db04eafe717942c1b

2008-09-18 Thread Jelmer Vernooij
The branch, master has been updated
   via  6f6e42ce60e3f9adfebffa7db04eafe717942c1b (commit)
   via  ec80fe4b214e311952ab67b3fd8b1cb1551c3b5c (commit)
  from  fc7050e54c69919d754ca0adf3f2f741a501fec4 (commit)

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


- Log -
commit 6f6e42ce60e3f9adfebffa7db04eafe717942c1b
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu Sep 18 23:55:50 2008 +0200

Generate with 1.3.36.

commit ec80fe4b214e311952ab67b3fd8b1cb1551c3b5c
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu Sep 18 23:54:53 2008 +0200

Implement __repr__ for Sid.

---

Summary of changes:
 source4/auth/auth.py|2 +-
 source4/auth/auth_wrap.c|   14 +++-
 source4/auth/credentials/credentials.py |2 +-
 source4/auth/credentials/credentials_wrap.c |   47 +++--
 source4/lib/events/events.i |2 +-
 source4/lib/events/events.py|2 +-
 source4/lib/events/events_wrap.c|   17 +++--
 source4/lib/ldb/ldb_tdb/ldb_tdb_wrap.c  |4 +
 source4/lib/registry/registry.i |2 +-
 source4/libcli/security/security.i  |8 ++-
 source4/libcli/security/security.py |5 +-
 source4/libcli/security/security_wrap.c |   62 +
 source4/libcli/swig/libcli_smb.i|2 +-
 source4/libcli/swig/libcli_smb.py   |2 +-
 source4/libcli/swig/libcli_smb_wrap.c   |   14 +++-
 source4/param/param.py  |2 +-
 source4/param/param_wrap.c  |  100 ++-
 source4/scripting/python/config.m4  |2 +-
 source4/scripting/python/misc.i |2 +-
 19 files changed, 164 insertions(+), 127 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/auth/auth.py b/source4/auth/auth.py
index 226175a..1e5d688 100644
--- a/source4/auth/auth.py
+++ b/source4/auth/auth.py
@@ -1,5 +1,5 @@
 # This file was automatically generated by SWIG (http://www.swig.org).
-# Version 1.3.35
+# Version 1.3.36
 #
 # Don't modify this file, modify the SWIG interface instead.
 
diff --git a/source4/auth/auth_wrap.c b/source4/auth/auth_wrap.c
index dea76ef..c514821 100644
--- a/source4/auth/auth_wrap.c
+++ b/source4/auth/auth_wrap.c
@@ -1,6 +1,6 @@
 /* 
  * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.35
+ * Version 1.3.36
  * 
  * This file is not intended to be easily readable and contains a number of 
  * coding conventions designed to improve portability and efficiency. Do not 
make
@@ -52,6 +52,12 @@
 # endif
 #endif
 
+#ifndef SWIG_MSC_UNSUPPRESS_4505
+# if defined(_MSC_VER)
+#   pragma warning(disable : 4505) /* unreferenced local function has been 
removed */
+# endif 
+#endif
+
 #ifndef SWIGUNUSEDPARM
 # ifdef __cplusplus
 #   define SWIGUNUSEDPARM(p)
@@ -2523,7 +2529,7 @@ static swig_module_info swig_module = {swig_types, 16, 0, 
0, 0, 0};
 
 #define SWIG_name_auth
 
-#define SWIGVERSION 0x010335 
+#define SWIGVERSION 0x010336 
 #define SWIG_VERSION SWIGVERSION
 
 
@@ -2548,13 +2554,13 @@ SWIGINTERN PyObject *_wrap_system_session(PyObject 
*SWIGUNUSEDPARM(self), PyObje
   PyObject *resultobj = 0;
   TALLOC_CTX *arg1 = (TALLOC_CTX *) 0 ;
   struct loadparm_context *arg2 = (struct loadparm_context *) 0 ;
-  struct auth_session_info *result = 0 ;
   void *argp2 = 0 ;
   int res2 = 0 ;
   PyObject * obj0 = 0 ;
   char *  kwnames[] = {
 (char *) lp_ctx, NULL 
   };
+  struct auth_session_info *result = 0 ;
   
   arg2 = loadparm_init(NULL);
   arg1 = NULL;
@@ -2578,13 +2584,13 @@ SWIGINTERN PyObject *_wrap_system_session_anon(PyObject 
*SWIGUNUSEDPARM(self), P
   PyObject *resultobj = 0;
   TALLOC_CTX *arg1 = (TALLOC_CTX *) 0 ;
   struct loadparm_context *arg2 = (struct loadparm_context *) 0 ;
-  struct auth_session_info *result = 0 ;
   void *argp2 = 0 ;
   int res2 = 0 ;
   PyObject * obj0 = 0 ;
   char *  kwnames[] = {
 (char *) lp_ctx, NULL 
   };
+  struct auth_session_info *result = 0 ;
   
   arg2 = loadparm_init(NULL);
   arg1 = NULL;
diff --git a/source4/auth/credentials/credentials.py 
b/source4/auth/credentials/credentials.py
index 2cd56c3..fe21dd2 100644
--- a/source4/auth/credentials/credentials.py
+++ b/source4/auth/credentials/credentials.py
@@ -1,5 +1,5 @@
 # This file was automatically generated by SWIG (http://www.swig.org).
-# Version 1.3.35
+# Version 1.3.36
 #
 # Don't modify this file, modify the SWIG interface instead.
 
diff --git a/source4/auth/credentials/credentials_wrap.c 
b/source4/auth/credentials/credentials_wrap.c
index 81ba426..260451d 100644
--- a/source4/auth/credentials/credentials_wrap.c
+++ b/source4/auth/credentials/credentials_wrap.c
@@ -1,6 +1,6 @@
 /* 

[SCM] Samba Shared Repository - branch master updated - ba5fe7122586d8b382bf78f1e1cb5dbe4293c27b

2008-09-18 Thread Jelmer Vernooij
The branch, master has been updated
   via  ba5fe7122586d8b382bf78f1e1cb5dbe4293c27b (commit)
  from  6f6e42ce60e3f9adfebffa7db04eafe717942c1b (commit)

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


- Log -
commit ba5fe7122586d8b382bf78f1e1cb5dbe4293c27b
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Fri Sep 19 00:05:34 2008 +0200

Add test for Sid.__repr__.

---

Summary of changes:
 source4/libcli/security/tests/bindings.py |4 
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/libcli/security/tests/bindings.py 
b/source4/libcli/security/tests/bindings.py
index 82ce7ae..b539de8 100644
--- a/source4/libcli/security/tests/bindings.py
+++ b/source4/libcli/security/tests/bindings.py
@@ -65,6 +65,10 @@ class DomSidTests(unittest.TestCase):
 sid = security.random_sid()
 self.assertTrue(str(sid).startswith(S-1-5-21-))
 
+def test_repr(self):
+sid = security.random_sid()
+self.assertTrue(repr(sid).startswith(Sid('S-1-5-21-))
+
 
 class PrivilegeTests(unittest.TestCase):
 def test_privilege_name(self):


-- 
Samba Shared Repository


Build status as of Fri Sep 19 00:00:03 2008

2008-09-18 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2008-09-18 
00:00:27.0 +
+++ /home/build/master/cache/broken_results.txt 2008-09-19 00:00:36.0 
+
@@ -1,4 +1,4 @@
-Build status as of Thu Sep 18 00:00:02 2008
+Build status as of Fri Sep 19 00:00:03 2008
 
 Build counts:
 Tree Total  Broken Panic 
@@ -6,18 +6,18 @@
 ccache   34 10 0 
 ctdb 0  0  0 
 distcc   1  0  0 
-ldb  33 32 0 
-libreplace   32 12 0 
+ldb  34 32 0 
+libreplace   33 12 0 
 lorikeet-heimdal 30 20 0 
 pidl 21 19 0 
 ppp  15 0  0 
 rsync34 11 0 
 samba-docs   0  0  0 
-samba-gtk7  6  0 
-samba_3_X_devel 29 25 0 
-samba_3_X_test 30 16 0 
+samba-gtk7  7  0 
+samba_3_X_devel 29 17 0 
+samba_3_X_test 30 15 0 
 samba_4_0_test 33 30 1 
-smb-build31 6  0 
+smb-build32 6  0 
 talloc   34 32 0 
 tdb  31 12 0 
 


[SCM] Samba Shared Repository - branch master updated - 495758a73e125e59921092c893c6e32ba7091fe1

2008-09-18 Thread Jelmer Vernooij
The branch, master has been updated
   via  495758a73e125e59921092c893c6e32ba7091fe1 (commit)
  from  ba5fe7122586d8b382bf78f1e1cb5dbe4293c27b (commit)

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


- Log -
commit 495758a73e125e59921092c893c6e32ba7091fe1
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Fri Sep 19 02:27:40 2008 +0200

Fix COM compilation, add framework for COM python module.

---

Summary of changes:
 source4/lib/com/com.h |2 +
 source4/lib/com/config.mk |9 +-
 source4/lib/com/main.c|   22 +-
 source4/lib/com/pycom.c   |   70 +
 source4/lib/com/rot.c |1 +
 5 files changed, 82 insertions(+), 22 deletions(-)
 create mode 100644 source4/lib/com/pycom.c


Changeset truncated at 500 lines:

diff --git a/source4/lib/com/com.h b/source4/lib/com/com.h
index 2074bd1..5d594ad 100644
--- a/source4/lib/com/com.h
+++ b/source4/lib/com/com.h
@@ -47,4 +47,6 @@ WERROR com_create_object(struct com_context *ctx, struct GUID 
*clsid, int num_if
 WERROR com_get_class_object(struct com_context *ctx, struct GUID *clsid, 
struct GUID *iid, struct IUnknown **ip);
 NTSTATUS com_init(void);
 
+typedef struct IUnknown *(*get_class_object_function) (const struct GUID 
*clsid);
+
 #endif /* __SAMBA_COM_H__ */
diff --git a/source4/lib/com/config.mk b/source4/lib/com/config.mk
index 5c8e98d..c5c5a35 100644
--- a/source4/lib/com/config.mk
+++ b/source4/lib/com/config.mk
@@ -1,9 +1,10 @@
 [SUBSYSTEM::COM]
+PRIVATE_DEPENDENCIES = LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG LIBEVENTS LIBNDR
 
 COM_OBJ_FILES = $(addprefix lib/com/, tables.o rot.o main.o)
 
 [SUBSYSTEM::DCOM]
-PUBLIC_DEPENDENCIES = com DCOM_PROXY_DCOM RPC_NDR_REMACT \
+PUBLIC_DEPENDENCIES = COM DCOM_PROXY_DCOM RPC_NDR_REMACT \
  RPC_NDR_OXIDRESOLVER
 
 DCOM_OBJ_FILES = $(addprefix lib/com/dcom/, main.o tables.o)
@@ -13,3 +14,9 @@ SUBSYSTEM = COM
 INIT_FUNCTION = com_simple_init
 
 com_simple_OBJ_FILES = lib/com/classes/simple.o
+
+[PYTHON::pycom]
+LIBRARY_REALNAME = samba/com.$(SHLIBEXT)
+PRIVATE_DEPENDENCIES = COM
+
+pycom_OBJ_FILES = lib/com/pycom.o
diff --git a/source4/lib/com/main.c b/source4/lib/com/main.c
index 882b479..bcc5fa3 100644
--- a/source4/lib/com/main.c
+++ b/source4/lib/com/main.c
@@ -42,7 +42,7 @@ WERROR com_create_object(struct com_context *ctx, struct GUID 
*clsid, int num_if
int i;
struct GUID classfact_iid;
 
-   GUID_from_string(DCERPC_ICLASSFACTORY_UUID, classfact_iid);
+   GUID_from_string(NDR_ICLASSFACTORY_UUID, classfact_iid);
 
/* Obtain class object */
error = com_get_class_object(ctx, clsid, classfact_iid, (struct 
IUnknown **)factory);
@@ -88,23 +88,3 @@ WERROR com_get_class_object(struct com_context *ctx, struct 
GUID *clsid, struct

return IUnknown_QueryInterface(iu, ctx, iid, ip);
 }
-
-NTSTATUS com_init(void)
-{
-   static BOOL initialized = False;
-   
-   init_module_fn static_init[] = STATIC_com_MODULES; 
-   init_module_fn *shared_init;
-
-   if (initialized) return NT_STATUS_OK;
-   initialized = True;
-
-   shared_init = load_samba_modules(NULL, com);
-
-   run_init_functions(static_init);
-   run_init_functions(shared_init);
-
-   talloc_free(shared_init);
-   
-   return NT_STATUS_OK;
-}
diff --git a/source4/lib/com/pycom.c b/source4/lib/com/pycom.c
new file mode 100644
index 000..b6d6b77
--- /dev/null
+++ b/source4/lib/com/pycom.c
@@ -0,0 +1,70 @@
+/* 
+   Unix SMB/CIFS implementation.
+   Python bindings for COM library.
+   Copyright (C) Jelmer Vernooij [EMAIL PROTECTED] 2008
+   
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+   
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+   
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see http://www.gnu.org/licenses/.
+*/
+
+#include includes.h
+#include Python.h
+#include lib/com/com.h
+
+static PyObject *py_get_class_object(PyObject *self, PyObject *args)
+{
+   char *s_clsid, *s_iid;
+   struct GUID clsid, iid;
+   struct IUnknown *object;
+
+   if (!PyArg_ParseTuple(args, ss, s_clsid, s_iid))
+   return NULL;
+
+   status = GUID_from_string(s_clsid, clsid);
+   if (!NT_STATUS_IS_OK(status)) {
+   PyErr_FromNTSTATUS(status);
+   return NULL;
+   }
+
+   status 

[SCM] Samba Shared Repository - branch master updated - b5e8d8d22ae599778e889a8df5a18c07c9180af5

2008-09-18 Thread Jelmer Vernooij
The branch, master has been updated
   via  b5e8d8d22ae599778e889a8df5a18c07c9180af5 (commit)
  from  495758a73e125e59921092c893c6e32ba7091fe1 (commit)

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


- Log -
commit b5e8d8d22ae599778e889a8df5a18c07c9180af5
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Fri Sep 19 02:39:03 2008 +0200

initialize a COM context.

---

Summary of changes:
 source4/lib/com/pycom.c |   15 +--
 1 files changed, 13 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/lib/com/pycom.c b/source4/lib/com/pycom.c
index b6d6b77..9222be4 100644
--- a/source4/lib/com/pycom.c
+++ b/source4/lib/com/pycom.c
@@ -20,12 +20,18 @@
 #include includes.h
 #include Python.h
 #include lib/com/com.h
+#include librpc/ndr/libndr.h
+#include libcli/util/pyerrors.h
+
+static struct com_context *py_com_ctx = NULL; /* FIXME: evil global */
 
 static PyObject *py_get_class_object(PyObject *self, PyObject *args)
 {
char *s_clsid, *s_iid;
struct GUID clsid, iid;
struct IUnknown *object;
+   NTSTATUS status;
+   WERROR error;
 
if (!PyArg_ParseTuple(args, ss, s_clsid, s_iid))
return NULL;
@@ -42,7 +48,7 @@ static PyObject *py_get_class_object(PyObject *self, PyObject 
*args)
return NULL;
}
 
-   error = com_get_class_object(ctx, clsid, iid, object);
+   error = com_get_class_object(py_com_ctx, clsid, iid, object);
if (!W_ERROR_IS_OK(error)) {
PyErr_FromWERROR(error);
return NULL;
@@ -61,8 +67,13 @@ static struct PyMethodDef com_methods[] = {
 void initcom(void)
 {
PyObject *m;
+   WERROR error;
 
-   /* FIXME: Initialize COM context and attach it to m. */
+   error = com_init_ctx(py_com_ctx, NULL);
+   if (!W_ERROR_IS_OK(error)) {
+   PyErr_FromWERROR(error);
+   return;
+   }
 
m = Py_InitModule3(com, com_methods, Simple COM implementation);
if (m == NULL)


-- 
Samba Shared Repository