[Samba] problem with samba and acl

2008-08-20 Thread bikrish
Hi all


I am using centos 5.2. Samba 3.2.1 as PDC with ldap backend.? Is it possible to 
acheive windows acls in samba?? My requirement is 

1.? In a particular share, a specfied users should be able to modify the 
created the files like Microsoft word or excel etc. but should not be able to 
delete or create any new? files in the share ( which is possible in windows NT 
share) 

2. I am able to modify the notepad files in the share where i have not given 
delete permission to users. But when i modify the Microsoft word file, users 
are not able to edit it and found the reason behind it , microsoft word create 
temp file in the current working directory. Because user are not given 
permission to create file so temp file doesn't get create when editing 
microsoft word file and they are not able to edit the MS word file. Notepad 
doesn't create any temp file so i am able edit the notepad file.

I have mounted the share with acl options too. 
Here is my smb.conf file
[global]
??? dos charset = 850
??? unix charset = ISO8859- 1
??? workgroup = TETRADOM
??? obey pam restrictions = Yes
??? password server = 192.168.1.151
??? passdb backend = ldapsam:ldap://127.0.0.1/
??? username map = /etc/samba/smbusers
??? log level = 3
??? log file = /var/log/samba/%m.log
??? time server = Yes
??? unix extensions = No
??? add user script = /usr/sbin/smbldap-useradd -m %u
??? delete user script = /usr/sbin/smbldap-userdel %u
??? add group script = /usr/sbin/smbldap-groupadd -p %g
??? delete group script = /usr/sbin/smbldap-groupdel %g
??? add user to group script = /usr/sbin/smbldap-groupmod -m %g %u
??? delete user from group script = /usr/sbin/smbldap-groupmod -x %g %u
??? set primary group script = /usr/sbin/smbldap-usermod -g %g %u
??? add machine script = /usr/sbin/smbldap-useradd -w %u
??? logon script =
??? logon path =
??? logon drive = H:
??? logon home =
??? domain logons = Yes
??? os level = 65
??? preferred master = Yes
??? domain master = Yes
??? ldap admin dn = cn=Manager,dc=tetra,dc=com
??? ldap group suffix = ou=Groups
??? ldap idmap suffix = ou=Users
??? ldap machine suffix = ou=Computers
??? ldap passwd sync = Yes
??? ldap suffix = dc=tetra,dc=com
??? ldap ssl = no
??? ldap user suffix = ou=People
??? idmap uid = 15000-2
??? idmap gid = 15000-2
??? ea support = Yes
??? map acl inherit = Yes
??? store dos attributes = Yes
??? dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
??? dos filemode = Yes

[homes]
??? comment = Home Directories
??? path = /home/%u
??? valid users = %S
??? read only = No
??? browseable = No

[netlogon]
??? comment = Network Logon service
??? path = /home/netlogon
??? guest ok = Yes
??? browseable = No

[test]
??? comment = Data2
??? path = /test
??? valid users = +tetrasuper, +tetra
??? read list = +tetrasuper, +tetra
??? write list = +tetrasuper, +tetra
??? create mask = 0644
??? force create mode = 0766
??? inherit owner = Yes

[tetra]
??? comment = data
??? path = /tetra
??? read only = No
??? create mask = 0644
??? force create mode = 01666
??? directory mask = 01755
??? inherit owner = Yes
??? hide files = /*.tmp/
??? nt acl support = yes



If there anyone who can help with this situation.

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


Re: [Samba] Roaming Profiles only for Admin?

2008-08-20 Thread Albrecht Dreß

Hi John:

Thanks a lot for your detailed explanations!

Am 19.08.2008 18:35:48 schrieb(en) John H Terpstra:
Inside the NTUSER.DAT file, that you will find in the user's profile  
directory on the Samba server, is stored the SID of the user who owns  
the profile.  If for any reason the user's SID is changed the user  
will not longer be able to access that profile.


You can list the SIDs inside the NTUSER.DAT file using the Samba  
profiles tool.


O.k., I did that, and /basically/ the differences between the working  
and the non-working accounts are in the Owner SID and Trustee SID  
fields, plus many diffs in stuff like ACL for  
$$$PROTO.HIV\Software\Microsoft\Protected Storage System Provider\user  
sid.


Maybe I should add that I didn't create the accounts using Samba, but  
through a hack to the Kolab groupware server which also uses LDAP as  
backend.  The hack assigns User and Group SID as


User SID == S-1-5-21-number a-number b-number c-posix uid;  
posix uid = 2000, 2001, ..., 2999

Group SID == S-1-5-21-number a-number b-number c-3001

where number a-number b-number c is taken from the net  
getlocalsid output.


Maybe this approach is plain wrong, i.e. do I have to assign the SID's  
in a different way?  When I look at extra Samba group mappings created  
with LAM, the spacing is always /2/, i.e. group numbers are 3001, 3003,  
3005, etc.  Is that a requirement which explain the effects if I don't  
follow them?


Disabling of the profile ownership is usually a red-flag that there  
is a problem with the consistency between the user SIDs stored in  
NTUSER.DAT and the current SID reported through Samba.  This is what  
should be fixed, rather than using a sledge-hammer to get around the  
problem.  Work-arounds often have side-effects.


O.k., got the message ;-)

Have you recently change the domain (workgroup) name or the machine  
name? Either will change the Domain and/or machine SID.


Nope.  Initialised LDAP using 'smbldap-populate -b guest -l 65534 -a  
myadmin'.  Joined a workstation to the domain, and never touched any  
setting afterwards.


Check out the use of the net utility to set/record your domain and  
machine SIDs:


net getdomainsid


SID for domain MY-PDC is: S-1-5-21-number a-number b-number c
SID for domain MY-DOMIAN is: S-1-5-21-number a-number b-number c


net getmachinesid


Hmm, says No command: getmachinesid? In LDAP, the machine sid of the  
workstation is S-1-5-21-number a-number b-number c-1001.



net getlocalsid


SID for domain MY-PDC is: S-1-5-21-number a-number b-number c
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Re: ldapsearch and getent passd/group with nss winbind differs

2008-08-20 Thread Andreas Ladanyi

Hi Jerry,


Gerald (Jerry) Carter schrieb:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andreas Ladanyi wrote:

Hi,

after deleting winbindd_idmap and winbindd_cache.tdb files:

For security =domain AND security=ADS !

wbinfo -u /-g /-t are ok !

getent passwd is ok.

getent group shows different group memberships as ldapsearch with filter
msSFU30PosixMemberOf.




Winbind honors the Windows group membership and not
necessarily msSFU30PosixMemberOf attributes.


So it should be enough if you give the Windows group a GID in tab UNIX 
attribute in Active Directory and you have to do nothing else for the 
Linux side ?!





smb.conf - winbind:

winbind separator = /
winbind enum users = yes
winbind enum groups = yes
winbind cache time = 60
idmap backend = ad
idmap uid = 6000-27000
idmap gid = 600-7000
template shell = /bin/bash
template homedir  = /home/%u
winbind use default domain = yes
winbind refresh tickets = yes
winbind nss info =  template sfu

Any ideas ?

Andy




- --
=
Samba--- http://www.samba.org
Likewise Software  -  http://www.likewisesoftware.com
What man is a man who does not make the world better?  --Balian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIqyaeIR7qMdg1EfYRAgZWAKDRsC9qFFIIlIYZTgcrrt/+eZNiBQCcDNHE
lxx+F3++8Y8maDRIxl3Xny8=
=xmUQ
-END PGP SIGNATURE-


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


[Samba] speed limit

2008-08-20 Thread Drunix
Hello,

Does anybody know how to limit ul/dl speed for shares?

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


[Samba] Wiki with strange announcement

2008-08-20 Thread Jens Nissen
According to Samba Homepage, Samba 3.0 is the only recommended stable release.
All other versions are only for evaluation purpose (see 
http://us1.samba.org/samba/docs/FAQ/).
Now the Wiki announces 
(http://wiki.samba.org/index.php/Release_Planning_for_Samba_3.0), that Samba 
3.0 [is] turned into maintainance mode.
Does this mean, we have no stable supported Samba anymore?



-- 
Pt! Schon das coole Video vom GMX MultiMessenger gesehen?
Der Eine für Alle: http://www.gmx.net/de/go/messenger03
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] LDAP: sambaDomainName added twice after boot

2008-08-20 Thread Patrick Ben Koetter
I've set up a Samba Server using OpenLDAP as backend.
The sambaDomainName is JOJO. When I reboot (not upon restarting the samba
services) a second sambaDomainName, SERVER, entry is added automatically.

The hostname of the machine running the Samba services is server. This makes
me think that there's 'some' connection between the hostname and setting an
aditional sambaDomainName.

I am by no means a Samba expert and I haven't experienced and problems yet,
but a voice in my head says the second sambaDomainName entry shouldn't by
there.

Should it? If it shouldn't what would I need to do to stop this?


[EMAIL PROTECTED]

-- 
state of mind
Agentur für Kommunikation, Design und Softwareentwicklung

Patrick KoetterTel: 089 45227227
Echinger Strasse 3 Fax: 089 45227226
85386 Eching   Web: http://www.state-of-mind.de

Amtsgericht MünchenPartnerschaftsregister PR 563
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Wiki with strange announcement

2008-08-20 Thread Karolin Seeger
Jens,

On Wed, Aug 20, 2008 at 11:13:25AM +0200, Jens Nissen wrote:
 According to Samba Homepage, Samba 3.0 is the only recommended stable release.
 All other versions are only for evaluation purpose (see 
 http://us1.samba.org/samba/docs/FAQ/).
 Now the Wiki announces 
 (http://wiki.samba.org/index.php/Release_Planning_for_Samba_3.0), that Samba 
 3.0 [is] turned into maintainance mode.
 Does this mean, we have no stable supported Samba anymore?

http://us1.samba.org/samba/docs/FAQ/ is not up-to-date.
Thanks for the hint!

The Wiki is right, 3.2.2 is currently the recommended version for
production servers and 3.0 is in maintainance mode.

I will update the FAQ site.

Thanks and sorry for the trouble!

Karolin

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE



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

Re: [Samba] Wiki with strange announcement

2008-08-20 Thread Karolin Seeger
On Wed, Aug 20, 2008 at 01:11:44PM +0200, Karolin Seeger wrote:
 I will update the FAQ site.

Done. Will take a while until replication has taken place.

Karolin

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE



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

Re: [Samba] Roaming Profiles only for Admin?

2008-08-20 Thread Charles Marcus
On 8/20/2008, Albrecht Dreß ([EMAIL PROTECTED]) wrote:
 Maybe I should add that I didn't create the accounts using Samba, but
 through a hack to the Kolab groupware server which also uses LDAP as
 backend.  The hack assigns User and Group SID as

Oh, yeah, well...

Then I suggest you go talk to the one who hacked the Kolab groupware
server... do you really think it is reasonable to expect the sambe devs
(or others here) to be able to grok it?
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] samba PDC, ldap and ntlm_auth

2008-08-20 Thread Luigi Augello
Hello
I need to use to use ntlm_auth for samba users existing on the same
machine.(samba PDC, Squid and Openldap in the same server)

I read some mail in this list, particularly messages of Hesham S. Ahmed of Oct
7 2002 and I understand to do this I need join the PDC to itself but when I
use   net join I receive this message
# /usr/bin/net join
Unable to find a suitable server
Unable to find a suitable server

If I use
# /usr/bin/net join -S BACKUP
Password:
Could not connect to server BACKUP
Connection failed: NT_STATUS_CANT_ACCESS_DOMAIN_INFO

I use samba with ldap database, this is a piece of the smb.conf file

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command testparm
# to check that you have not made any basic syntactic errors.
#
#=== Global Settings =
[global]
   workgroup = UNIVERSITA
   netbios name =BACKUP
# server string is the equivalent of the NT Description field
   server string = Samba Server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the loopback interface. For more examples of the syntax see
# the smb.conf man page
   hosts allow = 192.168.9. 

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
#   printcap name = /etc/printcap
#   #load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
;   printing = cups

# This option tells cups that the data has already been rasterized
#   cups options = raw

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user nobody is used
;  guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/utenti.log
;   log file = /var/log/samba/%m.log
# all log information in one file
#   log file = /var/log/samba/smbd.log
log level=3
# Put a capping on the size of the log files (in Kb).
max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
# Use password server option only with security = server
;   password server = NT-Server-Name

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
;  password level = 8
;  username level = 8
encrypt passwords=yes
   security = user
mangling method = hash2
passdb backend = ldapsam:ldap://127.0.0.1/
ldap passwd sync = yes
ldap admin dn= cn=Manager,dc=universita,dc=it 
ldap suffix = dc=universita,dc=it
ldap group suffix = ou=Gruppi
ldap user suffix= ou=Utenti
ldap machine suffix= ou=Computers   
ldap idmap suffix= ou=Idmap
ldap delete dn= yes
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431

add machine script =/usr/sbin/smbldap-useradd -t 0 -w %u
add user script =/usr/sbin/smbldap-useradd   -a -m  %u
delete user script =/usr/sbin/smbldap-userdel %u
add group script =/usr/sbin/smbldap-groupadd -p %g
delete group script =/usr/sbin/smbldap-groupdel %g
add user to group  script =/usr/sbin/smbldap-groupmod -m %u %g
delete user from group  script =/usr/sbin/smbldap-groupmod -x %u %g
set primary group script=/usr/sbin/smbldap-usermod -g %g %u
   template shell = /bin/false

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
#smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
#the encrypted SMB passwords. They allow the Unix password
#to be kept in sync with the SMB password.
;  unix password sync = Yes
;  passwd program = /usr/bin/passwd %u
;  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*

# Unix users can map to 

[Samba] samba PDC, ldap and ntlm_auth

2008-08-20 Thread Luigi Augello
Hello
I need to use to use ntlm_auth for samba users existing on the same
server.(samba PDC, Squid and Openldap in the same server)

I was read some mails in this list, particularly messages of Hesham S. Ahmed
of Oct 7 2002 and I understand to do this I need join the PDC to itself but
when I use   net join I receive this message
# /usr/bin/net join
Unable to find a suitable server
Unable to find a suitable server

If I use
# /usr/bin/net join -S BACKUP
Password:
Could not connect to server BACKUP
Connection failed: NT_STATUS_CANT_ACCESS_DOMAIN_INFO

I use samba with ldap database, this is a piece of the smb.conf file

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command testparm
# to check that you have not made any basic syntactic errors.
#
#=== Global Settings =
[global]
   workgroup = UNIVERSITA
   netbios name =BACKUP
# server string is the equivalent of the NT Description field
   server string = Samba Server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the loopback interface. For more examples of the syntax see
# the smb.conf man page
   hosts allow = 192.168.9. 

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
#   printcap name = /etc/printcap
#   #load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
;   printing = cups

# This option tells cups that the data has already been rasterized
#   cups options = raw

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user nobody is used
;  guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/utenti.log
;   log file = /var/log/samba/%m.log
# all log information in one file
#   log file = /var/log/samba/smbd.log
log level=3
# Put a capping on the size of the log files (in Kb).
max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
# Use password server option only with security = server
;   password server = NT-Server-Name

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
;  password level = 8
;  username level = 8
encrypt passwords=yes
   security = user
mangling method = hash2
passdb backend = ldapsam:ldap://127.0.0.1/
ldap passwd sync = yes
ldap admin dn= cn=Manager,dc=universita,dc=it 
ldap suffix = dc=universita,dc=it
ldap group suffix = ou=Gruppi
ldap user suffix= ou=Utenti
ldap machine suffix= ou=Computers   
ldap idmap suffix= ou=Idmap
ldap delete dn= yes
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431

add machine script =/usr/sbin/smbldap-useradd -t 0 -w %u
add user script =/usr/sbin/smbldap-useradd   -a -m  %u
delete user script =/usr/sbin/smbldap-userdel %u
add group script =/usr/sbin/smbldap-groupadd -p %g
delete group script =/usr/sbin/smbldap-groupdel %g
add user to group  script =/usr/sbin/smbldap-groupmod -m %u %g
delete user from group  script =/usr/sbin/smbldap-groupmod -x %u %g
set primary group script=/usr/sbin/smbldap-usermod -g %g %u
   template shell = /bin/false

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
#smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
#the encrypted SMB passwords. They allow the Unix password
#to be kept in sync with the SMB password.
;  unix password sync = Yes
;  passwd program = /usr/bin/passwd %u
;  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*

# Unix users can map to 

Re: [Samba] Bad certificate at lists.samba.org?

2008-08-20 Thread Pim Zandbergen

How did I screw up this URL?

It should be http://www.samba.org/samba/ftp/Samba_CA.crt


http://www./samba/.org//samba//ftp/Samba_CA./crt

Pim

/



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


Re: [Samba] Roaming profiles

2008-08-20 Thread Mugo Martin
Hi all, thanks for your replies

I got the profiles to work, did not remove the

profile acls = Yes

line. This is my profiles section;

[profiles]
comment = User profiles
path = /var/lib/samba/profiles
read only = No
profile acls = Yes
valid users = %U
force user = %U

That together with the other mentioned configs and commands.
Added a line not in the Samba 3.0.28 master configuration files however.
Dont know whether this is right.

John, the SIDs are different and I had to use this guide to migrate them
because the UIDs and passwords are different on either server.

http://lists.samba.org/archive/samba/2005-December/115326.html

ps: My setup (CentOS 5.1, Samba 3.0.28, Openldap 2.x.x)

Best regards,
Martin.

On Tue, Aug 19, 2008 at 5:59 PM, [EMAIL PROTECTED] wrote:

 Maybe you could provide a level 10 log of when the first error happens
 (for a new user).

 Are all your users member of the group users ?
 Are all the underlying directories (/var /var/lib /var/lib/samba ...) set
 with at least the o+x permission on the file system ?

 François

  Hi people. Im in need of help as far as roaming profiles are concerned.
  Allow me as I know this issue has been discussed timelessly but let me
  just
  ask it because I have been unable to get it to work.
 
  My Samba + Ldap setup is fine and XP users can authenticate alright. Im
  using samba 3.0.28. However when logging in for the first time, they get
  the
  message;
 
  Windows cannot locate a server copy-Access is denied
 
  When logging off,
 
  Windows cannot update your roaming profile... -Access is denied
 
  I copied the profiles across from another server, so the first error does
  not come up except for new users and the old profiles are mapped onto the
  users machines just fine.
 
  I think I've done everything for roaming profiles to work including
 
  mkdir -p /var/lib/samba/profiles
  chown root:users /var/lib/samba/profiles
  chmod 2775 /var/lib/samba/profiles
 
  chown -R user /var/lib/samba/profiles/user/
 
  The samba logs don't  show any errors.
 
  Below is my smb.conf file
  [global]
  workgroup = EXAMPLE
  netbios name = EXAMPLE_SERVER
  server string = Samba Server Version %v
  passdb backend = ldapsam:ldap://example.org/
  log file = /var/log/samba/%m.log
  max log size = 50
  add user script = /usr/sbin/adduser -m %u
  add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100
  -s
  /bin/false -M %u
  logon script = %u.bat
  logon path = \\EXAMPLE_SERVER\profiles\%U
  logon home = \\EXAMPLE_SERVER\%U
  domain logons = Yes
  domain master = Yes
  ldap admin dn = cn=config
  ldap group suffix = ou=groups
  ldap machine suffix = ou=machines
  ldap passwd sync = Yes
  ldap suffix = dc=example,dc=org
  ldap user suffix = ou=people
  cups options = raw
  [homes]
  comment = Home Directories
  validusers = %S
  read only = No
  browseable = No
  writable = Yes
  create mask= 0700
  directory mask = 0700
  [netlogon]
  comment = Network Logon Service
  path = /var/lib/samba/netlogon
  share modes = No
  guest ok = Yes
  [profiles]
  path = /var/lib/samba/profiles
  read only = No
  writable = Yes
  profile acls = Yes
  comment = User profiles
  create mask = 0600
  browsable = no
  directory mask = 0700
 
  My searches on the web have not helped much. I am running on a Red Hat
  like
  system (CentOS 5).
 
  Someone please help. I will be eternally grateful.
  --
  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] Re: ldapsearch and getent passd/group with nss winbind differs

2008-08-20 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andreas Ladanyi wrote:

 Winbind honors the Windows group membership and not
 necessarily msSFU30PosixMemberOf attributes.
 
 So it should be enough if you give the Windows group a GID in tab UNIX
 attribute in Active Directory and you have to do nothing else for the
 Linux side ?!


Yup.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIrDOFIR7qMdg1EfYRAgsqAKDTH0QZ9CBi3qqulyrxowRJTPs0CwCgvTL/
kOzJhdCV11isitjqB1ch9jo=
=zXud
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] libmsrpc.so on 3.2.x

2008-08-20 Thread Linux Addict
Hi Folks, Is this library is stilled used on 3.2.x or it just can be 
ignored.


thank you

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


[Samba] Re: ldapsearch and getent passd/group with nss winbind differs

2008-08-20 Thread Andreas Ladanyi

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andreas Ladanyi wrote:


Winbind honors the Windows group membership and not
necessarily msSFU30PosixMemberOf attributes.


So it should be enough if you give the Windows group a GID in tab UNIX
attribute in Active Directory and you have to do nothing else for the
Linux side ?!



Yup.


Ok ! Could it be true this behavior is different between 
security=domain and security=ads ?


Because we had to put the user to the group:
- first on windows side in ActiveFirectory
- second on unix site in AD in the tab Members of

so winbind 3.0.24 client recognise the group membership on unix side in 
security=domain mode.


Now we changed to Samba 3.0.31 with security=ads mode and the behavior 
is a bit different.


??




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


Re: [Samba] libmsrpc.so on 3.2.x

2008-08-20 Thread John H Terpstra
On Wednesday 20 August 2008 12:01:10 Linux Addict wrote:
 Hi Folks, Is this library is stilled used on 3.2.x or it just can be
 ignored.

 thank you

 ~LA

If I am not mistaken this has suffered bit-rot and is no longer being built in 
Samba 3.2.x.

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


[Samba] Samba + Vista SP1 usernames with @ not working

2008-08-20 Thread Andrei Mikhailovsky
Hi

I was wondering if anyone came across an issue with Vista with SP1 and
usernames that have @ in their usernames (example [EMAIL PROTECTED]).
The login to samba network stopped working once i have installed SP1.
The message I get is:

The local Session Manager service failed to logon
The data area passed to a system call is too small

From the server side i don't really seen any errors and the same
username on pre SP1 workstation works without problems. Googleing for
the problem does not show anything useful

Thanks for any suggestions

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


Re: [Samba] libmsrpc.so on 3.2.x

2008-08-20 Thread Linux Addict

John H Terpstra wrote:

On Wednesday 20 August 2008 12:01:10 Linux Addict wrote:
  

Hi Folks, Is this library is stilled used on 3.2.x or it just can be
ignored.

thank you

~LA



If I am not mistaken this has suffered bit-rot and is no longer being built in 
Samba 3.2.x.


- John T.
  
Looks that way. I commented libmsrpc.so lines on samba.spec, but the 
makerpms.sh  throws below errors.



error: Installed (but unpackaged) file(s) found:
  /usr/bin/ldbadd
  /usr/bin/ldbdel
  /usr/bin/ldbedit
  /usr/bin/ldbmodify
  /usr/bin/ldbsearch
  /usr/include/netapi.h
  /usr/include/talloc.h
  /usr/include/tdb.h
  /usr/include/wbclient.h
  /usr/lib/samba/libnetapi.so
  /usr/lib/samba/libnetapi.so.0
  /usr/lib/samba/libsmbclient.so.0
  /usr/lib/samba/libtalloc.so
  /usr/lib/samba/libtalloc.so.1
  /usr/lib/samba/libtdb.so
  /usr/lib/samba/libtdb.so.1
  /usr/lib/samba/libwbclient.so
  /usr/lib/samba/libwbclient.so.0
  /usr/share/man/man1/ldbadd.1.gz
  /usr/share/man/man1/ldbdel.1.gz
  /usr/share/man/man1/ldbedit.1.gz
  /usr/share/man/man1/ldbmodify.1.gz
  /usr/share/man/man1/ldbsearch.1.gz
  /usr/share/man/man8/cifs.upcall.8.gz


RPM build errors:
   File not found: /var/tmp/samba-3.2.2-root/usr/bin/smbmount
   File not found: /var/tmp/samba-3.2.2-root/usr/bin/smbmnt
   File not found: /var/tmp/samba-3.2.2-root/usr/bin/smbumount
   File not found by glob: 
/var/tmp/samba-3.2.2-root/usr/share/man/man8/smbmnt.8*
   File not found by glob: 
/var/tmp/samba-3.2.2-root/usr/share/man/man8/smbmount.8*
   File not found by glob: 
/var/tmp/samba-3.2.2-root/usr/share/man/man8/smbumount.8*

   File not found: /var/tmp/samba-3.2.2-root/usr/include/libmsrpc.h
   File not found by glob: /var/tmp/samba-3.2.2-root/usr/lib/libmsrpc.*
   Installed (but unpackaged) file(s) found:
  /usr/bin/ldbadd
  /usr/bin/ldbdel
  /usr/bin/ldbedit
  /usr/bin/ldbmodify
  /usr/bin/ldbsearch
  /usr/include/netapi.h
  /usr/include/talloc.h
  /usr/include/tdb.h
  /usr/include/wbclient.h
  /usr/lib/samba/libnetapi.so
  /usr/lib/samba/libnetapi.so.0
  /usr/lib/samba/libsmbclient.so.0
  /usr/lib/samba/libtalloc.so
  /usr/lib/samba/libtalloc.so.1
  /usr/lib/samba/libtdb.so
  /usr/lib/samba/libtdb.so.1
  /usr/lib/samba/libwbclient.so
  /usr/lib/samba/libwbclient.so.0
  /usr/share/man/man1/ldbadd.1.gz
  /usr/share/man/man1/ldbdel.1.gz
  /usr/share/man/man1/ldbedit.1.gz
  /usr/share/man/man1/ldbmodify.1.gz
  /usr/share/man/man1/ldbsearch.1.gz
  /usr/share/man/man8/cifs.upcall.8.gz
makerpms.sh: Done.

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


[Samba] Too many opened files....samba 3.0.28a

2008-08-20 Thread Pappas, Bill
An XP client is having an issue with my 3.0.28a server. They do not have this 
problem on a native w2003 file server with the same amount of data.


[2008/08/20 13:25:14, 5] smbd/dir.c:OpenDir(1079)
  OpenDir: Can't open DowningShotgun/DowningTest/DowningTest.files/sample. Too 
many open files
[2008/08/20 13:25:14, 3] smbd/filename.c:scan_directory(586)
  scan dir didn't open dir [DowningShotgun/DowningTest/DowningTest.files/sample]
[2008/08/20 13:25:14, 3] smbd/error.c:error_packet_set(106)
  error packet at smbd/nttrans.c(649) cmd=162 (SMBntcreateX) 
NT_STATUS_TOO_MANY_OPENED_FILES

I adjusted the max open files parameter in smb.conf to 1,000,000 files:

max open files = 100


Let me ask you this...is this max count tied to each smbd process or is this an 
aggregate number bound to all smbd processes?




Thanks,
Bill Pappas -
Enterprise Network Storage Architect
St. Jude Children's Research Hospital
332 North Lauderdale
Memphis, TN 38105
901.495.4549

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


Re: [Samba] Too many opened files....samba 3.0.28a

2008-08-20 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pappas, Bill wrote:
 An XP client is having an issue with my 3.0.28a server. They do not have this 
 problem on a native w2003 file server with the same amount of data.
 
 
 [2008/08/20 13:25:14, 5] smbd/dir.c:OpenDir(1079)
   OpenDir: Can't open DowningShotgun/DowningTest/DowningTest.files/sample. 
 Too many open files
 [2008/08/20 13:25:14, 3] smbd/filename.c:scan_directory(586)
   scan dir didn't open dir 
 [DowningShotgun/DowningTest/DowningTest.files/sample]
 [2008/08/20 13:25:14, 3] smbd/error.c:error_packet_set(106)
   error packet at smbd/nttrans.c(649) cmd=162 (SMBntcreateX) 
 NT_STATUS_TOO_MANY_OPENED_FILES
 
 I adjusted the max open files parameter in smb.conf to 1,000,000 files:
 
 max open files = 100
 
 
 Let me ask you this...is this max count tied to each smbd process or is this 
 an aggregate number bound to all smbd processes?

It depends on your OS. This is likely an OS message. Check Google --
this is a pretty common message.

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

iD8DBQFIrG3nmb+gadEcsb4RAv7DAKDintUa7JvXO6xicodE+oZ7Oi80bACggT5+
XemBGIyvxhGDtXNmjpRUHzI=
=Wbh/
-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] Too many opened files....samba 3.0.28a

2008-08-20 Thread Jeremy Allison
On Wed, Aug 20, 2008 at 01:41:21PM -0500, Pappas, Bill wrote:
 An XP client is having an issue with my 3.0.28a server. They do not have this 
 problem on a native w2003 file server with the same amount of data.

What platform is Samba running on ?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Too many opened files....samba 3.0.28a

2008-08-20 Thread Pappas, Bill
RHEL 4 U4 EMT64

From: Jeremy Allison [EMAIL PROTECTED]
Sent: Wednesday, August 20, 2008 3:26 PM
To: Pappas, Bill
Cc: samba@lists.samba.org
Subject: Re: [Samba] Too many opened filessamba 3.0.28a

On Wed, Aug 20, 2008 at 01:41:21PM -0500, Pappas, Bill wrote:
 An XP client is having an issue with my 3.0.28a server. They do not have this 
 problem on a native w2003 file server with the same amount of data.

What platform is Samba running on ?


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


Re: [Samba] Too many opened files....samba 3.0.28a

2008-08-20 Thread Jeremy Allison
On Wed, Aug 20, 2008 at 03:27:35PM -0500, Pappas, Bill wrote:
 RHEL 4 U4 EMT64

Ok, take a look inside /proc for all the existing smbd
processes and see if any of them have an outrageous
number of open file descriptors.

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


RE: [Samba] Too many opened files....samba 3.0.28a

2008-08-20 Thread Pappas, Bill
Ok.  I matched /proc/sys/fs/file-max (i.e 1,000,000) to the max open files 
parameter in smb.conf.

This did the trick.

Apparently an application on a CIFS client (running WINXP) opens many, many 
files.

I appreciate your help.

Thanks,
bp

From: Jeremy Allison [EMAIL PROTECTED]
Sent: Wednesday, August 20, 2008 3:31 PM
To: Pappas, Bill
Cc: Jeremy Allison; samba@lists.samba.org
Subject: Re: [Samba] Too many opened filessamba 3.0.28a

On Wed, Aug 20, 2008 at 03:27:35PM -0500, Pappas, Bill wrote:
 RHEL 4 U4 EMT64

Ok, take a look inside /proc for all the existing smbd
processes and see if any of them have an outrageous
number of open file descriptors.

Jeremy.


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


[Samba] InterDomain Trust Issue; Active directory domain does not return users and groups

2008-08-20 Thread Linsey Smeltzer
I have created a two way Interdomain Trust between a Samba 3.21 Domain and a 
Windows 2003 Server Domain. I am able to log into the Active Directory domain 
with my Samba users and I am able to access shares set up in the AD Domain. 
However, when I attempt to log into the samba domain with a user from the 
Windows 2003 domain, I get an error saying the username/password is not 
correct.  From the Samba server, I run the command:

Trusted domains list:
 
POWERTECH   S-1-5-21-1030712963-4274246568-774726483
none
 
Trusting domains list:
 
POWERTECH   S-1-5-21-1030712963-4274246568-774726483

I can also validate both Trusts from the Server 2003 domain.

On the Samba server, I have been able to successfully authenicate Active 
Directory users using the command:

wbinfo -a 'ADDomain\username'%password

However, when I run wbinfo -u or wbinfo -g, I only get the list of users and 
groups from the Samba domain. I do not see any of the users or groups from the 
Active Directory Domain. In the winbindd log after running the command wbinfo 
-u, I see the following:

[2008/08/20 17:33:37, 10] rpc_client/cli_pipe.c:rpc_api_pipe(893)
  rpc_api_pipe: Remote machine FILESRV pipe \lsarpc fnum 0x4001 returned 408 
bytes.
  lsa_QueryInfoPolicy2: struct lsa_QueryInfoPolicy2
  out: struct lsa_QueryInfoPolicy2
  info : *
  info : *
  info : union 
lsa_PolicyInformation(case 12)
  dns: struct lsa_DnsDomainInfo
  name: struct lsa_StringLarge
  length   : 0x0012 (18)
  size : 0x0014 (20)
  string   : *
  string   : 'POWERTECH'
  dns_domain: struct lsa_StringLarge
  length   : 0x001e (30)
  size : 0x0020 (32)
  string   : *
  string   : 'powertech.local'
  dns_forest: struct lsa_StringLarge
  length   : 0x001e (30)
  size : 0x0020 (32)
  string   : *
  string   : 'powertech.local'
  domain_guid  : 
d4dbb4cc-6dca-4701-8715-4875aaf5ce9c
  sid  : *
  sid  : 
S-1-5-21-1030712963-4274246568-774726483
  result   : NT_STATUS_OK
[2008/08/20 17:33:37,  5] 
winbindd/winbindd_cm.c:set_dc_type_and_flags_connect(1841)
  set_dc_type_and_flags_connect: domain POWERTECH is NOT in native mode.
[2008/08/20 17:33:37,  5] 
winbindd/winbindd_cm.c:set_dc_type_and_flags_connect(1844)
  set_dc_type_and_flags_connect: domain POWERTECH is running active directory.
[2008/08/20 17:33:37,  6] libsmb/clientgen.c:write_socket(236)
  write_socket(16,45)
[2008/08/20 17:33:37,  6] libsmb/clientgen.c:write_socket(239)
  write_socket(16,45) wrote 45
[2008/08/20 17:33:37, 10] lib/util_sock.c:read_smb_length_return_keepalive(1118)
  got smb length of 35
[2008/08/20 17:33:37,  5] lib/util.c:show_msg(645)
[2008/08/20 17:33:37,  5] lib/util.c:show_msg(655)
  size=35
  smb_com=0x4
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=51201
  smb_tid=2049
  smb_pid=1767
  smb_uid=2049
  smb_mid=12
  smt_wct=0
  smb_bcc=0
[2008/08/20 17:33:37, 10] libsmb/clientgen.c:cli_rpc_pipe_close(567)
  cli_rpc_pipe_close: closed pipe \lsarpc to machine FILESRV
[2008/08/20 17:33:37, 10] lib/events.c:get_timed_events_timeout(318)
  timed_events_timeout: 175/547561
[2008/08/20 17:33:37, 10] lib/events.c:event_add_timed(128)
  Added timed event async_request_timeout: 94f3a90
[2008/08/20 17:33:37, 10] lib/events.c:get_timed_events_timeout(318)
  timed_events_timeout: 175/547500
[2008/08/20 17:33:37, 10] lib/events.c:timed_event_destructor(65)
  Destroying timed event 94f3798 async_request_timeout
[2008/08/20 17:33:37, 10] 
winbindd/winbindd_cache.c:cache_retrieve_response(2442)
  Retrieving response for pid 2155
[2008/08/20 17:33:37, 10] 
winbindd/winbindd_cache.c:cache_retrieve_response(2464)
  Retrieving extra data length=820
[2008/08/20 17:33:37,  5] winbindd/winbindd_misc.c:listent_recv(193)
  listent_recv: RGGNET returned users.
[2008/08/20 17:33:37, 10] lib/events.c:get_timed_events_timeout(318)
  timed_events_timeout: 175/442396
[2008/08/20 17:33:37, 10] lib/events.c:timed_event_destructor(65)
  Destroying timed event 94f3a90 async_request_timeout
[2008/08/20 17:33:37, 10] 
winbindd/winbindd_cache.c:cache_retrieve_response(2442)
  Retrieving response for 

[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha5-318-ge860fc1

2008-08-20 Thread Andrew Tridgell
The branch, v4-0-test has been updated
   via  e860fc171fd127d73df23336089c1479911953da (commit)
  from  3bdc906eb63a494f0d8478c13f8330828aa2f725 (commit)

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


- Log -
commit e860fc171fd127d73df23336089c1479911953da
Author: Andrew Tridgell [EMAIL PROTECTED]
Date:   Wed Aug 20 16:00:54 2008 +1000

don't overwrite fixed attributes with @ATTRIBUTES

---

Summary of changes:
 source/lib/ldb/common/ldb_attributes.c |4 
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/ldb/common/ldb_attributes.c 
b/source/lib/ldb/common/ldb_attributes.c
index 1e69f41..3b9d016 100644
--- a/source/lib/ldb/common/ldb_attributes.c
+++ b/source/lib/ldb/common/ldb_attributes.c
@@ -64,6 +64,10 @@ int ldb_schema_attribute_add_with_syntax(struct ldb_context 
*ldb,
for (i = 0; i  ldb-schema.num_attributes; i++) {
int cmp = ldb_attr_cmp(attribute, a[i].name);
if (cmp == 0) {
+   /* silently ignore attempts to overwrite fixed 
attributes */
+   if (a[i].flags  LDB_ATTR_FLAG_FIXED) {
+   return 0;
+   }
if (a[i].flags  LDB_ATTR_FLAG_ALLOCATED) {
talloc_free(discard_const_p(char, a[i].name));
}


-- 
Samba Shared Repository


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

2008-08-20 Thread Günther Deschner
The branch, v3-3-test has been updated
   via  c3dda372241c4e7171aa928fe0a4f5889bcb21a8 (commit)
  from  c30d73035dd202d0055ed7ede243e1703c4e9450 (commit)

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


- Log -
commit c3dda372241c4e7171aa928fe0a4f5889bcb21a8
Author: Steven Danneman [EMAIL PROTECTED]
Date:   Tue Aug 19 11:05:07 2008 -0700

Updated Doxyfile conf to doxygen version 1.5.3

* Removed deprecated configuration parameters
* Silenced all warnings due to lack of doxygen comments
* Reordered config parameters to match doxygen's canonical ordering

---

Summary of changes:
 source/Doxyfile |   78 +--
 1 files changed, 47 insertions(+), 31 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/Doxyfile b/source/Doxyfile
index c104078..9ade25c 100644
--- a/source/Doxyfile
+++ b/source/Doxyfile
@@ -1,7 +1,7 @@
-# Doxyfile 0.1
+# Doxyfile 1.5.3
 
 #---
-# General configuration options
+# Project related configuration options
 #---
 PROJECT_NAME   = Samba
 PROJECT_NUMBER = HEAD
@@ -13,68 +13,84 @@ PROJECT_NUMBER = HEAD
 # doesn't mind variables being redefined.
 
 OUTPUT_DIRECTORY   = dox
-
 OUTPUT_LANGUAGE= English
-EXTRACT_ALL= YES
-EXTRACT_PRIVATE= YES
-EXTRACT_STATIC = YES
-HIDE_UNDOC_MEMBERS = NO
-HIDE_UNDOC_CLASSES = NO
+DOXYFILE_ENCODING  = UTF-8
 BRIEF_MEMBER_DESC  = YES
 REPEAT_BRIEF   = YES
 ALWAYS_DETAILED_SEC= NO
 FULL_PATH_NAMES= YES
 STRIP_FROM_PATH= $(PWD)/
+SHORT_NAMES= NO
+JAVADOC_AUTOBRIEF  = YES
+INHERIT_DOCS   = YES
+TAB_SIZE   = 8
+ALIASES=
+OPTIMIZE_OUTPUT_FOR_C  = YES
+DISTRIBUTE_GROUP_DOC   = NO
+#---
+# Build related configuration options
+#---
+EXTRACT_ALL= YES
+EXTRACT_PRIVATE= YES
+EXTRACT_STATIC = YES
+EXTRACT_LOCAL_CLASSES  = YES
+HIDE_UNDOC_MEMBERS = NO
+HIDE_UNDOC_CLASSES = NO
 INTERNAL_DOCS  = YES
-CLASS_DIAGRAMS = YES
-SOURCE_BROWSER = YES
-INLINE_SOURCES = YES
-STRIP_CODE_COMMENTS= NO
 CASE_SENSE_NAMES   = YES
-SHORT_NAMES= NO
 HIDE_SCOPE_NAMES   = YES
-VERBATIM_HEADERS   = YES
 SHOW_INCLUDE_FILES = YES
-JAVADOC_AUTOBRIEF  = YES
-INHERIT_DOCS   = YES
 INLINE_INFO= YES
 SORT_MEMBER_DOCS   = NO
-DISTRIBUTE_GROUP_DOC   = NO
-TAB_SIZE   = 8
+SORT_BRIEF_DOCS= NO
 GENERATE_TODOLIST  = YES
 GENERATE_TESTLIST  = YES
 GENERATE_BUGLIST   = YES
-ALIASES= 
+GENERATE_DEPRECATEDLIST= YES
 ENABLED_SECTIONS   = 
 MAX_INITIALIZER_LINES  = 30
-OPTIMIZE_OUTPUT_FOR_C  = YES
 SHOW_USED_FILES= YES
-REFERENCED_BY_RELATION = YES
+SHOW_DIRECTORIES   = YES
 #---
 # configuration options related to warning and progress messages
 #---
 QUIET  = YES
 WARNINGS   = NO
 WARN_IF_UNDOCUMENTED   = NO
+WARN_IF_DOC_ERROR  = NO
+WARN_NO_PARAMDOC   = NO
 WARN_FORMAT= $file:$line: $text
 WARN_LOGFILE   = 
 #---
 # configuration options related to the input files
 #---
 INPUT  = . 
+INPUT_ENCODING = UTF-8
 FILE_PATTERNS  = *.c \
  *.h \
  *.idl
 RECURSIVE  = YES
 EXCLUDE= include/includes.h \
  include/proto.h
+EXCLUDE_SYMLINKS   = NO
 EXCLUDE_PATTERNS   = 
 EXAMPLE_PATH   = 
 EXAMPLE_PATTERNS   = 
+EXAMPLE_RECURSIVE  = NO
 IMAGE_PATH = 
 INPUT_FILTER   = 
 FILTER_SOURCE_FILES= NO
 #---
+# configuration options related to source browsing
+#---
+SOURCE_BROWSER = YES
+INLINE_SOURCES = YES
+STRIP_CODE_COMMENTS= NO
+REFERENCED_BY_RELATION = YES
+REFERENCES_RELATION= YES
+REFERENCES_LINK_SOURCE = YES
+VERBATIM_HEADERS   = YES
+#---
 # configuration options related to the alphabetical class index
 

[SCM] Samba Shared Repository - branch v3-devel updated - release-3-2-0pre2-3767-gd3295d1

2008-08-20 Thread Günther Deschner
The branch, v3-devel has been updated
   via  d3295d13aeb396377cb7fd46dcdb1f504f18efef (commit)
  from  ab06efccf31fbc899536d2681a2076e6dfd65b9e (commit)

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


- Log -
commit d3295d13aeb396377cb7fd46dcdb1f504f18efef
Author: Steven Danneman [EMAIL PROTECTED]
Date:   Tue Aug 19 11:05:07 2008 -0700

Updated Doxyfile conf to doxygen version 1.5.3

* Removed deprecated configuration parameters
* Silenced all warnings due to lack of doxygen comments
* Reordered config parameters to match doxygen's canonical ordering

---

Summary of changes:
 source/Doxyfile |   78 +--
 1 files changed, 47 insertions(+), 31 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/Doxyfile b/source/Doxyfile
index c104078..9ade25c 100644
--- a/source/Doxyfile
+++ b/source/Doxyfile
@@ -1,7 +1,7 @@
-# Doxyfile 0.1
+# Doxyfile 1.5.3
 
 #---
-# General configuration options
+# Project related configuration options
 #---
 PROJECT_NAME   = Samba
 PROJECT_NUMBER = HEAD
@@ -13,68 +13,84 @@ PROJECT_NUMBER = HEAD
 # doesn't mind variables being redefined.
 
 OUTPUT_DIRECTORY   = dox
-
 OUTPUT_LANGUAGE= English
-EXTRACT_ALL= YES
-EXTRACT_PRIVATE= YES
-EXTRACT_STATIC = YES
-HIDE_UNDOC_MEMBERS = NO
-HIDE_UNDOC_CLASSES = NO
+DOXYFILE_ENCODING  = UTF-8
 BRIEF_MEMBER_DESC  = YES
 REPEAT_BRIEF   = YES
 ALWAYS_DETAILED_SEC= NO
 FULL_PATH_NAMES= YES
 STRIP_FROM_PATH= $(PWD)/
+SHORT_NAMES= NO
+JAVADOC_AUTOBRIEF  = YES
+INHERIT_DOCS   = YES
+TAB_SIZE   = 8
+ALIASES=
+OPTIMIZE_OUTPUT_FOR_C  = YES
+DISTRIBUTE_GROUP_DOC   = NO
+#---
+# Build related configuration options
+#---
+EXTRACT_ALL= YES
+EXTRACT_PRIVATE= YES
+EXTRACT_STATIC = YES
+EXTRACT_LOCAL_CLASSES  = YES
+HIDE_UNDOC_MEMBERS = NO
+HIDE_UNDOC_CLASSES = NO
 INTERNAL_DOCS  = YES
-CLASS_DIAGRAMS = YES
-SOURCE_BROWSER = YES
-INLINE_SOURCES = YES
-STRIP_CODE_COMMENTS= NO
 CASE_SENSE_NAMES   = YES
-SHORT_NAMES= NO
 HIDE_SCOPE_NAMES   = YES
-VERBATIM_HEADERS   = YES
 SHOW_INCLUDE_FILES = YES
-JAVADOC_AUTOBRIEF  = YES
-INHERIT_DOCS   = YES
 INLINE_INFO= YES
 SORT_MEMBER_DOCS   = NO
-DISTRIBUTE_GROUP_DOC   = NO
-TAB_SIZE   = 8
+SORT_BRIEF_DOCS= NO
 GENERATE_TODOLIST  = YES
 GENERATE_TESTLIST  = YES
 GENERATE_BUGLIST   = YES
-ALIASES= 
+GENERATE_DEPRECATEDLIST= YES
 ENABLED_SECTIONS   = 
 MAX_INITIALIZER_LINES  = 30
-OPTIMIZE_OUTPUT_FOR_C  = YES
 SHOW_USED_FILES= YES
-REFERENCED_BY_RELATION = YES
+SHOW_DIRECTORIES   = YES
 #---
 # configuration options related to warning and progress messages
 #---
 QUIET  = YES
 WARNINGS   = NO
 WARN_IF_UNDOCUMENTED   = NO
+WARN_IF_DOC_ERROR  = NO
+WARN_NO_PARAMDOC   = NO
 WARN_FORMAT= $file:$line: $text
 WARN_LOGFILE   = 
 #---
 # configuration options related to the input files
 #---
 INPUT  = . 
+INPUT_ENCODING = UTF-8
 FILE_PATTERNS  = *.c \
  *.h \
  *.idl
 RECURSIVE  = YES
 EXCLUDE= include/includes.h \
  include/proto.h
+EXCLUDE_SYMLINKS   = NO
 EXCLUDE_PATTERNS   = 
 EXAMPLE_PATH   = 
 EXAMPLE_PATTERNS   = 
+EXAMPLE_RECURSIVE  = NO
 IMAGE_PATH = 
 INPUT_FILTER   = 
 FILTER_SOURCE_FILES= NO
 #---
+# configuration options related to source browsing
+#---
+SOURCE_BROWSER = YES
+INLINE_SOURCES = YES
+STRIP_CODE_COMMENTS= NO
+REFERENCED_BY_RELATION = YES
+REFERENCES_RELATION= YES
+REFERENCES_LINK_SOURCE = YES
+VERBATIM_HEADERS   = YES
+#---
 # configuration options related to the alphabetical class index
 

svn commit: samba-web r1219 - in trunk/docs/FAQ: .

2008-08-20 Thread kseeger
Author: kseeger
Date: 2008-08-20 11:15:54 + (Wed, 20 Aug 2008)
New Revision: 1219

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

Log:
Version updates in FAQs.
Karolin
Modified:
   trunk/docs/FAQ/index.html


Changeset:
Modified: trunk/docs/FAQ/index.html
===
--- trunk/docs/FAQ/index.html   2008-08-19 12:31:02 UTC (rev 1218)
+++ trunk/docs/FAQ/index.html   2008-08-20 11:15:54 UTC (rev 1219)
@@ -64,22 +64,25 @@
 h3Which Samba version should I run?/h3
 pThe Samba 2.2 branch is no longer maintained.  It's EOL was October 1, 
2004./p
 
+pThe Samba 3.0 branch has been turned into maintainance mode. There will be
+only bug fix and security updates./p
+
 pSamba4 is a development branch that hasn't yet had an initial release.  If 
 you are a developer wanting to play with the bleeding-edge of the work done on 
 Samba, try a 
href=http://gitweb.samba.org/?p=samba.git;a=tree;h=v4-0-test;hb=v4-0-test;Samba4/a,
 
 which you'll obviously have to build yourself.  You can also try 
 a 
href=http://gitweb.samba.org/?p=samba.git;a=tree;h=v3-2-test;hb=v3-2-test;Samba
 3.2/a in the 
-Git source tree, if you want to experiment with upcoming 3.2.x 
+Git source tree, if you want to experiment with upcoming 3.2.x
 features./p
 
-pThe current stable, production Samba server is the Samba 3.0 branch.  The
-most recent release is always the recommended version for production use.  
+pThe current stable, production Samba server is the Samba 3.2 branch.  The
+most recent release is always the recommended version for production use.
 See the a href=/samba/historyrelease history/a page for an overview
 of current and past releases./p
 
 h3How do I verify a tarball with the GnuPG signature?/h3
 
-pUsing GnuPG, simply download the Samba source distribution, the tarball 
+pUsing GnuPG, simply download the Samba source distribution, the tarball
 signature, and the Samba distribution public key.  Then run:/p
 
 pre



svn commit: samba-web r1220 - in trunk/docs/FAQ: .

2008-08-20 Thread kseeger
Author: kseeger
Date: 2008-08-20 11:29:10 + (Wed, 20 Aug 2008)
New Revision: 1220

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

Log:
More version updates in FAQ
Karolin
Modified:
   trunk/docs/FAQ/index.html


Changeset:
Modified: trunk/docs/FAQ/index.html
===
--- trunk/docs/FAQ/index.html   2008-08-20 11:15:54 UTC (rev 1219)
+++ trunk/docs/FAQ/index.html   2008-08-20 11:29:10 UTC (rev 1220)
@@ -67,12 +67,15 @@
 pThe Samba 3.0 branch has been turned into maintainance mode. There will be
 only bug fix and security updates./p
 
-pSamba4 is a development branch that hasn't yet had an initial release.  If 
-you are a developer wanting to play with the bleeding-edge of the work done on 
-Samba, try a 
href=http://gitweb.samba.org/?p=samba.git;a=tree;h=v4-0-test;hb=v4-0-test;Samba4/a,
 
-which you'll obviously have to build yourself.  You can also try 
-a 
href=http://gitweb.samba.org/?p=samba.git;a=tree;h=v3-2-test;hb=v3-2-test;Samba
 3.2/a in the 
-Git source tree, if you want to experiment with upcoming 3.2.x
+pSamba4 is a development branch that hasn't yet had an initial release.  If
+you are a developer wanting to play with the bleeding-edge of the work done on
+Samba, try a 
href=http://gitweb.samba.org/?p=samba.git;a=tree;h=v4-0-test;hb=v4-0-test;Samba4/a,
+which you'll obviously have to build yourself.  You can also try
+a 
href=http://gitweb.samba.org/?p=samba.git;a=tree;h=v3-3-test;hb=v3-3-test;Samba
 3.3/a in the
+Git source tree, if you want to experiment with upcoming 3.3.x or
+a
+href=http://gitweb.samba.org/?p=samba.git;a=tree;h=v3-devel;hb=v3-devel;Samba
+3.4/a Git source tree, if you want to experiment with upcoming 3.4.x
 features./p
 
 pThe current stable, production Samba server is the Samba 3.2 branch.  The



[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha5-330-ge51c0cf

2008-08-20 Thread Stefan Metzmacher
The branch, v4-0-test has been updated
   via  e51c0cf62c91f79f703b17bcf37c4a6fa8107ae0 (commit)
   via  6785684db3446c03d8061c8bb3d94889b443d7d5 (commit)
   via  f002f147d8a8a0b49389e30e611ff8b33dd077e1 (commit)
   via  bdff9728cc1c8b5fe5a29040e092a8e48603725b (commit)
   via  c3921c7b4e7a3b51b97a2afb688271a8ae403105 (commit)
   via  77571cd7c74dfaa93e58f047530df369ae293ffd (commit)
   via  ce83f4bb596fad23000acc1f6691669e2f2cfe1b (commit)
   via  b01d7457fa5b3572989b821f04e023fd9abd0d52 (commit)
   via  a143806364051141604ebb40eb5a4ef72958b55f (commit)
   via  71b0d64866eb1a4f6dc73eeb57b5f0fe5d8a5780 (commit)
   via  38c4b2a3e9b316f390651297854de033ede0d128 (commit)
   via  a1cf2289dd4ff9a3f9cf61da680223193235e35f (commit)
  from  e860fc171fd127d73df23336089c1479911953da (commit)

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


- Log -
commit e51c0cf62c91f79f703b17bcf37c4a6fa8107ae0
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Wed Aug 20 14:41:38 2008 +0200

pidl/NDR::Parser: pass typedefs through the ParseElement*Level() functions

metze

commit 6785684db3446c03d8061c8bb3d94889b443d7d5
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Wed Aug 20 14:41:05 2008 +0200

pidl/NDR: generate a LEVELS array for typedefs

metze

commit f002f147d8a8a0b49389e30e611ff8b33dd077e1
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Wed Aug 20 10:18:42 2008 +0200

pidl/NDR: correctly check for valid properties

grep($str, @array) returns the number of elements in @array!
We need grep(/^$str$/, @array) to the only the amount of matches.

Also fix unitialized vars for the error case.

metze

commit bdff9728cc1c8b5fe5a29040e092a8e48603725b
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 20:53:18 2008 +0200

pidl/NDR::Parser: pass $ndr to -start_flags() and -end_flags()

metze

commit c3921c7b4e7a3b51b97a2afb688271a8ae403105
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 20:51:27 2008 +0200

pidl/NDR::Parser: pass $ndr to ParseMemCtxPull*()

metze

commit 77571cd7c74dfaa93e58f047530df369ae293ffd
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 20:48:53 2008 +0200

pidl/NDR::Parser: pass $ndr to ParsePtrPush()

metze

commit ce83f4bb596fad23000acc1f6691669e2f2cfe1b
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 20:34:00 2008 +0200

pidl/NDR::Parser: use my $ndr = ndr in the remaining top functions

metze

commit b01d7457fa5b3572989b821f04e023fd9abd0d52
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 20:27:15 2008 +0200

pidl/NDR::Parser: pass down $ndr from the top functions

metze

commit a143806364051141604ebb40eb5a4ef72958b55f
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 20:12:03 2008 +0200

pidl/NDR::Parser: pass $ndr to -PRINT_FN_BLOB()

metze

commit 71b0d64866eb1a4f6dc73eeb57b5f0fe5d8a5780
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 13:24:05 2008 +0200

pidl/NDR::Parser: pass $ndr to -PUSH_FN_BLOB()

metze

commit 38c4b2a3e9b316f390651297854de033ede0d128
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 13:04:38 2008 +0200

pidl/NDR::Parser: pass $ndr to -PULL_FN_BODY()

metze

commit a1cf2289dd4ff9a3f9cf61da680223193235e35f
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 12:34:49 2008 +0200

pidl/NDR::Parser: use $ndr instead of ndr

metze

---

Summary of changes:
 source/pidl/lib/Parse/Pidl/NDR.pm   |   75 +++--
 source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm |  506 ---
 source/pidl/tests/samba-ndr.pl  |   13 +-
 3 files changed, 319 insertions(+), 275 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/pidl/lib/Parse/Pidl/NDR.pm 
b/source/pidl/lib/Parse/Pidl/NDR.pm
index 1e45047..10bd297 100644
--- a/source/pidl/lib/Parse/Pidl/NDR.pm
+++ b/source/pidl/lib/Parse/Pidl/NDR.pm
@@ -287,6 +287,22 @@ sub GetElementLevelTable($$)
return $order;
 }
 
+sub GetTypedefLevelTable($$$)
+{
+   my ($e, $data, $pointer_default) = @_;
+
+   my $order = [];
+
+   push (@$order, {
+   TYPE = TYPEDEF
+   });
+
+   my $i = 0;
+   foreach (@$order) { $_-{LEVEL_INDEX} = $i; $i+=1; }
+
+   return $order;
+}
+
 #
 # see if a type contains any deferred data 
 sub can_contain_deferred($)
@@ -575,6 +591,7 @@ sub ParseTypedef($$)
NAME = $d-{NAME},
TYPE = $d-{TYPE},
PROPERTIES = $d-{PROPERTIES},
+   LEVELS = GetTypedefLevelTable($d, $data, $pointer_default),
DATA = $data,
  

[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha5-332-g925a206

2008-08-20 Thread Stefan Metzmacher
The branch, v4-0-test has been updated
   via  925a2066ffa18a86704a8ee1a7a6908e0cd65a2a (commit)
   via  98d3568f079ea143214bcf5271b636313d6491c3 (commit)
  from  e51c0cf62c91f79f703b17bcf37c4a6fa8107ae0 (commit)

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


- Log -
commit 925a2066ffa18a86704a8ee1a7a6908e0cd65a2a
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 10:29:40 2008 +0200

ndr_compression: unify the common handling of mszip and xpress compression

metze

commit 98d3568f079ea143214bcf5271b636313d6491c3
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Mon Aug 18 17:10:59 2008 +0200

librpc/ndr: add support for Type Serialization Version 1 to subcontext

We use the header size 0xFC01 as magic for constructed types.

See [MS-RPCE] 2.2.6 Type Serialization Version 1 for more details.

metze

---

Summary of changes:
 source/librpc/ndr/ndr.c |  115 -
 source/librpc/ndr/ndr_compression.c |  140 --
 2 files changed, 147 insertions(+), 108 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/librpc/ndr/ndr.c b/source/librpc/ndr/ndr.c
index 4085245..c5e4c44 100644
--- a/source/librpc/ndr/ndr.c
+++ b/source/librpc/ndr/ndr.c
@@ -394,6 +394,8 @@ _PUBLIC_ enum ndr_err_code ndr_pull_subcontext_start(struct 
ndr_pull *ndr,
 {
struct ndr_pull *subndr;
uint32_t r_content_size;
+   bool force_le = false;
+   bool force_be = false;
 
switch (header_size) {
case 0: {
@@ -426,6 +428,74 @@ _PUBLIC_ enum ndr_err_code 
ndr_pull_subcontext_start(struct ndr_pull *ndr,
r_content_size = content_size;
break;
}
+   case 0xFC01: {
+   /*
+* Common Type Header for the Serialization Stream
+* See [MS-RPCE] 2.2.6 Type Serialization Version 1
+*/
+   uint8_t version;
+   uint8_t drep;
+   uint16_t hdrlen;
+   uint32_t filler;
+   uint32_t content_size;
+   uint32_t reserved;
+
+   /* version */
+   NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, version));
+
+   if (version != 1) {
+   return ndr_pull_error(ndr, NDR_ERR_SUBCONTEXT,
+ Bad subcontext (PULL) Common 
Type Header version %d != 1,
+ (int)version);
+   }
+
+   /*
+* 0x10 little endian
+* 0x00 big endian
+*/
+   NDR_CHECK(ndr_pull_uint8(ndr, NDR_SCALARS, drep));
+   if (drep == 0x10) {
+   force_le = true;
+   } else if (drep == 0x00) {
+   force_be = true;
+   } else {
+   return ndr_pull_error(ndr, NDR_ERR_SUBCONTEXT,
+ Bad subcontext (PULL) Common 
Type Header invalid drep 0x%02X,
+ (unsigned int)drep);
+   }
+
+   /* length of the Private Header for Constructed Type */
+   NDR_CHECK(ndr_pull_uint16(ndr, NDR_SCALARS, hdrlen));
+   if (hdrlen != 8) {
+   return ndr_pull_error(ndr, NDR_ERR_SUBCONTEXT,
+ Bad subcontext (PULL) Common 
Type Header length %d != 8,
+ (int)hdrlen);
+   }
+
+   /* filler should be ignored */
+   NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, filler));
+
+   /*
+* Private Header for Constructed Type
+*/
+   /* length - will be updated latter */
+   NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, content_size));
+   if (size_is = 0  size_is != content_size) {
+   return ndr_pull_error(ndr, NDR_ERR_SUBCONTEXT, Bad 
subcontext (PULL) size_is(%d) mismatch content_size %d,
+ (int)size_is, (int)content_size);
+   }
+   /* the content size must be a multiple of 8 */
+   if ((content_size % 8) != 0) {
+   return ndr_pull_error(ndr, NDR_ERR_SUBCONTEXT,
+ Bad subcontext (PULL) 
size_is(%d) not padded to 8 content_size %d,
+ (int)size_is, (int)content_size);
+   }
+   r_content_size = content_size;
+
+   /* reserved */
+   NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, reserved));
+   break;
+   }
default:

[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha5-335-g4b054ce

2008-08-20 Thread Stefan Metzmacher
The branch, v4-0-test has been updated
   via  4b054cee51c39c5430bcadd5c06a94dc3e6b0d8f (commit)
   via  4e6937816f1563686d04da4ab00a46d4461401b9 (commit)
   via  70a7b1f6c2e359102467ea270c2bb1efe736f64a (commit)
  from  925a2066ffa18a86704a8ee1a7a6908e0cd65a2a (commit)

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


- Log -
commit 4b054cee51c39c5430bcadd5c06a94dc3e6b0d8f
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 10:36:24 2008 +0200

drsuapi: fix samba4 callers after drsuapi.idl changes

metze

commit 4e6937816f1563686d04da4ab00a46d4461401b9
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 10:35:15 2008 +0200

drsuapi.idl: readd type serialization headers to compressed 
DsGetNCChangesCtr*

metze

commit 70a7b1f6c2e359102467ea270c2bb1efe736f64a
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 10:33:03 2008 +0200

ndr_compression: remove the type serialization handling from the 
compression layer

metze

---

Summary of changes:
 source/dsdb/repl/drepl_out_helpers.c |   20 +-
 source/libnet/libnet_become_dc.c |   19 -
 source/librpc/idl/drsuapi.idl|   16 +++---
 source/librpc/ndr/ndr_compression.c  |   36 --
 source/torture/rpc/dssync.c  |   15 -
 5 files changed, 48 insertions(+), 58 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/dsdb/repl/drepl_out_helpers.c 
b/source/dsdb/repl/drepl_out_helpers.c
index 3629a3b..80b398e 100644
--- a/source/dsdb/repl/drepl_out_helpers.c
+++ b/source/dsdb/repl/drepl_out_helpers.c
@@ -314,27 +314,35 @@ static void 
dreplsrv_op_pull_source_get_changes_recv(struct rpc_request *req)
if (*r-out.level == 1) {
ctr_level = 1;
ctr1 = r-out.ctr.ctr1;
-   } else if (*r-out.level == 2) {
+   } else if (*r-out.level == 2 
+  r-out.ctr.ctr2.mszip1.ts) {
ctr_level = 1;
-   ctr1 = r-out.ctr.ctr2.mszip1.ctr1;
+   ctr1 = r-out.ctr.ctr2.mszip1.ts-ctr1;
} else if (*r-out.level == 6) {
ctr_level = 6;
ctr6 = r-out.ctr.ctr6;
} else if (*r-out.level == 7 
   r-out.ctr.ctr7.level == 6 
-  r-out.ctr.ctr7.type == DRSUAPI_COMPRESSION_TYPE_MSZIP) {
+  r-out.ctr.ctr7.type == DRSUAPI_COMPRESSION_TYPE_MSZIP 
+  r-out.ctr.ctr7.ctr.mszip6.ts) {
ctr_level = 6;
-   ctr6 = r-out.ctr.ctr7.ctr.mszip6.ctr6;
+   ctr6 = r-out.ctr.ctr7.ctr.mszip6.ts-ctr6;
} else if (*r-out.level == 7 
   r-out.ctr.ctr7.level == 6 
-  r-out.ctr.ctr7.type == DRSUAPI_COMPRESSION_TYPE_XPRESS) {
+  r-out.ctr.ctr7.type == DRSUAPI_COMPRESSION_TYPE_XPRESS 
+  r-out.ctr.ctr7.ctr.xpress6.ts) {
ctr_level = 6;
-   ctr6 = r-out.ctr.ctr7.ctr.xpress6.ctr6;
+   ctr6 = r-out.ctr.ctr7.ctr.xpress6.ts-ctr6;
} else {
composite_error(c, werror_to_ntstatus(WERR_BAD_NET_RESP));
return;
}
 
+   if (!ctr1  !ctr6) {
+   composite_error(c, werror_to_ntstatus(WERR_BAD_NET_RESP));
+   return;
+   }
+
if (ctr_level == 6) {
if (!W_ERROR_IS_OK(ctr6-drs_error)) {
composite_error(c, werror_to_ntstatus(ctr6-drs_error));
diff --git a/source/libnet/libnet_become_dc.c b/source/libnet/libnet_become_dc.c
index 19391e7..332b041 100644
--- a/source/libnet/libnet_become_dc.c
+++ b/source/libnet/libnet_become_dc.c
@@ -2465,26 +2465,33 @@ static WERROR 
becomeDC_drsuapi_pull_partition_recv(struct libnet_BecomeDC_state
if (*r-out.level == 1) {
ctr_level = 1;
ctr1 = r-out.ctr.ctr1;
-   } else if (*r-out.level == 2) {
+   } else if (*r-out.level == 2 
+  r-out.ctr.ctr2.mszip1.ts) {
ctr_level = 1;
-   ctr1 = r-out.ctr.ctr2.mszip1.ctr1;
+   ctr1 = r-out.ctr.ctr2.mszip1.ts-ctr1;
} else if (*r-out.level == 6) {
ctr_level = 6;
ctr6 = r-out.ctr.ctr6;
} else if (*r-out.level == 7 
   r-out.ctr.ctr7.level == 6 
-  r-out.ctr.ctr7.type == DRSUAPI_COMPRESSION_TYPE_MSZIP) {
+  r-out.ctr.ctr7.type == DRSUAPI_COMPRESSION_TYPE_MSZIP 
+  r-out.ctr.ctr7.ctr.mszip6.ts) {
ctr_level = 6;
-   ctr6 = r-out.ctr.ctr7.ctr.mszip6.ctr6;
+   ctr6 = r-out.ctr.ctr7.ctr.mszip6.ts-ctr6;
} else if (*r-out.level == 7 
   r-out.ctr.ctr7.level == 6 
-  r-out.ctr.ctr7.type 

[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha5-337-gadbff0b

2008-08-20 Thread Stefan Metzmacher
The branch, v4-0-test has been updated
   via  adbff0b0f92aa0742a8293071776b388879cbd8e (commit)
   via  7d297f7fb7a3ac388390429db7cb16fa60d3f8c0 (commit)
  from  4b054cee51c39c5430bcadd5c06a94dc3e6b0d8f (commit)

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


- Log -
commit adbff0b0f92aa0742a8293071776b388879cbd8e
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 08:51:45 2008 +0200

krb5pac.idl: make use of subcontext(0xFC01) to handle the type 
Serialization header

Now we should be able to handle bigendian PAC_LOGON_INFO buffers.

metze

commit 7d297f7fb7a3ac388390429db7cb16fa60d3f8c0
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 13:23:09 2008 +0200

kdc/pac-glue: pull/push the logon_info via the PAC_INFO union

This prepares the next commit...

metze

---

Summary of changes:
 source/kdc/pac-glue.c |   24 +---
 source/librpc/idl/krb5pac.idl |6 +-
 2 files changed, 14 insertions(+), 16 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/kdc/pac-glue.c b/source/kdc/pac-glue.c
index cab1446..bee271e 100644
--- a/source/kdc/pac-glue.c
+++ b/source/kdc/pac-glue.c
@@ -51,7 +51,7 @@ static krb5_error_code make_pac(krb5_context context,
struct auth_serversupplied_info *server_info,
krb5_pac *pac) 
 {
-   struct PAC_LOGON_INFO_CTR logon_info;
+   union PAC_INFO info;
struct netr_SamInfo3 *info3;
krb5_data pac_data;
NTSTATUS nt_status;
@@ -59,7 +59,7 @@ static krb5_error_code make_pac(krb5_context context,
DATA_BLOB pac_out;
krb5_error_code ret;
 
-   ZERO_STRUCT(logon_info);
+   ZERO_STRUCT(info);
 
nt_status = auth_convert_server_info_saminfo3(mem_ctx, server_info, 
info3);
if (!NT_STATUS_IS_OK(nt_status)) {
@@ -67,15 +67,16 @@ static krb5_error_code make_pac(krb5_context context,
return EINVAL;
}
 
-   logon_info.info = talloc_zero(mem_ctx, struct PAC_LOGON_INFO);
+   info.logon_info.info = talloc_zero(mem_ctx, struct PAC_LOGON_INFO);
if (!mem_ctx) {
return ENOMEM;
}
 
-   logon_info.info-info3 = *info3;
+   info.logon_info.info-info3 = *info3;
 
-   ndr_err = ndr_push_struct_blob(pac_out, mem_ctx, iconv_convenience, 
logon_info,
-  
(ndr_push_flags_fn_t)ndr_push_PAC_LOGON_INFO_CTR);
+   ndr_err = ndr_push_union_blob(pac_out, mem_ctx, iconv_convenience, 
info,
+ PAC_TYPE_LOGON_INFO,
+ (ndr_push_flags_fn_t)ndr_push_PAC_INFO);
if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
nt_status = ndr_map_error2ntstatus(ndr_err);
DEBUG(1, (PAC (presig) push failed: %s\n, 
nt_errstr(nt_status)));
@@ -162,7 +163,7 @@ krb5_error_code samba_kdc_reget_pac(void *priv, 
krb5_context context,
krb5_data k5pac_in;
DATA_BLOB pac_in;
 
-   struct PAC_LOGON_INFO_CTR logon_info;
+   union PAC_INFO info;
union netr_Validation validation;
struct auth_serversupplied_info *server_info_out;
 
@@ -191,9 +192,10 @@ krb5_error_code samba_kdc_reget_pac(void *priv, 
krb5_context context,
return ENOMEM;
}

-   ndr_err = ndr_pull_struct_blob(pac_in, mem_ctx, 
private-iconv_convenience, logon_info,
-  
(ndr_pull_flags_fn_t)ndr_pull_PAC_LOGON_INFO_CTR);
-   if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err) || !logon_info.info) {
+   ndr_err = ndr_pull_union_blob(pac_in, mem_ctx, 
private-iconv_convenience, info,
+ PAC_TYPE_LOGON_INFO,
+ (ndr_pull_flags_fn_t)ndr_pull_PAC_INFO);
+   if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err) || !info.logon_info.info) {
nt_status = ndr_map_error2ntstatus(ndr_err);
DEBUG(0,(can't parse the PAC LOGON_INFO: %s\n, 
nt_errstr(nt_status)));
talloc_free(mem_ctx);
@@ -201,7 +203,7 @@ krb5_error_code samba_kdc_reget_pac(void *priv, 
krb5_context context,
}
 
/* Pull this right into the normal auth sysstem structures */
-   validation.sam3 = logon_info.info-info3;
+   validation.sam3 = info.logon_info.info-info3;
nt_status = make_server_info_netlogon_validation(mem_ctx,
 ,
 3, validation,
diff --git a/source/librpc/idl/krb5pac.idl b/source/librpc/idl/krb5pac.idl
index b450908..ca0efae 100644
--- a/source/librpc/idl/krb5pac.idl
+++ b/source/librpc/idl/krb5pac.idl
@@ -45,10 +45,6 @@ interface krb5pac
} PAC_UNKNOWN_12;
 

[SCM] Samba Shared Repository - branch v3-devel updated - release-3-2-0pre2-3768-g7b4c8a4

2008-08-20 Thread Stefan Metzmacher
The branch, v3-devel has been updated
   via  7b4c8a4e39f310eb450918fa841b0ea1b4af19f7 (commit)
  from  d3295d13aeb396377cb7fd46dcdb1f504f18efef (commit)

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


- Log -
commit 7b4c8a4e39f310eb450918fa841b0ea1b4af19f7
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 16:34:50 2008 +0200

smbd: fix the handling of create_options to pass RAW-OPEN

Some of the bits generate INVALID_PARAMETER and some bits
are ignored when they come from a client, that's why we need
to use bits from the ignored range for our internal usage.

metze

---

Summary of changes:
 source/include/smb.h  |   15 +++
 source/smbd/nttrans.c |   12 
 source/smbd/open.c|5 +
 3 files changed, 28 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/include/smb.h b/source/include/smb.h
index b8ff34f..c8c4f8c 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -1330,12 +1330,19 @@ struct bitmap {
 #define FILE_DELETE_ON_CLOSE  0x1000
 #define FILE_OPEN_BY_FILE_ID 0x2000
 
-/* Private create options used by the ntcreatex processing code. From Samba4. 
*/
-#define NTCREATEX_OPTIONS_PRIVATE_DENY_DOS 0x0100
-#define NTCREATEX_OPTIONS_PRIVATE_DENY_FCB 0x0200
+#define NTCREATEX_OPTIONS_MUST_IGNORE_MASK  (0x008F0480)
+
+#define NTCREATEX_OPTIONS_INVALID_PARAM_MASK(0xFF100030)
+
+/*
+ * Private create options used by the ntcreatex processing code. From Samba4.
+ * We reuse some ignored flags for private use.
+ */
+#define NTCREATEX_OPTIONS_PRIVATE_DENY_DOS 0x0001
+#define NTCREATEX_OPTIONS_PRIVATE_DENY_FCB 0x0002
 
 /* Private options for streams support */
-#define NTCREATEX_OPTIONS_PRIVATE_STREAM_DELETE 0x0400
+#define NTCREATEX_OPTIONS_PRIVATE_STREAM_DELETE 0x0004
 
 /* Responses when opening a file. */
 #define FILE_WAS_SUPERSEDED 0
diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c
index 149e6ec..b695127 100644
--- a/source/smbd/nttrans.c
+++ b/source/smbd/nttrans.c
@@ -455,6 +455,12 @@ void reply_ntcreate_and_X(struct smb_request *req)
fname));
 
/*
+* we need to remove ignored bits when they come directly from the 
client
+* because we reuse some of them for internal stuff
+*/
+   create_options = ~NTCREATEX_OPTIONS_MUST_IGNORE_MASK;
+
+   /*
 * If it's an IPC, use the pipe handler.
 */
 
@@ -858,6 +864,12 @@ static void call_nt_transact_create(connection_struct 
*conn,
allocation_size |= (((SMB_BIG_UINT)IVAL(params,16))  32);
 #endif
 
+   /*
+* we need to remove ignored bits when they come directly from the 
client
+* because we reuse some of them for internal stuff
+*/
+   create_options = ~NTCREATEX_OPTIONS_MUST_IGNORE_MASK;
+
/* Ensure the data_len is correct for the sd and ea values given. */
if ((ea_len + sd_len  data_count)
|| (ea_len  data_count) || (sd_len  data_count)
diff --git a/source/smbd/open.c b/source/smbd/open.c
index 03efd09..8b32907 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -2560,6 +2560,11 @@ NTSTATUS create_file_unixpath(connection_struct *conn,
goto fail;
}
 
+   if (create_options  NTCREATEX_OPTIONS_INVALID_PARAM_MASK) {
+   status = NT_STATUS_INVALID_PARAMETER;
+   goto fail;
+   }
+
if (req == NULL) {
oplock_request |= INTERNAL_OPEN_ONLY;
}


-- 
Samba Shared Repository


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

2008-08-20 Thread Stefan Metzmacher
The branch, v3-3-test has been updated
   via  a12cbcb009a02ee23ec0b24c2fca5deaa0ba6412 (commit)
  from  c3dda372241c4e7171aa928fe0a4f5889bcb21a8 (commit)

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


- Log -
commit a12cbcb009a02ee23ec0b24c2fca5deaa0ba6412
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 16:34:50 2008 +0200

smbd: fix the handling of create_options to pass RAW-OPEN

Some of the bits generate INVALID_PARAMETER and some bits
are ignored when they come from a client, that's why we need
to use bits from the ignored range for our internal usage.

metze
(cherry picked from commit 7b4c8a4e39f310eb450918fa841b0ea1b4af19f7)

---

Summary of changes:
 source/include/smb.h  |   15 +++
 source/smbd/nttrans.c |   12 
 source/smbd/open.c|5 +
 3 files changed, 28 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/include/smb.h b/source/include/smb.h
index b8ff34f..c8c4f8c 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -1330,12 +1330,19 @@ struct bitmap {
 #define FILE_DELETE_ON_CLOSE  0x1000
 #define FILE_OPEN_BY_FILE_ID 0x2000
 
-/* Private create options used by the ntcreatex processing code. From Samba4. 
*/
-#define NTCREATEX_OPTIONS_PRIVATE_DENY_DOS 0x0100
-#define NTCREATEX_OPTIONS_PRIVATE_DENY_FCB 0x0200
+#define NTCREATEX_OPTIONS_MUST_IGNORE_MASK  (0x008F0480)
+
+#define NTCREATEX_OPTIONS_INVALID_PARAM_MASK(0xFF100030)
+
+/*
+ * Private create options used by the ntcreatex processing code. From Samba4.
+ * We reuse some ignored flags for private use.
+ */
+#define NTCREATEX_OPTIONS_PRIVATE_DENY_DOS 0x0001
+#define NTCREATEX_OPTIONS_PRIVATE_DENY_FCB 0x0002
 
 /* Private options for streams support */
-#define NTCREATEX_OPTIONS_PRIVATE_STREAM_DELETE 0x0400
+#define NTCREATEX_OPTIONS_PRIVATE_STREAM_DELETE 0x0004
 
 /* Responses when opening a file. */
 #define FILE_WAS_SUPERSEDED 0
diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c
index 149e6ec..b695127 100644
--- a/source/smbd/nttrans.c
+++ b/source/smbd/nttrans.c
@@ -455,6 +455,12 @@ void reply_ntcreate_and_X(struct smb_request *req)
fname));
 
/*
+* we need to remove ignored bits when they come directly from the 
client
+* because we reuse some of them for internal stuff
+*/
+   create_options = ~NTCREATEX_OPTIONS_MUST_IGNORE_MASK;
+
+   /*
 * If it's an IPC, use the pipe handler.
 */
 
@@ -858,6 +864,12 @@ static void call_nt_transact_create(connection_struct 
*conn,
allocation_size |= (((SMB_BIG_UINT)IVAL(params,16))  32);
 #endif
 
+   /*
+* we need to remove ignored bits when they come directly from the 
client
+* because we reuse some of them for internal stuff
+*/
+   create_options = ~NTCREATEX_OPTIONS_MUST_IGNORE_MASK;
+
/* Ensure the data_len is correct for the sd and ea values given. */
if ((ea_len + sd_len  data_count)
|| (ea_len  data_count) || (sd_len  data_count)
diff --git a/source/smbd/open.c b/source/smbd/open.c
index 03efd09..8b32907 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -2560,6 +2560,11 @@ NTSTATUS create_file_unixpath(connection_struct *conn,
goto fail;
}
 
+   if (create_options  NTCREATEX_OPTIONS_INVALID_PARAM_MASK) {
+   status = NT_STATUS_INVALID_PARAMETER;
+   goto fail;
+   }
+
if (req == NULL) {
oplock_request |= INTERNAL_OPEN_ONLY;
}


-- 
Samba Shared Repository


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

2008-08-20 Thread Stefan Metzmacher
The branch, v3-2-test has been updated
   via  3366ac2857820d87fb36a1357786a3564d258da5 (commit)
  from  3d96409c115b3ad4ef29ff75e40b39a26e316afe (commit)

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


- Log -
commit 3366ac2857820d87fb36a1357786a3564d258da5
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Tue Aug 19 16:34:50 2008 +0200

smbd: fix the handling of create_options to pass RAW-OPEN

Some of the bits generate INVALID_PARAMETER and some bits
are ignored when they come from a client, that's why we need
to use bits from the ignored range for our internal usage.

metze
(cherry picked from commit 7b4c8a4e39f310eb450918fa841b0ea1b4af19f7)

---

Summary of changes:
 source/include/smb.h  |   15 +++
 source/smbd/nttrans.c |   12 
 source/smbd/open.c|5 +
 3 files changed, 28 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/include/smb.h b/source/include/smb.h
index cef6819..3c7058f 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -1377,12 +1377,19 @@ struct bitmap {
 #define FILE_DELETE_ON_CLOSE  0x1000
 #define FILE_OPEN_BY_FILE_ID 0x2000
 
-/* Private create options used by the ntcreatex processing code. From Samba4. 
*/
-#define NTCREATEX_OPTIONS_PRIVATE_DENY_DOS 0x0100
-#define NTCREATEX_OPTIONS_PRIVATE_DENY_FCB 0x0200
+#define NTCREATEX_OPTIONS_MUST_IGNORE_MASK  (0x008F0480)
+
+#define NTCREATEX_OPTIONS_INVALID_PARAM_MASK(0xFF100030)
+
+/*
+ * Private create options used by the ntcreatex processing code. From Samba4.
+ * We reuse some ignored flags for private use.
+ */
+#define NTCREATEX_OPTIONS_PRIVATE_DENY_DOS 0x0001
+#define NTCREATEX_OPTIONS_PRIVATE_DENY_FCB 0x0002
 
 /* Private options for streams support */
-#define NTCREATEX_OPTIONS_PRIVATE_STREAM_DELETE 0x0400
+#define NTCREATEX_OPTIONS_PRIVATE_STREAM_DELETE 0x0004
 
 /* Responses when opening a file. */
 #define FILE_WAS_SUPERSEDED 0
diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c
index ae7bd8b..0b48fa2 100644
--- a/source/smbd/nttrans.c
+++ b/source/smbd/nttrans.c
@@ -490,6 +490,12 @@ void reply_ntcreate_and_X(struct smb_request *req)
fname));
 
/*
+* we need to remove ignored bits when they come directly from the 
client
+* because we reuse some of them for internal stuff
+*/
+   create_options = ~NTCREATEX_OPTIONS_MUST_IGNORE_MASK;
+
+   /*
 * If it's an IPC, use the pipe handler.
 */
 
@@ -899,6 +905,12 @@ static void call_nt_transact_create(connection_struct 
*conn,
allocation_size |= (((SMB_BIG_UINT)IVAL(params,16))  32);
 #endif
 
+   /*
+* we need to remove ignored bits when they come directly from the 
client
+* because we reuse some of them for internal stuff
+*/
+   create_options = ~NTCREATEX_OPTIONS_MUST_IGNORE_MASK;
+
/* Ensure the data_len is correct for the sd and ea values given. */
if ((ea_len + sd_len  data_count)
|| (ea_len  data_count) || (sd_len  data_count)
diff --git a/source/smbd/open.c b/source/smbd/open.c
index 2184e69..ea10cdc 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -2614,6 +2614,11 @@ NTSTATUS create_file_unixpath(connection_struct *conn,
goto fail;
}
 
+   if (create_options  NTCREATEX_OPTIONS_INVALID_PARAM_MASK) {
+   status = NT_STATUS_INVALID_PARAMETER;
+   goto fail;
+   }
+
if (req == NULL) {
oplock_request |= INTERNAL_OPEN_ONLY;
}


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-31-11-g5410ad4

2008-08-20 Thread Gerald Carter
The branch, v3-0-test has been updated
   via  5410ad4f4eb0162806778833362a68804d69196e (commit)
  from  6acd5c086b0019f54749a67756975b3c0ba35ac0 (commit)

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


- Log -
commit 5410ad4f4eb0162806778833362a68804d69196e
Author: Gerald (Jerry) Carter [EMAIL PROTECTED]
Date:   Wed Aug 20 13:00:40 2008 -0500

nss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT

According to the GNU libc nss guide, we should always set
errno to ENOENT when returning NSS_UNAVAIL.


http://www.gnu.org/software/libtool/manual/libc/NSS-Modules-Interface.html#NSS-Modules-Interface

At least the MQ Series message queing service that runs
on WebSphere will fail if you return any other errno in this case.
(cherry picked from commit ee26664602445fa7798e2061f6bcbef0756d6528)

---

Summary of changes:
 source/nsswitch/wb_common.c |   14 ++
 1 files changed, 14 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/nsswitch/wb_common.c b/source/nsswitch/wb_common.c
index 563c386..bae54f2 100644
--- a/source/nsswitch/wb_common.c
+++ b/source/nsswitch/wb_common.c
@@ -182,11 +182,13 @@ static int winbind_named_pipe_sock(const char *dir)
/* Check permissions on unix socket directory */

if (lstat(dir, st) == -1) {
+   errno = ENOENT;
return -1;
}

if (!S_ISDIR(st.st_mode) || 
(st.st_uid != 0  st.st_uid != geteuid())) {
+   errno = ENOENT;
return -1;
}

@@ -210,6 +212,7 @@ static int winbind_named_pipe_sock(const char *dir)
   the winbindd daemon is not running. */
 
if (lstat(path, st) == -1) {
+   errno = ENOENT;
return -1;
}

@@ -217,6 +220,7 @@ static int winbind_named_pipe_sock(const char *dir)

if (!S_ISSOCK(st.st_mode) || 
(st.st_uid != 0  st.st_uid != geteuid())) {
+   errno = ENOENT;
return -1;
}

@@ -363,6 +367,7 @@ int write_sock(void *buffer, int count, int recursing, int 
need_priv)
  restart:

if (winbind_open_pipe_sock(recursing, need_priv) == -1) {
+   errno = ENOENT;
return -1;
}

@@ -570,12 +575,18 @@ NSS_STATUS winbindd_send_request(int req_type, int 
need_priv,

if (write_sock(request, sizeof(*request),
   request-flags  WBFLAG_RECURSE, need_priv) == -1) {
+   /* Set ENOENT for consistency.  Required by some apps */
+   errno = ENOENT;
+   
return NSS_STATUS_UNAVAIL;
}
 
if ((request-extra_len != 0) 
(write_sock(request-extra_data.data, request-extra_len,
request-flags  WBFLAG_RECURSE, need_priv) == -1)) {
+   /* Set ENOENT for consistency.  Required by some apps */
+   errno = ENOENT;
+
return NSS_STATUS_UNAVAIL;
}

@@ -599,6 +610,9 @@ NSS_STATUS winbindd_get_response(struct winbindd_response 
*response)
 
/* Wait for reply */
if (read_reply(response) == -1) {
+   /* Set ENOENT for consistency.  Required by some apps */
+   errno = ENOENT;
+
return NSS_STATUS_UNAVAIL;
}
 


-- 
Samba Shared Repository


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

2008-08-20 Thread Gerald Carter
The branch, v3-2-test has been updated
   via  29b39723b82f363d32dc4678d6b71a78485c65ce (commit)
  from  3366ac2857820d87fb36a1357786a3564d258da5 (commit)

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


- Log -
commit 29b39723b82f363d32dc4678d6b71a78485c65ce
Author: Gerald (Jerry) Carter [EMAIL PROTECTED]
Date:   Wed Aug 20 13:00:40 2008 -0500

nss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT

According to the GNU libc nss guide, we should always set
errno to ENOENT when returning NSS_UNAVAIL.


http://www.gnu.org/software/libtool/manual/libc/NSS-Modules-Interface.html#NSS-Modules-Interface

At least the MQ Series message queing service that runs
on WebSphere will fail if you return any other errno in this case.
(cherry picked from commit ee26664602445fa7798e2061f6bcbef0756d6528)

---

Summary of changes:
 source/nsswitch/wb_common.c |   20 ++--
 1 files changed, 18 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/nsswitch/wb_common.c b/source/nsswitch/wb_common.c
index b113fc3..6e6d2bb 100644
--- a/source/nsswitch/wb_common.c
+++ b/source/nsswitch/wb_common.c
@@ -176,11 +176,13 @@ static int winbind_named_pipe_sock(const char *dir)
/* Check permissions on unix socket directory */
 
if (lstat(dir, st) == -1) {
+   errno = ENOENT;
return -1;
}
 
if (!S_ISDIR(st.st_mode) ||
(st.st_uid != 0  st.st_uid != geteuid())) {
+   errno = ENOENT;
return -1;
}
 
@@ -199,6 +201,7 @@ static int winbind_named_pipe_sock(const char *dir)
   the winbindd daemon is not running. */
 
if (lstat(path, st) == -1) {
+   errno = ENOENT;
SAFE_FREE(path);
return -1;
}
@@ -208,6 +211,7 @@ static int winbind_named_pipe_sock(const char *dir)
 
if (!S_ISSOCK(st.st_mode) ||
(st.st_uid != 0  st.st_uid != geteuid())) {
+   errno = ENOENT;
return -1;
}
 
@@ -368,6 +372,7 @@ int winbind_write_sock(void *buffer, int count, int 
recursing, int need_priv)
  restart:

if (winbind_open_pipe_sock(recursing, need_priv) == -1) {
+   errno = ENOENT;
return -1;
}

@@ -564,7 +569,11 @@ NSS_STATUS winbindd_send_request(int req_type, int 
need_priv,

if (winbind_write_sock(request, sizeof(*request),
   request-wb_flags  WBFLAG_RECURSE,
-  need_priv) == -1) {
+  need_priv) == -1) 
+   {
+   /* Set ENOENT for consistency.  Required by some apps */
+   errno = ENOENT;
+   
return NSS_STATUS_UNAVAIL;
}
 
@@ -572,7 +581,11 @@ NSS_STATUS winbindd_send_request(int req_type, int 
need_priv,
(winbind_write_sock(request-extra_data.data,
request-extra_len,
request-wb_flags  WBFLAG_RECURSE,
-   need_priv) == -1)) {
+   need_priv) == -1)) 
+   {
+   /* Set ENOENT for consistency.  Required by some apps */
+   errno = ENOENT;
+
return NSS_STATUS_UNAVAIL;
}

@@ -596,6 +609,9 @@ NSS_STATUS winbindd_get_response(struct winbindd_response 
*response)
 
/* Wait for reply */
if (winbindd_read_reply(response) == -1) {
+   /* Set ENOENT for consistency.  Required by some apps */
+   errno = ENOENT;
+
return NSS_STATUS_UNAVAIL;
}
 


-- 
Samba Shared Repository


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

2008-08-20 Thread Gerald Carter
The branch, v3-3-test has been updated
   via  a46d7ffeef1807bafda15eb76ec74fcf41aae7f6 (commit)
  from  a12cbcb009a02ee23ec0b24c2fca5deaa0ba6412 (commit)

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


- Log -
commit a46d7ffeef1807bafda15eb76ec74fcf41aae7f6
Author: Gerald (Jerry) Carter [EMAIL PROTECTED]
Date:   Wed Aug 20 13:00:40 2008 -0500

nss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT

According to the GNU libc nss guide, we should always set
errno to ENOENT when returning NSS_UNAVAIL.


http://www.gnu.org/software/libtool/manual/libc/NSS-Modules-Interface.html#NSS-Modules-Interface

At least the MQ Series message queing service that runs
on WebSphere will fail if you return any other errno in this case.
(cherry picked from commit ee26664602445fa7798e2061f6bcbef0756d6528)

---

Summary of changes:
 source/nsswitch/wb_common.c |   20 ++--
 1 files changed, 18 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/nsswitch/wb_common.c b/source/nsswitch/wb_common.c
index b113fc3..6e6d2bb 100644
--- a/source/nsswitch/wb_common.c
+++ b/source/nsswitch/wb_common.c
@@ -176,11 +176,13 @@ static int winbind_named_pipe_sock(const char *dir)
/* Check permissions on unix socket directory */
 
if (lstat(dir, st) == -1) {
+   errno = ENOENT;
return -1;
}
 
if (!S_ISDIR(st.st_mode) ||
(st.st_uid != 0  st.st_uid != geteuid())) {
+   errno = ENOENT;
return -1;
}
 
@@ -199,6 +201,7 @@ static int winbind_named_pipe_sock(const char *dir)
   the winbindd daemon is not running. */
 
if (lstat(path, st) == -1) {
+   errno = ENOENT;
SAFE_FREE(path);
return -1;
}
@@ -208,6 +211,7 @@ static int winbind_named_pipe_sock(const char *dir)
 
if (!S_ISSOCK(st.st_mode) ||
(st.st_uid != 0  st.st_uid != geteuid())) {
+   errno = ENOENT;
return -1;
}
 
@@ -368,6 +372,7 @@ int winbind_write_sock(void *buffer, int count, int 
recursing, int need_priv)
  restart:

if (winbind_open_pipe_sock(recursing, need_priv) == -1) {
+   errno = ENOENT;
return -1;
}

@@ -564,7 +569,11 @@ NSS_STATUS winbindd_send_request(int req_type, int 
need_priv,

if (winbind_write_sock(request, sizeof(*request),
   request-wb_flags  WBFLAG_RECURSE,
-  need_priv) == -1) {
+  need_priv) == -1) 
+   {
+   /* Set ENOENT for consistency.  Required by some apps */
+   errno = ENOENT;
+   
return NSS_STATUS_UNAVAIL;
}
 
@@ -572,7 +581,11 @@ NSS_STATUS winbindd_send_request(int req_type, int 
need_priv,
(winbind_write_sock(request-extra_data.data,
request-extra_len,
request-wb_flags  WBFLAG_RECURSE,
-   need_priv) == -1)) {
+   need_priv) == -1)) 
+   {
+   /* Set ENOENT for consistency.  Required by some apps */
+   errno = ENOENT;
+
return NSS_STATUS_UNAVAIL;
}

@@ -596,6 +609,9 @@ NSS_STATUS winbindd_get_response(struct winbindd_response 
*response)
 
/* Wait for reply */
if (winbindd_read_reply(response) == -1) {
+   /* Set ENOENT for consistency.  Required by some apps */
+   errno = ENOENT;
+
return NSS_STATUS_UNAVAIL;
}
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-devel updated - release-3-2-0pre2-3769-gee26664

2008-08-20 Thread Gerald Carter
The branch, v3-devel has been updated
   via  ee26664602445fa7798e2061f6bcbef0756d6528 (commit)
  from  7b4c8a4e39f310eb450918fa841b0ea1b4af19f7 (commit)

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


- Log -
commit ee26664602445fa7798e2061f6bcbef0756d6528
Author: Gerald (Jerry) Carter [EMAIL PROTECTED]
Date:   Wed Aug 20 13:00:40 2008 -0500

nss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT

According to the GNU libc nss guide, we should always set
errno to ENOENT when returning NSS_UNAVAIL.


http://www.gnu.org/software/libtool/manual/libc/NSS-Modules-Interface.html#NSS-Modules-Interface

At least the MQ Series message queing service that runs
on WebSphere will fail if you return any other errno in this case.

---

Summary of changes:
 source/nsswitch/wb_common.c |   20 ++--
 1 files changed, 18 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/nsswitch/wb_common.c b/source/nsswitch/wb_common.c
index b113fc3..6e6d2bb 100644
--- a/source/nsswitch/wb_common.c
+++ b/source/nsswitch/wb_common.c
@@ -176,11 +176,13 @@ static int winbind_named_pipe_sock(const char *dir)
/* Check permissions on unix socket directory */
 
if (lstat(dir, st) == -1) {
+   errno = ENOENT;
return -1;
}
 
if (!S_ISDIR(st.st_mode) ||
(st.st_uid != 0  st.st_uid != geteuid())) {
+   errno = ENOENT;
return -1;
}
 
@@ -199,6 +201,7 @@ static int winbind_named_pipe_sock(const char *dir)
   the winbindd daemon is not running. */
 
if (lstat(path, st) == -1) {
+   errno = ENOENT;
SAFE_FREE(path);
return -1;
}
@@ -208,6 +211,7 @@ static int winbind_named_pipe_sock(const char *dir)
 
if (!S_ISSOCK(st.st_mode) ||
(st.st_uid != 0  st.st_uid != geteuid())) {
+   errno = ENOENT;
return -1;
}
 
@@ -368,6 +372,7 @@ int winbind_write_sock(void *buffer, int count, int 
recursing, int need_priv)
  restart:

if (winbind_open_pipe_sock(recursing, need_priv) == -1) {
+   errno = ENOENT;
return -1;
}

@@ -564,7 +569,11 @@ NSS_STATUS winbindd_send_request(int req_type, int 
need_priv,

if (winbind_write_sock(request, sizeof(*request),
   request-wb_flags  WBFLAG_RECURSE,
-  need_priv) == -1) {
+  need_priv) == -1) 
+   {
+   /* Set ENOENT for consistency.  Required by some apps */
+   errno = ENOENT;
+   
return NSS_STATUS_UNAVAIL;
}
 
@@ -572,7 +581,11 @@ NSS_STATUS winbindd_send_request(int req_type, int 
need_priv,
(winbind_write_sock(request-extra_data.data,
request-extra_len,
request-wb_flags  WBFLAG_RECURSE,
-   need_priv) == -1)) {
+   need_priv) == -1)) 
+   {
+   /* Set ENOENT for consistency.  Required by some apps */
+   errno = ENOENT;
+
return NSS_STATUS_UNAVAIL;
}

@@ -596,6 +609,9 @@ NSS_STATUS winbindd_get_response(struct winbindd_response 
*response)
 
/* Wait for reply */
if (winbindd_read_reply(response) == -1) {
+   /* Set ENOENT for consistency.  Required by some apps */
+   errno = ENOENT;
+
return NSS_STATUS_UNAVAIL;
}
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-devel updated - release-3-2-0pre2-3771-gea9fc3b

2008-08-20 Thread Günther Deschner
The branch, v3-devel has been updated
   via  ea9fc3bea31b11e715d9524defc18b75e5943842 (commit)
   via  43693ce6c678b961fa516bbf502af92f87cd5346 (commit)
  from  ee26664602445fa7798e2061f6bcbef0756d6528 (commit)

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


- Log -
commit ea9fc3bea31b11e715d9524defc18b75e5943842
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Wed Aug 20 21:17:35 2008 +0200

libads: remove unused vars.

Guenther

commit 43693ce6c678b961fa516bbf502af92f87cd5346
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Wed Aug 20 20:24:45 2008 +0200

fix another build warning.

Guenther

---

Summary of changes:
 source/libads/ldap.c |3 ---
 source/rpc_client/cli_pipe.c |4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libads/ldap.c b/source/libads/ldap.c
index b59dab1..eb45e3a 100644
--- a/source/libads/ldap.c
+++ b/source/libads/ldap.c
@@ -393,9 +393,6 @@ static NTSTATUS ads_lookup_site(void)
ADS_STRUCT *ads = NULL;
ADS_STATUS ads_status;
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
-   struct nbt_cldap_netlogon_5 cldap_reply;
-
-   ZERO_STRUCT(cldap_reply);
 
ads = ads_init(lp_realm(), NULL, NULL);
if (!ads) {
diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c
index ad2f512..41dde87 100644
--- a/source/rpc_client/cli_pipe.c
+++ b/source/rpc_client/cli_pipe.c
@@ -979,8 +979,8 @@ static NTSTATUS rpc_api_pipe(struct rpc_pipe_client *cli,
 
while(1) {
RPC_HDR rhdr;
-   char *ret_data;
-   uint32 ret_data_len;
+   char *ret_data = NULL;
+   uint32 ret_data_len = 0;
 
/* Ensure we have enough data for a pdu. */
ret = cli_pipe_get_current_pdu(cli, rhdr, current_pdu);


-- 
Samba Shared Repository


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

2008-08-20 Thread Günther Deschner
The branch, v3-3-test has been updated
   via  7d96c8ce5c49b031b5a9a60a9ad5252653577513 (commit)
   via  1a85fce6e432bafed98856f22e0736489fa6f1f5 (commit)
  from  a46d7ffeef1807bafda15eb76ec74fcf41aae7f6 (commit)

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


- Log -
commit 7d96c8ce5c49b031b5a9a60a9ad5252653577513
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Wed Aug 20 21:17:35 2008 +0200

libads: remove unused vars.

Guenther
(cherry picked from commit ea9fc3bea31b11e715d9524defc18b75e5943842)

commit 1a85fce6e432bafed98856f22e0736489fa6f1f5
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Wed Aug 20 20:24:45 2008 +0200

fix another build warning.

Guenther
(cherry picked from commit 43693ce6c678b961fa516bbf502af92f87cd5346)

---

Summary of changes:
 source/libads/ldap.c |3 ---
 source/rpc_client/cli_pipe.c |4 ++--
 2 files changed, 2 insertions(+), 5 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libads/ldap.c b/source/libads/ldap.c
index b59dab1..eb45e3a 100644
--- a/source/libads/ldap.c
+++ b/source/libads/ldap.c
@@ -393,9 +393,6 @@ static NTSTATUS ads_lookup_site(void)
ADS_STRUCT *ads = NULL;
ADS_STATUS ads_status;
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
-   struct nbt_cldap_netlogon_5 cldap_reply;
-
-   ZERO_STRUCT(cldap_reply);
 
ads = ads_init(lp_realm(), NULL, NULL);
if (!ads) {
diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c
index ad2f512..41dde87 100644
--- a/source/rpc_client/cli_pipe.c
+++ b/source/rpc_client/cli_pipe.c
@@ -979,8 +979,8 @@ static NTSTATUS rpc_api_pipe(struct rpc_pipe_client *cli,
 
while(1) {
RPC_HDR rhdr;
-   char *ret_data;
-   uint32 ret_data_len;
+   char *ret_data = NULL;
+   uint32 ret_data_len = 0;
 
/* Ensure we have enough data for a pdu. */
ret = cli_pipe_get_current_pdu(cli, rhdr, current_pdu);


-- 
Samba Shared Repository


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

2008-08-20 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  2a5ae59f77c05c41c97747dee9bc8c196dfe6b89 (commit)
  from  29b39723b82f363d32dc4678d6b71a78485c65ce (commit)

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


- Log -
commit 2a5ae59f77c05c41c97747dee9bc8c196dfe6b89
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Wed Aug 20 20:24:45 2008 +0200

fix another build warning.

Guenther
(cherry picked from commit 43693ce6c678b961fa516bbf502af92f87cd5346)

---

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


Changeset truncated at 500 lines:

diff --git a/source/rpc_client/cli_pipe.c b/source/rpc_client/cli_pipe.c
index 425eb26..35256d7 100644
--- a/source/rpc_client/cli_pipe.c
+++ b/source/rpc_client/cli_pipe.c
@@ -823,8 +823,8 @@ static NTSTATUS rpc_api_pipe(struct rpc_pipe_client *cli,
 
while(1) {
RPC_HDR rhdr;
-   char *ret_data;
-   uint32 ret_data_len;
+   char *ret_data = NULL;
+   uint32 ret_data_len = 0;
 
/* Ensure we have enough data for a pdu. */
ret = cli_pipe_get_current_pdu(cli, rhdr, current_pdu);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-devel updated - release-3-2-0pre2-3772-ga75055b

2008-08-20 Thread Günther Deschner
The branch, v3-devel has been updated
   via  a75055be5ff7ebe3476cfac86c6597a56a843c23 (commit)
  from  ea9fc3bea31b11e715d9524defc18b75e5943842 (commit)

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


- Log -
commit a75055be5ff7ebe3476cfac86c6597a56a843c23
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Wed Aug 20 18:40:58 2008 +0200

fix build warning.

Guenther

---

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


Changeset truncated at 500 lines:

diff --git a/source/nmbd/nmbd_processlogon.c b/source/nmbd/nmbd_processlogon.c
index f7990de..474ae1c 100644
--- a/source/nmbd/nmbd_processlogon.c
+++ b/source/nmbd/nmbd_processlogon.c
@@ -434,7 +434,7 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x 
lm_20 token=%x\n,
char *component, *dc, *q1;
char *q_orig = q;
int str_offset;
-   char *saveptr;
+   char *saveptr = NULL;
 
domain = get_mydnsdomname(talloc_tos());
if (!domain) {


-- 
Samba Shared Repository


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

2008-08-20 Thread Günther Deschner
The branch, v3-3-test has been updated
   via  b0c63c062fe90e4a4ec61ff5b5849e758834b8d7 (commit)
  from  7d96c8ce5c49b031b5a9a60a9ad5252653577513 (commit)

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


- Log -
commit b0c63c062fe90e4a4ec61ff5b5849e758834b8d7
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Wed Aug 20 18:40:58 2008 +0200

fix build warning.

Guenther
(cherry picked from commit a75055be5ff7ebe3476cfac86c6597a56a843c23)

---

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


Changeset truncated at 500 lines:

diff --git a/source/nmbd/nmbd_processlogon.c b/source/nmbd/nmbd_processlogon.c
index f7990de..474ae1c 100644
--- a/source/nmbd/nmbd_processlogon.c
+++ b/source/nmbd/nmbd_processlogon.c
@@ -434,7 +434,7 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x 
lm_20 token=%x\n,
char *component, *dc, *q1;
char *q_orig = q;
int str_offset;
-   char *saveptr;
+   char *saveptr = NULL;
 
domain = get_mydnsdomname(talloc_tos());
if (!domain) {


-- 
Samba Shared Repository


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

2008-08-20 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  d0a4b9f69984ca5da0007af91013f1bc78dcbf2b (commit)
  from  2a5ae59f77c05c41c97747dee9bc8c196dfe6b89 (commit)

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


- Log -
commit d0a4b9f69984ca5da0007af91013f1bc78dcbf2b
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Wed Aug 20 18:40:58 2008 +0200

fix build warning.

Guenther
(cherry picked from commit a75055be5ff7ebe3476cfac86c6597a56a843c23)

---

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


Changeset truncated at 500 lines:

diff --git a/source/nmbd/nmbd_processlogon.c b/source/nmbd/nmbd_processlogon.c
index 6e110dd..d99b535 100644
--- a/source/nmbd/nmbd_processlogon.c
+++ b/source/nmbd/nmbd_processlogon.c
@@ -399,7 +399,7 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x 
lm_20 token=%x\n,
char *component, *dc, *q1;
char *q_orig = q;
int str_offset;
-   char *saveptr;
+   char *saveptr = NULL;
 
domain = get_mydnsdomname(talloc_tos());
if (!domain) {


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-devel updated - release-3-2-0pre2-3776-g6ad2090

2008-08-20 Thread Michael Adam
The branch, v3-devel has been updated
   via  6ad2090391a92ebe822b2d7b80e180c251dc8e7a (commit)
   via  702c0bc04668117e3521d687b9b5a87fd7e0f1b1 (commit)
   via  c3c3dadcab81f0a1ae8834e85e7e80a3da6601fb (commit)
   via  ead9b9d7167d999d73cf4111f3b321236aac2a15 (commit)
  from  a75055be5ff7ebe3476cfac86c6597a56a843c23 (commit)

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


- Log -
commit 6ad2090391a92ebe822b2d7b80e180c251dc8e7a
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 14:56:18 2008 +0200

build: fix bug #5590 by not linking in the static libs but the objects.

Michael

commit 702c0bc04668117e3521d687b9b5a87fd7e0f1b1
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 14:55:24 2008 +0200

build: fall down to the same place when using an internal lib statically.

Michael

commit c3c3dadcab81f0a1ae8834e85e7e80a3da6601fb
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 14:47:26 2008 +0200

build: remove duplicated and hardcoded definition of LIBSMBSHAREMODES

Michael

commit ead9b9d7167d999d73cf4111f3b321236aac2a15
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 13:22:13 2008 +0200

build: rename LIBNETAPI_OBJ1 to LIBNETAPI_OBJ0 for consistency.

Michael

---

Summary of changes:
 source/Makefile.in   |   10 --
 source/m4/aclocal.m4 |4 ++--
 2 files changed, 6 insertions(+), 8 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/Makefile.in b/source/Makefile.in
index 8e76dcf..d026e52 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -1824,7 +1824,7 @@ shlibs test_shlibs: @LIBADDNS_SHARED@
 #
 #---
 
-LIBNETAPI_OBJ1 = lib/netapi/netapi.o \
+LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
 lib/netapi/cm.o \
 librpc/gen_ndr/ndr_libnetapi.o \
 lib/netapi/libnetapi.o \
@@ -1837,7 +1837,7 @@ LIBNETAPI_OBJ1 = lib/netapi/netapi.o \
 lib/netapi/samr.o \
 lib/netapi/sid.o
 
-LIBNETAPI_OBJ  = $(LIBNETAPI_OBJ1) $(LIBNET_OBJ) \
+LIBNETAPI_OBJ  = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
 $(LIBSMBCONF_OBJ) \
 $(REG_SMBCONF_OBJ) \
 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
@@ -1869,9 +1869,9 @@ $(LIBNETAPI_SHARED_TARGET): 
$(LIBNETAPI_SHARED_TARGET_SONAME)
@rm -f $@
@ln -s -f `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
 
-$(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ1)
+$(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
@echo Linking non-shared library $@
-   @-$(AR) -rc $@ $(LIBNETAPI_OBJ1)
+   @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
 
 libnetapi: $(LIBNETAPI)
 
@@ -1989,8 +1989,6 @@ LIBSMBSHAREMODES=$(LIBSMBSHAREMODES_STATIC_TARGET) 
@LIBSMBSHAREMODES_SHARED@
 #LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/[EMAIL PROTECTED]@
 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
 
-LIBSMBSHAREMODES=bin/libsmbsharemodes.a @LIBSMBSHAREMODES_SHARED@
-
 $(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) 
$(LIBSMBSHAREMODES_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
@echo Linking shared library $@
@$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
diff --git a/source/m4/aclocal.m4 b/source/m4/aclocal.m4
index 53ad46c..9a4213d 100644
--- a/source/m4/aclocal.m4
+++ b/source/m4/aclocal.m4
@@ -139,7 +139,7 @@ if eval test x$build_lib = xyes ; then
LIBUC[_SHARED]=$LIBUC[_SHARED_TARGET]
AC_MSG_RESULT(yes)
if test x$USESHARED != xtrue -o x$[LINK_]LIBUC = 
xSTATIC ; then
-   LIBUC[_STATIC]=$LIBUC[_STATIC_TARGET]
+   enable_static=yes
else
LIBUC[_LIBS]=LIBLIBS
fi
@@ -152,7 +152,7 @@ else
AC_MSG_RESULT(shared library not selected, but will supply static 
library)
 fi
 if test $enable_static = yes; then
-   LIBUC[_STATIC]=$LIBUC[_STATIC_TARGET]
+   LIBUC[_STATIC]=[\$\(]LIBUC[_OBJ0\)]
 fi
 
 m4_popdef([LIBNAME])


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-devel updated - release-3-2-0pre2-3780-g11458f9

2008-08-20 Thread Michael Adam
The branch, v3-devel has been updated
   via  11458f9a9ac17c68aa0496d2ade4b93d02e7ebcc (commit)
   via  f1d84e76bb6935e80b01d13414980f8de1f71824 (commit)
   via  02d4b820fccfef1387f47db4bb5ade3dfd0d25bb (commit)
   via  d6fb6348a3672e915556dcb36c1a4999d4abae18 (commit)
  from  6ad2090391a92ebe822b2d7b80e180c251dc8e7a (commit)

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


- Log -
commit 11458f9a9ac17c68aa0496d2ade4b93d02e7ebcc
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 22:34:26 2008 +0200

gitignore: add libsmbsharemodes.syms - this is now generated

Michael

commit f1d84e76bb6935e80b01d13414980f8de1f71824
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 15:09:27 2008 +0200

build: auto-generate symbols for libsmbsharemodes.

Michael

commit 02d4b820fccfef1387f47db4bb5ade3dfd0d25bb
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 22:33:17 2008 +0200

gitignore: add libsmbclient.syms - this is now generated

Michael

commit d6fb6348a3672e915556dcb36c1a4999d4abae18
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 15:06:02 2008 +0200

build: autogenerate symbols for libsmbclient.so

Michael

---

Summary of changes:
 .gitignore   |2 ++
 source/Makefile.in   |   14 ++
 source/exports/libsmbclient.syms |4 
 source/exports/libsmbsharemodes.syms |3 ---
 4 files changed, 12 insertions(+), 11 deletions(-)
 delete mode 100644 source/exports/libsmbclient.syms
 delete mode 100644 source/exports/libsmbsharemodes.syms


Changeset truncated at 500 lines:

diff --git a/.gitignore b/.gitignore
index 5e779f1..dcb8451 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,6 +32,8 @@ source/cscope.out
 source/torture.tdb
 source/pkgconfig/*.pc
 source/st
+source/exports/libsmbclient.syms
+source/exports/libsmbsharemodes.syms
 source/exports/libnetapi.syms
 source/exports/libtalloc.syms
 source/exports/libtdb.syms
diff --git a/source/Makefile.in b/source/Makefile.in
index d026e52..923a600 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -1917,10 +1917,13 @@ [EMAIL PROTECTED]@
 
LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER)
 [EMAIL PROTECTED]@
 LIBSMBCLIENT=$(LIBSMBCLIENT_STATIC_TARGET) @LIBSMBCLIENT_SHARED@
-#LIBSMBCLIENT_SYMS=$(srcdir)/exports/[EMAIL PROTECTED]@
+LIBSMBCLIENT_SYMS=$(srcdir)/exports/[EMAIL PROTECTED]@
 LIBSMBCLIENT_HEADERS=$(srcdir)/include/libsmbclient.h
 
-$(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) 
@LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
+$(LIBSMBCLIENT_SYMS): $(LIBSMBCLIENT_HEADERS)
+   @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBCLIENT_HEADERS)
+
+$(LIBSMBCLIENT_SHARED_TARGET_SONAME): $(BINARY_PREREQS) $(LIBSMBCLIENT_OBJ) 
$(LIBSMBCLIENT_SYMS) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@ @LIBWBCLIENT_SHARED@
@echo Linking shared library $@
@$(SHLD_DSO) $(LIBSMBCLIENT_OBJ) \
$(LIBTALLOC_LIBS) $(LIBTDB_LIBS) $(WINBIND_LIBS) $(LIBS) \
@@ -1986,10 +1989,13 @@ [EMAIL PROTECTED]@
 
LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER)
 [EMAIL PROTECTED]@
 LIBSMBSHAREMODES=$(LIBSMBSHAREMODES_STATIC_TARGET) @LIBSMBSHAREMODES_SHARED@
-#LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/[EMAIL PROTECTED]@
+LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/[EMAIL PROTECTED]@
 LIBSMBSHAREMODES_HEADERS=$(srcdir)/include/smb_share_modes.h
 
-$(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) 
$(LIBSMBSHAREMODES_OBJ) @LIBTALLOC_SHARED@ @LIBTDB_SHARED@
+$(LIBSMBSHAREMODES_SYMS): $(LIBSMBSHAREMODES_HEADERS)
+   @$(MKSYMS_SH) $(AWK) $@ $(LIBSMBSHAREMODES_HEADERS)
+
+$(LIBSMBSHAREMODES_SHARED_TARGET_SONAME): $(BINARY_PREREQS) 
$(LIBSMBSHAREMODES_OBJ) $(LIBSMBSHAREMODES_SYMS) @LIBTALLOC_SHARED@ 
@LIBTDB_SHARED@
@echo Linking shared library $@
@$(SHLD_DSO) $(LIBSMBSHAREMODES_OBJ) \
$(LIBS) $(LIBTALLOC_LIBS) $(LIBTDB_LIBS) \
diff --git a/source/exports/libsmbclient.syms b/source/exports/libsmbclient.syms
deleted file mode 100644
index 3062e34..000
--- a/source/exports/libsmbclient.syms
+++ /dev/null
@@ -1,4 +0,0 @@
-{
-   global: smbc_*;
-   local: *;
-};
diff --git a/source/exports/libsmbsharemodes.syms 
b/source/exports/libsmbsharemodes.syms
deleted file mode 100644
index eb34bfc..000
--- a/source/exports/libsmbsharemodes.syms
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-   global: *;
-};


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-devel updated - release-3-2-0pre2-3782-ge5c4cbb

2008-08-20 Thread Michael Adam
The branch, v3-devel has been updated
   via  e5c4cbbf5a4b3e5db1732043a74cd1f4a5eec136 (commit)
   via  fdf29c1cdf6b9bd1c6fb7a9f070084e0df5470bb (commit)
  from  11458f9a9ac17c68aa0496d2ade4b93d02e7ebcc (commit)

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


- Log -
commit e5c4cbbf5a4b3e5db1732043a74cd1f4a5eec136
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 22:31:53 2008 +0200

gitignore: add examples/libsmbclient/tree

Michael

commit fdf29c1cdf6b9bd1c6fb7a9f070084e0df5470bb
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 22:31:07 2008 +0200

gitignore: add lib/netapi/tests/Makefile

Michael

---

Summary of changes:
 .gitignore |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/.gitignore b/.gitignore
index dcb8451..ca09083 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,6 +12,7 @@ source/include/stamp-h
 source/include/version.h
 source/Makefile
 source/lib/netapi/examples/Makefile
+source/lib/netapi/tests/Makefile
 source/config.log
 source/config.status
 source/configure
@@ -63,6 +64,7 @@ examples/libsmbclient/teststat3
 examples/libsmbclient/testutime
 examples/libsmbclient/testwrite
 examples/libsmbclient/testtruncate
+examples/libsmbclient/tree
 source/librpc/gen_ndr/cli_krb5pac.*
 source/librpc/gen_ndr/cli_messaging.*
 source/librpc/gen_ndr/cli_misc.*


-- 
Samba Shared Repository


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

2008-08-20 Thread Michael Adam
The branch, v3-3-test has been updated
   via  53cb5c7336d898c75915b9ab368069b087ca61f5 (commit)
   via  df01ba06121430ec7f151fa9ffc518425d9d7be6 (commit)
   via  fd83cc1b47e776263ea3f3cb12a17195f4f6847e (commit)
   via  58628cb4bcf3417c8d242b556bb353ba0ebe6295 (commit)
   via  a0b90e42fe24e42b785111428836078b194728de (commit)
   via  f5c484caa57c6aff276118d7c901dda33d32cf3b (commit)
   via  d6e32fdef7a321081de6cffa6e25efe0245c40ee (commit)
   via  8e19123bf0732974ce2df25cca4216b1bd17ca24 (commit)
   via  c46f0450e570074bf2530785cacb799e91f81435 (commit)
   via  6048ac2981d584e7801d80b8cd7bb11bf6032db9 (commit)
   via  bbb3f6e9b5abdbe321ad0658c442d5bc6c3a4477 (commit)
   via  38f4a77feafdd9c40e1cb670c5e0cd971f130706 (commit)
   via  fd2595b4cf18de08a3124be0080a2c28bdb130ba (commit)
   via  b809c5190c9704af8ec4d0157afa6df03ad5a42a (commit)
   via  4ceb2abb859dc21a8aa2d55bfe5c594dcfad (commit)
   via  5550e3903d41927a078084e22539b697c19773b0 (commit)
   via  ae45ea1debc38c0c01da3f8cc1dddcc0d1ff30e2 (commit)
   via  c22842440dc1732a77e0bce71fff421b1bca0151 (commit)
   via  e4f2815158bd74245e6c4d7f10d59254e095846c (commit)
   via  d498bdf6e8d77db221bea79b3c0d4a2dd415be46 (commit)
   via  43a26e856aa39cd70d1428b554532ea6c3f2018c (commit)
   via  cf89392a74e84fdd9bfbeb6e9c0bbf2ce298f115 (commit)
   via  6a5447b15a1b534659e62e929688b6a9d742e2be (commit)
   via  02dc99ef564ca7c2da322d2942cf28aeb7bcae2f (commit)
   via  253c3ae70674daa4ad619c2dd66ad8b0c02af908 (commit)
  from  b0c63c062fe90e4a4ec61ff5b5849e758834b8d7 (commit)

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


- Log -
commit 53cb5c7336d898c75915b9ab368069b087ca61f5
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 22:31:53 2008 +0200

gitignore: add examples/libsmbclient/tree

Michael
(cherry picked from commit e5c4cbbf5a4b3e5db1732043a74cd1f4a5eec136)

commit df01ba06121430ec7f151fa9ffc518425d9d7be6
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 22:31:07 2008 +0200

gitignore: add lib/netapi/tests/Makefile

Michael
(cherry picked from commit fdf29c1cdf6b9bd1c6fb7a9f070084e0df5470bb)

commit fd83cc1b47e776263ea3f3cb12a17195f4f6847e
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 22:34:26 2008 +0200

gitignore: add libsmbsharemodes.syms - this is now generated

Michael
(cherry picked from commit 11458f9a9ac17c68aa0496d2ade4b93d02e7ebcc)

commit 58628cb4bcf3417c8d242b556bb353ba0ebe6295
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 15:09:27 2008 +0200

build: auto-generate symbols for libsmbsharemodes.

Michael
(cherry picked from commit f1d84e76bb6935e80b01d13414980f8de1f71824)

commit a0b90e42fe24e42b785111428836078b194728de
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 22:33:17 2008 +0200

gitignore: add libsmbclient.syms - this is now generated

Michael
(cherry picked from commit 02d4b820fccfef1387f47db4bb5ade3dfd0d25bb)

commit f5c484caa57c6aff276118d7c901dda33d32cf3b
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 15:06:02 2008 +0200

build: autogenerate symbols for libsmbclient.so

Michael
(cherry picked from commit d6fb6348a3672e915556dcb36c1a4999d4abae18)

commit d6e32fdef7a321081de6cffa6e25efe0245c40ee
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 14:56:18 2008 +0200

build: fix bug #5590 by not linking in the static libs but the objects.

Michael
(cherry picked from commit 6ad2090391a92ebe822b2d7b80e180c251dc8e7a)

commit 8e19123bf0732974ce2df25cca4216b1bd17ca24
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 14:55:24 2008 +0200

build: fall down to the same place when using an internal lib statically.

Michael
(cherry picked from commit 702c0bc04668117e3521d687b9b5a87fd7e0f1b1)

commit c46f0450e570074bf2530785cacb799e91f81435
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 14:47:26 2008 +0200

build: remove duplicated and hardcoded definition of LIBSMBSHAREMODES

Michael
(cherry picked from commit c3c3dadcab81f0a1ae8834e85e7e80a3da6601fb)

commit 6048ac2981d584e7801d80b8cd7bb11bf6032db9
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 13:22:13 2008 +0200

build: rename LIBNETAPI_OBJ1 to LIBNETAPI_OBJ0 for consistency.

Michael
(cherry picked from commit ead9b9d7167d999d73cf4111f3b321236aac2a15)

commit bbb3f6e9b5abdbe321ad0658c442d5bc6c3a4477
Author: Michael Adam [EMAIL PROTECTED]
Date:   Fri Aug 15 15:55:17 2008 +0200

configure: use libdir=${prefix}/lib and modules=${libdir}/samba as default 
with-fhs.

This is what one actually wants:
Shared/static libs in /usr/lib, shared modules and so on in /usr/lib/samba.

Michael
(cherry picked from commit 

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

2008-08-20 Thread Michael Adam
The branch, v3-2-test has been updated
   via  24459c7eda080a4fed2d4f2a576c97f878f905f9 (commit)
   via  f3ad03d0f909ff862411511d9f63e77047034c01 (commit)
   via  8dd57f31b2ba621654f989e1ed58bd2dd80b7849 (commit)
  from  d0a4b9f69984ca5da0007af91013f1bc78dcbf2b (commit)

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


- Log -
commit 24459c7eda080a4fed2d4f2a576c97f878f905f9
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 14:56:18 2008 +0200

build: fix bug #5590 by not linking in the static libs but the objects.

Michael
(cherry picked from commit 6ad2090391a92ebe822b2d7b80e180c251dc8e7a)

commit f3ad03d0f909ff862411511d9f63e77047034c01
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 14:55:24 2008 +0200

build: fall down to the same place when using an internal lib statically.

Michael
(cherry picked from commit 702c0bc04668117e3521d687b9b5a87fd7e0f1b1)

commit 8dd57f31b2ba621654f989e1ed58bd2dd80b7849
Author: Michael Adam [EMAIL PROTECTED]
Date:   Wed Aug 20 13:22:13 2008 +0200

build: rename LIBNETAPI_OBJ1 to LIBNETAPI_OBJ0 for consistency.

Michael
(cherry picked from commit ead9b9d7167d999d73cf4111f3b321236aac2a15)

---

Summary of changes:
 source/Makefile.in   |8 
 source/m4/aclocal.m4 |4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/Makefile.in b/source/Makefile.in
index 11f7085..2a8bec0 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -1798,7 +1798,7 @@ shlibs test_shlibs: @LIBADDNS_SHARED@
 #
 #---
 
-LIBNETAPI_OBJ1 = lib/netapi/netapi.o \
+LIBNETAPI_OBJ0 = lib/netapi/netapi.o \
 lib/netapi/cm.o \
 librpc/gen_ndr/ndr_libnetapi.o \
 lib/netapi/libnetapi.o \
@@ -1807,7 +1807,7 @@ LIBNETAPI_OBJ1 = lib/netapi/netapi.o \
 lib/netapi/getdc.o \
 lib/netapi/user.o
 
-LIBNETAPI_OBJ  = $(LIBNETAPI_OBJ1) $(LIBNET_OBJ) \
+LIBNETAPI_OBJ  = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \
 $(LIBSMBCONF_OBJ) \
 $(REG_SMBCONF_OBJ) \
 $(PARAM_WITHOUT_REG_OBJ) $(LIB_NONSMBD_OBJ) \
@@ -1838,9 +1838,9 @@ $(LIBNETAPI_SHARED_TARGET): 
$(LIBNETAPI_SHARED_TARGET_SONAME)
@rm -f $@
@ln -s -f `basename $(LIBNETAPI_SHARED_TARGET_SONAME)` $@
 
-$(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ1)
+$(LIBNETAPI_STATIC_TARGET): $(BINARY_PREREQS) $(LIBNETAPI_OBJ0)
@echo Linking non-shared library $@
-   @-$(AR) -rc $@ $(LIBNETAPI_OBJ1)
+   @-$(AR) -rc $@ $(LIBNETAPI_OBJ0)
 
 libnetapi: $(LIBNETAPI)
 
diff --git a/source/m4/aclocal.m4 b/source/m4/aclocal.m4
index 53ad46c..9a4213d 100644
--- a/source/m4/aclocal.m4
+++ b/source/m4/aclocal.m4
@@ -139,7 +139,7 @@ if eval test x$build_lib = xyes ; then
LIBUC[_SHARED]=$LIBUC[_SHARED_TARGET]
AC_MSG_RESULT(yes)
if test x$USESHARED != xtrue -o x$[LINK_]LIBUC = 
xSTATIC ; then
-   LIBUC[_STATIC]=$LIBUC[_STATIC_TARGET]
+   enable_static=yes
else
LIBUC[_LIBS]=LIBLIBS
fi
@@ -152,7 +152,7 @@ else
AC_MSG_RESULT(shared library not selected, but will supply static 
library)
 fi
 if test $enable_static = yes; then
-   LIBUC[_STATIC]=$LIBUC[_STATIC_TARGET]
+   LIBUC[_STATIC]=[\$\(]LIBUC[_OBJ0\)]
 fi
 
 m4_popdef([LIBNAME])


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-devel updated - release-3-2-0pre2-3783-g8027197

2008-08-20 Thread Jeremy Allison
The branch, v3-devel has been updated
   via  8027197635b988b3dcf9d3d00126a024e768fa62 (commit)
  from  e5c4cbbf5a4b3e5db1732043a74cd1f4a5eec136 (commit)

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


- Log -
commit 8027197635b988b3dcf9d3d00126a024e768fa62
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Wed Aug 20 16:24:22 2008 -0700

Here is a re-working of the winbindd
reconnect code to cope with rebooting a DC. This
replaces the code I asked Volker to revert.
The logic is pretty simple. It adds a new parameter,
winbind reconnect delay, set to 30 seconds by
default, which determines how long to wait between
connection attempts.
To avoid overwhelming the box with DC-probe
forked children, the code now keeps track of
the DC probe child per winbindd_domain struct
and only starts a new one if the existing one
has died.
I also added a little logic to make sure the
dc probe child always sends a message whatever
the reason for exit so we will always reschedule
another connect attempt.
Also added documentation.
Jeremy.

---

Summary of changes:
 .../smbdotconf/winbind/winbindreconnectdelay.xml   |   15 
 source/include/proto.h |1 +
 source/param/loadparm.c|   12 ++
 source/winbindd/winbindd.h |1 +
 source/winbindd/winbindd_cm.c  |   39 
 source/winbindd/winbindd_util.c|2 +-
 6 files changed, 61 insertions(+), 9 deletions(-)
 create mode 100644 docs-xml/smbdotconf/winbind/winbindreconnectdelay.xml


Changeset truncated at 500 lines:

diff --git a/docs-xml/smbdotconf/winbind/winbindreconnectdelay.xml 
b/docs-xml/smbdotconf/winbind/winbindreconnectdelay.xml
new file mode 100644
index 000..2da263e
--- /dev/null
+++ b/docs-xml/smbdotconf/winbind/winbindreconnectdelay.xml
@@ -0,0 +1,15 @@
+samba:parameter name=winbind reconnect delay
+ context=G
+type=integer
+ advanced=1 developer=1
+ xmlns:samba=http://www.samba.org/samba/DTD/samba-doc;
+description
+   paraThis parameter specifies the number of
+   seconds the citerefentryrefentrytitlewinbindd/refentrytitle
+   manvolnum8/manvolnum/citerefentry daemon will wait between
+   attempts to contact a Domain controller for a domain that is
+   determined to be down or not contactable./para
+/description
+
+value type=default30/value
+/samba:parameter
diff --git a/source/include/proto.h b/source/include/proto.h
index 3d0d419..d3a8dbb 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -6049,6 +6049,7 @@ int lp_directory_name_cache_size(int );
 int lp_smb_encrypt(int );
 char lp_magicchar(const struct share_params *p );
 int lp_winbind_cache_time(void);
+int lp_winbind_reconnect_delay(void);
 const char **lp_winbind_nss_info(void);
 int lp_algorithmic_rid_base(void);
 int lp_name_cache_timeout(void);
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index bc111df..6817eca 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -240,6 +240,7 @@ struct global {
int map_to_guest;
int oplock_break_wait_time;
int winbind_cache_time;
+   int winbind_reconnect_delay;
int winbind_max_idle_children;
char **szWinbindNssInfo;
int iLockSpinTime;
@@ -4363,6 +4364,15 @@ static struct parm_struct parm_table[] = {
.flags  = FLAG_ADVANCED,
},
{
+   .label  = winbind reconnect delay,
+   .type   = P_INTEGER,
+   .p_class= P_GLOBAL,
+   .ptr= Globals.winbind_reconnect_delay,
+   .special= NULL,
+   .enum_list  = NULL,
+   .flags  = FLAG_ADVANCED,
+   },
+   {
.label  = winbind enum users,
.type   = P_BOOL,
.p_class= P_GLOBAL,
@@ -4829,6 +4839,7 @@ static void init_globals(bool first_time_only)
Globals.clustering = False;
 
Globals.winbind_cache_time = 300;   /* 5 minutes */
+   Globals.winbind_reconnect_delay = 30;   /* 30 seconds */
Globals.bWinbindEnumUsers = False;
Globals.bWinbindEnumGroups = False;
Globals.bWinbindUseDefaultDomain = False;
@@ -5341,6 +5352,7 @@ FN_LOCAL_INTEGER(lp_directory_name_cache_size, 
iDirectoryNameCacheSize)
 FN_LOCAL_INTEGER(lp_smb_encrypt, ismb_encrypt)
 FN_LOCAL_CHAR(lp_magicchar, magic_char)
 FN_GLOBAL_INTEGER(lp_winbind_cache_time, Globals.winbind_cache_time)
+FN_GLOBAL_INTEGER(lp_winbind_reconnect_delay, Globals.winbind_reconnect_delay)
 FN_GLOBAL_LIST(lp_winbind_nss_info, 

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

2008-08-20 Thread Jeremy Allison
The branch, v3-3-test has been updated
   via  1d87a36cb08f1aca093164d7ddb9ba1f077ebf61 (commit)
  from  53cb5c7336d898c75915b9ab368069b087ca61f5 (commit)

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


- Log -
commit 1d87a36cb08f1aca093164d7ddb9ba1f077ebf61
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Wed Aug 20 16:23:13 2008 -0700

Here is a re-working of the winbindd
reconnect code to cope with rebooting a DC. This
replaces the code I asked Volker to revert.
The logic is pretty simple. It adds a new parameter,
winbind reconnect delay, set to 30 seconds by
default, which determines how long to wait between
connection attempts.
To avoid overwhelming the box with DC-probe
forked children, the code now keeps track of
the DC probe child per winbindd_domain struct
and only starts a new one if the existing one
has died.
I also added a little logic to make sure the
dc probe child always sends a message whatever
the reason for exit so we will always reschedule
another connect attempt.
Also added documentation.
Jeremy.

---

Summary of changes:
 .../smbdotconf/winbind/winbindreconnectdelay.xml   |   15 
 source/include/proto.h |1 +
 source/param/loadparm.c|   12 ++
 source/winbindd/winbindd.h |1 +
 source/winbindd/winbindd_cm.c  |   39 
 source/winbindd/winbindd_util.c|2 +-
 6 files changed, 61 insertions(+), 9 deletions(-)
 create mode 100644 docs-xml/smbdotconf/winbind/winbindreconnectdelay.xml


Changeset truncated at 500 lines:

diff --git a/docs-xml/smbdotconf/winbind/winbindreconnectdelay.xml 
b/docs-xml/smbdotconf/winbind/winbindreconnectdelay.xml
new file mode 100644
index 000..2da263e
--- /dev/null
+++ b/docs-xml/smbdotconf/winbind/winbindreconnectdelay.xml
@@ -0,0 +1,15 @@
+samba:parameter name=winbind reconnect delay
+ context=G
+type=integer
+ advanced=1 developer=1
+ xmlns:samba=http://www.samba.org/samba/DTD/samba-doc;
+description
+   paraThis parameter specifies the number of
+   seconds the citerefentryrefentrytitlewinbindd/refentrytitle
+   manvolnum8/manvolnum/citerefentry daemon will wait between
+   attempts to contact a Domain controller for a domain that is
+   determined to be down or not contactable./para
+/description
+
+value type=default30/value
+/samba:parameter
diff --git a/source/include/proto.h b/source/include/proto.h
index 0e089b0..9554c92 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -6067,6 +6067,7 @@ int lp_directory_name_cache_size(int );
 int lp_smb_encrypt(int );
 char lp_magicchar(const struct share_params *p );
 int lp_winbind_cache_time(void);
+int lp_winbind_reconnect_delay(void);
 const char **lp_winbind_nss_info(void);
 int lp_algorithmic_rid_base(void);
 int lp_name_cache_timeout(void);
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index bc111df..6817eca 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -240,6 +240,7 @@ struct global {
int map_to_guest;
int oplock_break_wait_time;
int winbind_cache_time;
+   int winbind_reconnect_delay;
int winbind_max_idle_children;
char **szWinbindNssInfo;
int iLockSpinTime;
@@ -4363,6 +4364,15 @@ static struct parm_struct parm_table[] = {
.flags  = FLAG_ADVANCED,
},
{
+   .label  = winbind reconnect delay,
+   .type   = P_INTEGER,
+   .p_class= P_GLOBAL,
+   .ptr= Globals.winbind_reconnect_delay,
+   .special= NULL,
+   .enum_list  = NULL,
+   .flags  = FLAG_ADVANCED,
+   },
+   {
.label  = winbind enum users,
.type   = P_BOOL,
.p_class= P_GLOBAL,
@@ -4829,6 +4839,7 @@ static void init_globals(bool first_time_only)
Globals.clustering = False;
 
Globals.winbind_cache_time = 300;   /* 5 minutes */
+   Globals.winbind_reconnect_delay = 30;   /* 30 seconds */
Globals.bWinbindEnumUsers = False;
Globals.bWinbindEnumGroups = False;
Globals.bWinbindUseDefaultDomain = False;
@@ -5341,6 +5352,7 @@ FN_LOCAL_INTEGER(lp_directory_name_cache_size, 
iDirectoryNameCacheSize)
 FN_LOCAL_INTEGER(lp_smb_encrypt, ismb_encrypt)
 FN_LOCAL_CHAR(lp_magicchar, magic_char)
 FN_GLOBAL_INTEGER(lp_winbind_cache_time, Globals.winbind_cache_time)
+FN_GLOBAL_INTEGER(lp_winbind_reconnect_delay, Globals.winbind_reconnect_delay)
 FN_GLOBAL_LIST(lp_winbind_nss_info, 

Build status as of Thu Aug 21 00:00:02 2008

2008-08-20 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2008-08-20 
00:00:12.0 +
+++ /home/build/master/cache/broken_results.txt 2008-08-21 00:00:53.0 
+
@@ -1,4 +1,4 @@
-Build status as of Wed Aug 20 00:00:02 2008
+Build status as of Thu Aug 21 00:00:02 2008
 
 Build counts:
 Tree Total  Broken Panic 
@@ -6,18 +6,18 @@
 ccache   30 9  0 
 ctdb 0  0  0 
 distcc   1  0  0 
-ldb  31 30 0 
-libreplace   31 11 0 
+ldb  30 29 0 
+libreplace   30 11 0 
 lorikeet-heimdal 25 20 0 
 pidl 17 9  0 
 ppp  9  0  0 
 rsync31 12 0 
 samba-docs   0  0  0 
 samba-gtk6  6  0 
-samba_3_X_devel 26 21 0 
-samba_3_X_test 27 24 0 
+samba_3_X_devel 25 16 0 
+samba_3_X_test 27 16 0 
 samba_4_0_test 29 24 0 
-smb-build30 4  0 
-talloc   30 5  0 
-tdb  31 12 0 
+smb-build29 4  0 
+talloc   29 5  0 
+tdb  30 12 0