[Samba] [Announce] Samba 3.0.36 Maintenance Release Available

2009-08-05 Thread Karolin Seeger

Because things are the way they are,
 things will not stay the way they are.

 Bertolt Brecht


Release Announcements
=


This is the latest bugfix release of the Samba 3.0 series.

Please note, that the 3.0 series will be DISCONTINUED after this release!
There will be neither any bugfix release nor any security release. Updating
to the latest release series is strongly recommended. For more information
on current Samba releases, please see

http://wiki.samba.org/index.php/Samba3_Release_Planning


Major enhancements included in Samba 3.0.36 are:

   o Fix Winbind crash on 'getent group' (bug #5906).
   o Excel save operation corrupts file ACLs (bug #4308).
   o Prevent segmentation fault on joining a very long domain name.


##
Changes
###

Changes since 3.0.35



o   Michael Adam ob...@samba.org
* BUG 5906: Fix Winbind crash on 'getent group'.
* BUG 6066: netinet/ip.h present but cannot be compiled on Solaris.


o   Jeremy Allison j...@samba.org
* BUG 4308: Excel save operation corrupts file ACLs.
* BUG 6099: In order to allow Win7 to connect to a Samba NT style
* BUG 6279: Fix Winbind crash.
  PDC we set the flags before we know if it's an error or not.
* Fix logic error in try_chown.
* Correctly use chroot().
* Fix bug in processing of open modes in POSIX open.


o   Günther Deschner g...@samba.org
* Don't install the cifs.upcall binary twice.


o   Steve French smfre...@gmail.com
* BUG 4640: Fix guest mounts in mount-cifs.
* Fix mount.cifs handling of -V option.


o   Bhaskar Jain (bhajain) bhaj...@cisco.com
* Prevent segmentation fault on joining a very long domain name.


o   Günter Kukkukk li...@kukkukk.com
* Don't try and delete a default ACL from a file.


o   Volker Lendecke v...@samba.org
* Add workaround for MS KB932762.


o   Shirish Pargaonkar shirishpargaon...@gmail.com
* BUG 4370: Clean-up entries in /etc/mtab after unmount.
* Add fakemount (-f) and nomtab (-n) flags to mount.cifs.


o   Ted Percival ted.perci...@quest.com
* Fix a crash during name resolution when log level = 10
  and libc segfaults if printf is passed NULL for a %s arg
 (eg. Solaris).


o   Miguel Suarez miguel.sua...@stratus.com
* BUG 6085: Fix build of vfs_default.


o   Yasuma Takeda yas...@osstech.co.jp
* BUG 6098: When the DNS server is invalid, the ads_find_dc() does not work
  correctly.

##
Reporting bugs  Development Discussion
###

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

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


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



Download Details


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

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

The release notes are available online at:

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

Binary packages will be made available on a volunteer basis from

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

Our Code, Our Bugs, Our Responsibility.
(https://bugzilla.samba.org/)

--Enjoy
The Samba Team




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

[Samba] Additional file info (Properties-Summary)

2009-08-05 Thread kubek1982

Hello all,

I am dealing with a following problem - I can't see additional 
information about few file types stored in samba share.
I mean file fields like Author and Subject which are accessible from 
Windows - Properties-Summary.
I can put data to these fields when the file is stored on Windows File 
System. But whenever I transfer it to samba share, these values are 
lost. What is more, tab Properties-Summary is no longer accesible (so I 
could put proper values once more). This concerns inter alia the 
following file types:

*.txt
*.msg / *.eml
*.mpg
etc...

What is more, i.e. for *.pdf files, data in fields Author and 
Subject is not lost, but is not editable when the file is on samba share.


For *.doc, *.xls (MS Office) it is possible to access and modify 
Properties-Summary tab even for files from samba share.


Could You please let me know how can I make samba (or Windows) enable 
users to access and/or modify the additional file fields which work with 
MS Office well?


Thanks in advance for Your help,

Chris

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

Re: [Samba] Additional file info (Properties-Summary)

2009-08-05 Thread Volker Lendecke
On Wed, Aug 05, 2009 at 12:58:24PM +0200, kubek1982 wrote:
 Could You please let me know how can I make samba (or Windows) enable  
 users to access and/or modify the additional file fields which work with  
 MS Office well?

What you need are alternate data streams. Look at the
streams_xattr module in Samba 3.3.

Volker


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

Re: [Samba] Samba HA issue

2009-08-05 Thread Liutauras Adomaitis
On Tue, Aug 4, 2009 at 7:39 PM, David
Christensendavid.christen...@viveli.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 With samba configured for high availability using heartbeat, I am not
 able to join new computers to the domain after a fail over.  If I fail
 back to the main samba instance I can join the computer to the domain.

 However With samba in a fail over state and running on the backup PDC
 users can still authenticate and gain access to their shares.

 I have the two instances of samba configured nearly identical except for
 having them pointed to the instance of ldap that is running on the
 server itself (which is being replicated).  Is there something else,
 some tdb file etc,  that needs to be shared between the two instances of
 samba so a fail over appears identical to the ldap backend?

 Thanks.

If you are running PDC+BDC configuration with LDAP backend with
replication, then you must have master to master replication. In case
of master - slave replication you canot write ot slave while your
muster is not accessible. Usual slave has a redirection to master for
write operations. Slave is readonly and thats why you can authenticate
to BDC, but cannot join new machines to the domain.
This may be your case

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


[Samba] inotify_handler No data on inotify fd?

2009-08-05 Thread Kyle Schmitt
I've got a samba server that's occasionally spewing inotify errors.

The classic, smbd/notify_inotify.c:inotify_handler No data on inotify
fd? type errors solved by
kernel change notify = false

Now, everything is working perfectly on this box unless one or two
users leave files open from specific machines (this is as far as I can
tell, it's hard to get good info from the users sometimes, but it's
what the logs indicate).

Because of this, I would rather not put in the kernel change notify =
false line, so I'm wondering if there's another good solution.

When I logged into the server, lsof told me the offending client had a
single Excel file open about 1300 times, and I found their samba
process had been running for 14 hours.

What if I set limits, lets say hard and soft limits for open files to
512, or 128, and cpu time limits of 4 hours or so.
Would that cause issues for my users?
Would that have killed the misbehaving client, or at least kept it
from choking my system?
Will samba behave OK, if a user's samba process runs out of open file
handles, or will it instead fill my logs even faster?

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


Re: [Samba] inotify_handler No data on inotify fd?

2009-08-05 Thread Andrew Masterson
 -Original Message-
 From: samba-boun...@lists.samba.org
[mailto:samba-boun...@lists.samba.org]
 On Behalf Of Kyle Schmitt
 Sent: Wednesday, August 05, 2009 8:07 AM
 To: samba
 Subject: [Samba] inotify_handler No data on inotify fd?
 
 I've got a samba server that's occasionally spewing inotify errors.
 
 The classic, smbd/notify_inotify.c:inotify_handler No data on inotify
 fd? type errors solved by
 kernel change notify = false
 
 Now, everything is working perfectly on this box unless one or two
 users leave files open from specific machines (this is as far as I can
 tell, it's hard to get good info from the users sometimes, but it's
 what the logs indicate).
 
 Because of this, I would rather not put in the kernel change notify =
 false line, so I'm wondering if there's another good solution.
 
 When I logged into the server, lsof told me the offending client had a
 single Excel file open about 1300 times, and I found their samba
 process had been running for 14 hours.
 
 What if I set limits, lets say hard and soft limits for open files to
 512, or 128, and cpu time limits of 4 hours or so.
 Would that cause issues for my users?
 Would that have killed the misbehaving client, or at least kept it
 from choking my system?
 Will samba behave OK, if a user's samba process runs out of open file
 handles, or will it instead fill my logs even faster?
 
 Thanks
 --Kyle

From what I understand changing the kernel notify options only affects
users viewing files created locally (i.e. root logged on to the server
creates a file) - not via smb connections.  And in the worst case they
have to hit refresh to get an updated list from the server.

I would just turn it off and save yourself the headache.

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


[Samba] Delay of group membership modifications

2009-08-05 Thread Henry Jensen
Hello,

We use samba 3.2.5 on Debian Lenny with LDAP backend (OpenLDAP 2.4.11).
Access to files and directories are granted via ACLs.

For example, we have a directory projekt-my-test:

# getfacl projekt-my-test

# file: projekt-my-test/
# owner: root
# group: Domain\040Admins
user::rwx
group::rwx
group:projekt-my-test-rw:rwx
mask::rwx
other::---

So, I added a user to the group projekt-my-test-rw in the LDAP tree. 
I could confirm with getent group that the user was now member of the group.

But when the user tried to access the directory, access was denied.

When I checked with net RPC GROUP MEMBERS projekt-my-test-rw, the user was 
not 
listed as a group member.

After I waited for about half an hour, the user suddenly could access the 
directory. And really, when I checked now with the net RPC GROUP MEMBERS,
the user was listed as a member.

I did some research if samba does some caching regarding user and group 
information
from a LDAP server, but hadn't found anything.

So I wanted to ask the experts on the list: What is causing this delay of about 
30 minutes of group membership modification in the LDAP database and the 
recognition by
Samba? And how can I prevent it, i. e. how can I force samba, to 
re-read/refresh group
information from LDAP (besides from a restart of the service)?

Regards,

Henry





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


Re: [Samba] Delay of group membership modifications

2009-08-05 Thread Adam Tauno Williams
But when the user tried to access the directory, access was denied.
When I checked with net RPC GROUP MEMBERS projekt-my-test-rw, the user was 
not 
listed as a group member.
After I waited for about half an hour, the user suddenly could access the 

Is the host running nscd?  If so, stop the nscd service.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Delay of group membership modifications

2009-08-05 Thread Henry Jensen
Hello,


On Wed, 05 Aug 2009 12:29:38 -0400
Adam Tauno Williams awill...@whitemice.org wrote:

 Is the host running nscd?  If so, stop the nscd service.

Yes, that was it. It seems that nscd was installed as a dependency 
along with libnss-ldap.

# apt-cache show libnss-ldap |grep ^Recommends
Recommends: nscd, libpam-ldap

After stopping nscd and restart of samba changing of group memberships
are recognized immediately by samba now.

What I still find curious is, that getent(1) was aware of the modification 
and samba not. 

Since it is recommended to use nscd when using LDAP (for performance reasons),
instead of stopping or even deinstalling nscd one should better call nscd
with the --invalidate option (e. g. nscd --invalidate group) after making
modifications in the LDAP tree.

I don't believe, that I am the only who stumbled upon this problem. Perhaps
this should be mentioned somewhere in the documentation/Samba HOWTO collection?

(You know this cases: your boss is calling you and tells you, that Mr. Miller
needs access to this folder right now.)

Regards,

Henry



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


[Samba] LDAP Account Manager 2.7.0 released

2009-08-05 Thread Roland Gruber
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


LDAP Account Manager (LAM) 2.7.0 - August 5th, 2009
===

LAM is a web frontend for managing accounts stored in an LDAP directory.


Announcement:
- -

LAM Pro now allows you to execute custom scripts on
create/modify/delete. This release also adds compatibility for memcache
session storage and allows you to disable Samba LM password hashes.

Full changelog:

http://lam.sourceforge.net/changelog/index.htm


Features:
- -

* management of Unix user and group accounts (posixAccount/posixGroup)
* management of Samba 2.x/3 user and host accounts
  (sambaAccount/sambaSamAccount)
* management of Kolab 2 accounts (kolabInetorgPerson)
* profiles for account creation
* account creation via file upload
* automatic creation/deletion of home directories
* setting quotas
* PDF output for all accounts
* editor for organizational units (OU)
* schema browser
* tree view
* multiple configuration files
* multi-language support: Catalan, Chinese (Traditional + Simplified),
  Czech, Dutch, English, French, German, Hungarian, Italian, Japanese,
  Polish, Portuguese, Russian and Spanish
* support for LDAP+SSL/TLS


Availability:
- -

This software is available under the GNU General Public License V2.0.

You can get the newest version at http://lam.sf.net.

File formats: DEB, RPM, tar.gz

There is also a FreeBSD port.

Debian users may use the packages in unstable.


Demo installation:
- --

You can try our demo installation online.

http://lam.sf.net/live-demo/index.htm


Support:
- 

If you find a bug please file a bug report. For questions or
implementing new features please use the forum and feature request
tracker at our Sourceforge homepage http://www.sf.net/projects/lam.



Authors  Copyright:
- 

Copyright (C) 2003 - 2009:
Michael Duergner mich...@duergner.com
Roland Gruber p...@rolandgruber.de
Tilo Lutz tilol...@gmx.de


LAM is published under the GNU General Public License.
The complete list of licenses can be found in the copyright file.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkp50N0ACgkQq/ywNCsrGZ7BpACeL1KzfrgfonoahUYQjAVrC1qK
nWQAmwQkyR8oG/Czd6nviO07LMgR7dv1
=XGh4
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] problem with samba and ldap

2009-08-05 Thread Theodoro
hi,

I have a problem with samba and ldap, when I add a machine in a domain,
samba is not searching on *ou=machine*, but on *ou=users*.
But if i change in smbldap.conf *computersdn=ou=machine,${suffix}* to *
computersdn=ou=users,${suffix}* it works.

bellow is my smb.conf


[global]
workgroup = TEST
netbios name = PDC
server string = Samba Server
passdb backend = ldapsam:ldap://127.0.0.1
log file = /var/log/samba/log.%m
max log size = 500
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
add user script = /opt/IDEALX/sbin/smbldap-useradd -m %u
delete user script = /opt/IDEALX/sbin/smbldap-userdel %u
add group script = /opt/IDEALX/sbin/smbldap-groupadd -p %g
delete group script = /opt/IDEALX/sbin/smbldap-groupdel %g
add user to group script = /opt/IDEALX/sbin/smbldap-groupmod -m %u
%g
delete user from group script = /opt/IDEALX/sbin/smbldap-groupmod -x
%u %g
set primary group script = /opt/IDEALX/sbin/smbldap-usermod -g %g
%u
add machine script = /opt/IDEALX/sbin/smbldap-useradd -w %u
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
wins proxy = Yes
wins support = Yes
ldap admin dn = cn=Manager,dc=test,dc=com,dc=br
ldap delete dn = Yes
ldap group suffix = ou=group
ldap idmap suffix = ou=users
ldap machine suffix = ou=machine
ldap passwd sync = yes
ldap suffix = dc=test,dc=com,dc=br
ldap ssl = no
idmap backend = ldap:ldap://127.0.0.1
idmap uid = 1-2
idmap gid = 1-2
admin users = root


Does anybody know what might be happening?

-- 
Daniel Theodoro

(LPIC-1) Junior Level Linux Professional
(LPIC-2) Advanced Level Linux Professional
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] problem with samba and ldap

2009-08-05 Thread Norberto Bensa
On Wed, Aug 5, 2009 at 4:28 PM, Theodorodaniel.theod...@gmail.com wrote:
 Does anybody know what might be happening?

In /etc/ldap.conf, I bet your nss_base_passwd is
ou=users,dc=test,dc=com,dc=br. It should be dc=test,dc=com,dc=br.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] problem with samba and ldap

2009-08-05 Thread Theodoro
hi,


On Wed, Aug 5, 2009 at 4:42 PM, Miguel Medalha miguelmeda...@sapo.ptwrote:

 In order to help you, I must know the following:

 Are you using nss with ldap?


yes



 What is your samba version?


I tried with 3.0.33 on RHEL5.3 and now with 3.3.7




 Your version of the smbldap scripts is too old. Version 0.9.5 resides here.


I'm using  0.9.5





 http://download.gna.org/smbldap-tools/0.9.2-1packages/http://download.gna.org/smbldap-tools/packages/

 The project page can be found here:

 https://gna.org/projects/smbldap-tools/




-- 
Daniel Theodoro
9399-3364

(LPIC-1) Junior Level Linux Professional
(LPIC-2) Advanced Level Linux Professional
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba HA issue

2009-08-05 Thread David Christensen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Liutauras Adomaitis wrote:
 On Tue, Aug 4, 2009 at 7:39 PM, David
 Christensendavid.christen...@viveli.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 With samba configured for high availability using heartbeat, I am not
 able to join new computers to the domain after a fail over.  If I fail
 back to the main samba instance I can join the computer to the domain.

 However With samba in a fail over state and running on the backup PDC
 users can still authenticate and gain access to their shares.

 I have the two instances of samba configured nearly identical except for
 having them pointed to the instance of ldap that is running on the
 server itself (which is being replicated).  Is there something else,
 some tdb file etc,  that needs to be shared between the two instances of
 samba so a fail over appears identical to the ldap backend?

 Thanks.
 
 If you are running PDC+BDC configuration with LDAP backend with
 replication, then you must have master to master replication. In case
 of master - slave replication you canot write ot slave while your
 muster is not accessible. Usual slave has a redirection to master for
 write operations. Slave is readonly and thats why you can authenticate
 to BDC, but cannot join new machines to the domain.
 This may be your case
 
 Liutauras

Liutauras,

I have ldap using master-master replication so writing to either ldap
instance is no problem.  In addition I have both instances of samba
configured as PDC's (the smb.conf file is identical on both PDC's except
for two things, the ldap each talks to and the host name of the PDC
itself; not using the netbios parameter), however only one of them is
running at a time.  The issue occurs when the 2nd PDC comes online.
Based on the ldap logs the query I am seeing from the 2nd PDC in a
failed over state is not the same query that the primary PDC does when
I add a new computer successfuly.  I never see the lookup for the admin
user who has the right to add a computer, along with other missing
search strings.

Is there some SID or some other serial number etc. that the 2nd PDC is
lacking that is causing this symptom?  Why would a query from a near
identical instance of samba to the same ldap DB be so different?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkp5/W0ACgkQ5B+8XEnAvqsohQCeK6w0icqAS9d2acH0tLf0FphL
vpYAn2YVsxoCZ729gDnxsZCVY6TPZwp9
=zlN2
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba HA issue

2009-08-05 Thread John Du

David Christensen wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Liutauras Adomaitis wrote:
  

On Tue, Aug 4, 2009 at 7:39 PM, David
Christensendavid.christen...@viveli.com wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

With samba configured for high availability using heartbeat, I am not
able to join new computers to the domain after a fail over.  If I fail
back to the main samba instance I can join the computer to the domain.

However With samba in a fail over state and running on the backup PDC
users can still authenticate and gain access to their shares.

I have the two instances of samba configured nearly identical except for
having them pointed to the instance of ldap that is running on the
server itself (which is being replicated).  Is there something else,
some tdb file etc,  that needs to be shared between the two instances of
samba so a fail over appears identical to the ldap backend?

Thanks.
  

If you are running PDC+BDC configuration with LDAP backend with
replication, then you must have master to master replication. In case
of master - slave replication you canot write ot slave while your
muster is not accessible. Usual slave has a redirection to master for
write operations. Slave is readonly and thats why you can authenticate
to BDC, but cannot join new machines to the domain.
This may be your case

Liutauras



Liutauras,

I have ldap using master-master replication so writing to either ldap
instance is no problem.  In addition I have both instances of samba
configured as PDC's (the smb.conf file is identical on both PDC's except
for two things, the ldap each talks to and the host name of the PDC
itself; not using the netbios parameter), however only one of them is
running at a time.  The issue occurs when the 2nd PDC comes online.
Based on the ldap logs the query I am seeing from the 2nd PDC in a
failed over state is not the same query that the primary PDC does when
I add a new computer successfuly.  I never see the lookup for the admin
user who has the right to add a computer, along with other missing
search strings.

Is there some SID or some other serial number etc. that the 2nd PDC is
lacking that is causing this symptom?  Why would a query from a near
identical instance of samba to the same ldap DB be so different?
  
I had the same problem with samba 3.0.28 on rhel 4.  I fixed my problem 
by issuing net rpc grant .. commands on the backup PDC.  I never 
understood why it behaved that way but those commands worked for me.  I 
thought those rights were in the LDAP database but it seemed that those 
rights are stored on the individual servers somehow.




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

iEYEARECAAYFAkp5/W0ACgkQ5B+8XEnAvqsohQCeK6w0icqAS9d2acH0tLf0FphL
vpYAn2YVsxoCZ729gDnxsZCVY6TPZwp9
=zlN2
-END PGP SIGNATURE-
  


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


Re: [Samba] Samba HA issue

2009-08-05 Thread David Christensen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John Du wrote:
 David Christensen wrote:
 
 Liutauras Adomaitis wrote:
 
 
 On Tue, Aug 4, 2009 at 7:39 PM, David
 Christensendavid.christen...@viveli.commailto:david.christen...@viveli.com
  wrote:
 
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 With samba configured for high availability using heartbeat, I am not
 able to join new computers to the domain after a fail over.  If I fail
 back to the main samba instance I can join the computer to the domain.
 
 However With samba in a fail over state and running on the backup PDC
 users can still authenticate and gain access to their shares.
 
 I have the two instances of samba configured nearly identical except for
 having them pointed to the instance of ldap that is running on the
 server itself (which is being replicated).  Is there something else,
 some tdb file etc,  that needs to be shared between the two instances of
 samba so a fail over appears identical to the ldap backend?
 
 Thanks.
 
 
 If you are running PDC+BDC configuration with LDAP backend with
 replication, then you must have master to master replication. In case
 of master - slave replication you canot write ot slave while your
 muster is not accessible. Usual slave has a redirection to master for
 write operations. Slave is readonly and thats why you can authenticate
 to BDC, but cannot join new machines to the domain.
 This may be your case
 
 Liutauras
 
 
 
 Liutauras,
 
 I have ldap using master-master replication so writing to either ldap
 instance is no problem.  In addition I have both instances of samba
 configured as PDC's (the smb.conf file is identical on both PDC's except
 for two things, the ldap each talks to and the host name of the PDC
 itself; not using the netbios parameter), however only one of them is
 running at a time.  The issue occurs when the 2nd PDC comes online.
 Based on the ldap logs the query I am seeing from the 2nd PDC in a
 failed over state is not the same query that the primary PDC does when
 I add a new computer successfuly.  I never see the lookup for the admin
 user who has the right to add a computer, along with other missing
 search strings.
 
 Is there some SID or some other serial number etc. that the 2nd PDC is
 lacking that is causing this symptom?  Why would a query from a near
 identical instance of samba to the same ldap DB be so different?
 
 
 I had the same problem with samba 3.0.28 on rhel 4.  I fixed my problem by 
 issuing net rpc grant .. commands on the backup PDC.  I never understood 
 why it behaved that way but those commands worked for me.  I thought those 
 rights were in the LDAP database but it seemed that those rights are stored 
 on the individual servers somehow.
 
 
 
John,

Not familiar with net rpc grant, where is the invoked or added?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkp6A20ACgkQ5B+8XEnAvquDfACfZoxcbLHuoVAbqrUQauCbPD8R
VDYAn3Tz+0TfwD+Ip2HIKtVj5bG5reMc
=25vc
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba HA issue

2009-08-05 Thread David Markey
Yup unfortunately rights granted using net sam/rpc and usrmgr are saved
locally in a TDB file(account_policy), this should probably be in LDAP, i
suppose it sould be possible to rsync the tdb file.


On Wed, 5 Aug 2009 17:10:54 -0500, David Christensen
david.christen...@viveli.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 John Du wrote:
 David Christensen wrote:
 
 Liutauras Adomaitis wrote:
 
 
 On Tue, Aug 4, 2009 at 7:39 PM, David

Christensendavid.christen...@viveli.commailto:david.christen...@viveli.com
 wrote:
 
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 With samba configured for high availability using heartbeat, I am not
 able to join new computers to the domain after a fail over.  If I fail
 back to the main samba instance I can join the computer to the domain.
 
 However With samba in a fail over state and running on the backup PDC
 users can still authenticate and gain access to their shares.
 
 I have the two instances of samba configured nearly identical except for
 having them pointed to the instance of ldap that is running on the
 server itself (which is being replicated).  Is there something else,
 some tdb file etc,  that needs to be shared between the two instances of
 samba so a fail over appears identical to the ldap backend?
 
 Thanks.
 
 
 If you are running PDC+BDC configuration with LDAP backend with
 replication, then you must have master to master replication. In case
 of master - slave replication you canot write ot slave while your
 muster is not accessible. Usual slave has a redirection to master for
 write operations. Slave is readonly and thats why you can authenticate
 to BDC, but cannot join new machines to the domain.
 This may be your case
 
 Liutauras
 
 
 
 Liutauras,
 
 I have ldap using master-master replication so writing to either ldap
 instance is no problem.  In addition I have both instances of samba
 configured as PDC's (the smb.conf file is identical on both PDC's except
 for two things, the ldap each talks to and the host name of the PDC
 itself; not using the netbios parameter), however only one of them is
 running at a time.  The issue occurs when the 2nd PDC comes online.
 Based on the ldap logs the query I am seeing from the 2nd PDC in a
 failed over state is not the same query that the primary PDC does when
 I add a new computer successfuly.  I never see the lookup for the admin
 user who has the right to add a computer, along with other missing
 search strings.
 
 Is there some SID or some other serial number etc. that the 2nd PDC is
 lacking that is causing this symptom?  Why would a query from a near
 identical instance of samba to the same ldap DB be so different?
 
 
 I had the same problem with samba 3.0.28 on rhel 4.  I fixed my problem
 by issuing net rpc grant .. commands on the backup PDC.  I never
 understood why it behaved that way but those commands worked for me.  I
 thought those rights were in the LDAP database but it seemed that those
 rights are stored on the individual servers somehow.
 
 
 
 John,
 
 Not familiar with net rpc grant, where is the invoked or added?
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
 
 iEYEARECAAYFAkp6A20ACgkQ5B+8XEnAvquDfACfZoxcbLHuoVAbqrUQauCbPD8R
 VDYAn3Tz+0TfwD+Ip2HIKtVj5bG5reMc
 =25vc
 -END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba HA issue

2009-08-05 Thread John Du

David Markey wrote:

Yup unfortunately rights granted using net sam/rpc and usrmgr are saved
locally in a TDB file(account_policy), this should probably be in LDAP, i
suppose it sould be possible to rsync the tdb file.


On Wed, 5 Aug 2009 17:10:54 -0500, David Christensen
david.christen...@viveli.com wrote:
  

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

John Du wrote:


David Christensen wrote:

Liutauras Adomaitis wrote:


On Tue, Aug 4, 2009 at 7:39 PM, David

  

Christensendavid.christen...@viveli.commailto:david.christen...@viveli.com
  

wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

With samba configured for high availability using heartbeat, I am not
able to join new computers to the domain after a fail over.  If I fail
back to the main samba instance I can join the computer to the domain.

However With samba in a fail over state and running on the backup PDC
users can still authenticate and gain access to their shares.

I have the two instances of samba configured nearly identical except for
having them pointed to the instance of ldap that is running on the
server itself (which is being replicated).  Is there something else,
some tdb file etc,  that needs to be shared between the two instances of
samba so a fail over appears identical to the ldap backend?

Thanks.


If you are running PDC+BDC configuration with LDAP backend with
replication, then you must have master to master replication. In case
of master - slave replication you canot write ot slave while your
muster is not accessible. Usual slave has a redirection to master for
write operations. Slave is readonly and thats why you can authenticate
to BDC, but cannot join new machines to the domain.
This may be your case

Liutauras



Liutauras,

I have ldap using master-master replication so writing to either ldap
instance is no problem.  In addition I have both instances of samba
configured as PDC's (the smb.conf file is identical on both PDC's except
for two things, the ldap each talks to and the host name of the PDC
itself; not using the netbios parameter), however only one of them is
running at a time.  The issue occurs when the 2nd PDC comes online.
Based on the ldap logs the query I am seeing from the 2nd PDC in a
failed over state is not the same query that the primary PDC does when
I add a new computer successfuly.  I never see the lookup for the admin
user who has the right to add a computer, along with other missing
search strings.

Is there some SID or some other serial number etc. that the 2nd PDC is
lacking that is causing this symptom?  Why would a query from a near
identical instance of samba to the same ldap DB be so different?


I had the same problem with samba 3.0.28 on rhel 4.  I fixed my problem
by issuing net rpc grant .. commands on the backup PDC.  I never
understood why it behaved that way but those commands worked for me.  I
thought those rights were in the LDAP database but it seemed that those
rights are stored on the individual servers somehow.



  

John,

Not familiar with net rpc grant, where is the invoked or added?

These commands are documented at 
http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/rights.html.





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

iEYEARECAAYFAkp6A20ACgkQ5B+8XEnAvquDfACfZoxcbLHuoVAbqrUQauCbPD8R
VDYAn3Tz+0TfwD+Ip2HIKtVj5bG5reMc
=25vc
-END PGP SIGNATURE-



  


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


Re: [Samba] Samba HA issue

2009-08-05 Thread David Christensen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David Markey wrote:
 Yup unfortunately rights granted using net sam/rpc and usrmgr are saved
 locally in a TDB file(account_policy), this should probably be in LDAP, i
 suppose it sould be possible to rsync the tdb file.
 
 
 On Wed, 5 Aug 2009 17:10:54 -0500, David Christensen
 david.christen...@viveli.com wrote:
 John Du wrote:
 David Christensen wrote:

 Liutauras Adomaitis wrote:


 On Tue, Aug 4, 2009 at 7:39 PM, David

 Christensendavid.christen...@viveli.commailto:david.christen...@viveli.com
 wrote:


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 With samba configured for high availability using heartbeat, I am not
 able to join new computers to the domain after a fail over.  If I fail
 back to the main samba instance I can join the computer to the domain.

 However With samba in a fail over state and running on the backup PDC
 users can still authenticate and gain access to their shares.

 I have the two instances of samba configured nearly identical except for
 having them pointed to the instance of ldap that is running on the
 server itself (which is being replicated).  Is there something else,
 some tdb file etc,  that needs to be shared between the two instances of
 samba so a fail over appears identical to the ldap backend?

 Thanks.


 If you are running PDC+BDC configuration with LDAP backend with
 replication, then you must have master to master replication. In case
 of master - slave replication you canot write ot slave while your
 muster is not accessible. Usual slave has a redirection to master for
 write operations. Slave is readonly and thats why you can authenticate
 to BDC, but cannot join new machines to the domain.
 This may be your case

 Liutauras



 Liutauras,

 I have ldap using master-master replication so writing to either ldap
 instance is no problem.  In addition I have both instances of samba
 configured as PDC's (the smb.conf file is identical on both PDC's except
 for two things, the ldap each talks to and the host name of the PDC
 itself; not using the netbios parameter), however only one of them is
 running at a time.  The issue occurs when the 2nd PDC comes online.
 Based on the ldap logs the query I am seeing from the 2nd PDC in a
 failed over state is not the same query that the primary PDC does when
 I add a new computer successfuly.  I never see the lookup for the admin
 user who has the right to add a computer, along with other missing
 search strings.

 Is there some SID or some other serial number etc. that the 2nd PDC is
 lacking that is causing this symptom?  Why would a query from a near
 identical instance of samba to the same ldap DB be so different?


 I had the same problem with samba 3.0.28 on rhel 4.  I fixed my problem
 by issuing net rpc grant .. commands on the backup PDC.  I never
 understood why it behaved that way but those commands worked for me.  I
 thought those rights were in the LDAP database but it seemed that those
 rights are stored on the individual servers somehow.



 John,
 
 Not familiar with net rpc grant, where is the invoked or added?
David,

I did a diff between the two account_policy files on either instance of
samba and they are identical.  Is this the only file where server rights
are stored?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkp6GLYACgkQ5B+8XEnAvqtsWACbBtwRsTEalBLedSuyx2TcZUNm
wWYAnjZr8kE0iLZWeUtJa3rrNntLiV5b
=qYik
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Tuning the performance of Samba over LAN network to improve I/O performance

2009-08-05 Thread Himanshu Thapar
Hello friends,

I am trying to test NAS I/O performance over a network and trying to see the
numbers for write and read speed. I have successfully configured and ran a
lot of tests. However the numbers have not increased, I have reached a
bottleneck.

I tried playing around with the smb.conf file including all possible
variations like,

socket options = TCP_NODELAY SO_RCVBUF=(tried values like 8192, 65535,
131070) SO_SNDBUF=(tried 8192, 65535, 131070)
log level = 0 or 1
max xmit = used different numbers ( like 8192 to 65535)

I also tried using
read raw = yes
write raw = yes
but the numbers or the write and read performance does not improve.

My setup is as follows:
I have a Linux machine running ubuntu which is the host and I have it
connected to a Windows XP machine over the network and there is also an
E-SATA which I mount and try to test on. There is Iozone3 and samba server
running on linux.
I also have samba on the network.

The approximate average numbers I am getting over LAN are:

Write: around 23Mbits/sec
Read: around 33Mbits/sec

Please let me know of cases I can try and shoot up the performance.

Any help is appreciated.

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


Re: [Samba] Tuning the performance of Samba over LAN network to improve I/O performance

2009-08-05 Thread Jeremy Allison
On Wed, Aug 05, 2009 at 06:42:07PM -0500, Himanshu Thapar wrote:
 
 I tried playing around with the smb.conf file including all possible
 variations like,
 
 socket options = TCP_NODELAY SO_RCVBUF=(tried values like 8192, 65535,
 131070) SO_SNDBUF=(tried 8192, 65535, 131070)

Remove these. You won't second guess the kernel.

 log level = 0 or 1
 max xmit = used different numbers ( like 8192 to 65535)

Also, don't touch the above, expecially max xmit.

 I also tried using
 read raw = yes
 write raw = yes

Not used on an XP client.

 My setup is as follows:
 I have a Linux machine running ubuntu which is the host and I have it
 connected to a Windows XP machine over the network and there is also an
 E-SATA which I mount and try to test on. There is Iozone3 and samba server
 running on linux.
 I also have samba on the network.
 
 The approximate average numbers I am getting over LAN are:
 
 Write: around 23Mbits/sec
 Read: around 33Mbits/sec

Seems low, what filesystem/network card are you using ?

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


Re: [Samba] Tuning the performance of Samba over LAN network to improve I/O performance

2009-08-05 Thread Miguel Medalha



The approximate average numbers I am getting over LAN are:

Write: around 23Mbits/sec
Read: around 33Mbits/sec

  


Do you really mean Megabits? Or MegaBytes? 33 Megabits (about 4 MB/sec) 
would be VERY abnormal!


Do you have use sendfile = yes in your smb.conf? It can be a global 
option or a per-share option.


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


Re: [Samba] Tuning the performance of Samba over LAN network to improve I/O performance

2009-08-05 Thread Jeremy Allison
On Wed, Aug 05, 2009 at 07:11:54PM -0500, Himanshu Thapar wrote:
 For the numbers I am gettingWriting averages around 23Mbytes/sec and
 Reading averages around 33Mbytes/sec. I am aiming for 30 plus for writing
 and around 40 for reading. Both seem to be reasonable.

True, but first use hdparm to see what your
raw disk numbers should be. Also you first
posted Mbits/sec, not Mbytes, which were *very* low
numbers :-).

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


Re: [Samba] wbinfo returns no domain users

2009-08-05 Thread Jeremy Allison
On Mon, Jul 27, 2009 at 05:51:45PM -0300, Herbert G. Fischer wrote:
 Hi,

 I've spent two days trying to figure out how to solve this, researching 
 on the web, etc, and found no answer... :S

 I've setup a Ubuntu 9.04 with Samba and Winbind, joined the domain  
 (using RPC) and when I try to list users and groups using wbinfo I got  
 nothing.

 I already tryed deleting tdb files from /var/lib/samba and restarting  
 samba and winbind, joined the domain again, etc, and nothing changed  
 this behavior. Any idea on where may be the problem and how to solve it?

I think Guenther just checked a fix for this into the 3.3 and
3.2 trees.

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


Re: [Samba] Tuning the performance of Samba over LAN network to improve I/O performance

2009-08-05 Thread Jeremy Allison
On Wed, Aug 05, 2009 at 07:34:51PM -0500, Himanshu Thapar wrote:
 Thank youOkay..can you explain how can I go about with hdparm or
 guide me to an appropriate link. Also how will this help me in diagnosing
 the current problem?

Sorry, you need to learn to use hdparm before you
can do any performance diagnostics. Google for the
command, and read up on it.

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


Re: [Samba] Tuning the performance of Samba over LAN network to improve I/O performance

2009-08-05 Thread Miguel Medalha



How can I go about configuring my LAN hardware to use Jumbo Frames?



That would be a too long conversation and now I don't have the necessary 
energy.
You can Google for Linux Jumbo Frames. You must identify your LAN card 
and see its specifications. Also, you need to be sure that your switches 
support Jumbo Frames.


I am on a Red Hat system and in my case the file 
/etc/sysconfig/networking/devices/ifcfg-eth# contains the following line:


MTU=9014

This is for a Intel Gigabit LAN card.

I don't know it resides in the same place with Ubuntu.

Look for the ifconfig command and study its parameters.


As for hdparm:
You can see your hard disks transfer rates by executing the following:

hdparm -t /dev/hd(x) where x is the letter of your particular drive.

This is for ATA drive. In the case of SATA or SCSI, it would be /dev/sd(x).

This will give you the throughput of your drive *inside* your system. 
You can now try to make your LAN transfers get as close to that as possible.


As an example, in one of my systems the command hdparm -t /dev/sda 
gives me the following output:


/dev/sda:
Timing buffered disk reads:  350 MB in  3.01 seconds = 116.18 MB/sec

I am not in a position now to give you the LAN throughput of this system.

I hope that this helps somewhat.




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


Build status as of Wed Aug 5 06:00:01 2009

2009-08-05 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2009-08-04 
00:00:19.0 -0600
+++ /home/build/master/cache/broken_results.txt 2009-08-05 00:00:06.0 
-0600
@@ -1,22 +1,22 @@
-Build status as of Tue Aug  4 06:00:02 2009
+Build status as of Wed Aug  5 06:00:01 2009
 
 Build counts:
 Tree Total  Broken Panic 
 build_farm   0  0  0 
 ccache   3  1  0 
 distcc   0  0  0 
-ldb  31 31 0 
-libreplace   3  1  0 
+ldb  32 32 0 
+libreplace   2  0  0 
 lorikeet 0  0  0 
-pidl 21 3  0 
+pidl 3  0  0 
 ppp  1  0  0 
-rsync31 13 0 
+rsync32 13 0 
 samba-docs   0  0  0 
 samba-web0  0  0 
 samba_3_current 28 17 0 
-samba_3_master 29 26 5 
-samba_3_next 29 26 1 
-samba_4_0_test 31 26 8 
-talloc   5  5  0 
-tdb  29 29 0 
+samba_3_master 29 29 0 
+samba_3_next 29 25 1 
+samba_4_0_test 31 25 5 
+talloc   4  4  0 
+tdb  4  4  0 
 


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-836-g0a16265

2009-08-05 Thread Volker Lendecke
The branch, master has been updated
   via  0a16265bc21e6f1f8cef4f38b7b45f3fd356527c (commit)
   via  01ea26bf28ab697af03c7ebc3a1261c240fe1360 (commit)
   via  fec380818ffdd7fba58e8dd591049c4b2428ab7d (commit)
   via  1dc1ac00512a28bdc025b00fbfa676b0f5b15751 (commit)
   via  718a26fd29036cc200cdc1c320733eafe84d2337 (commit)
   via  592822786d0a26bdf283ca4621c0df6f7f671869 (commit)
   via  ce42ea3ab8c69a3f650d4c9bc787e4805aad928d (commit)
   via  f09a95aaff4542df4225f3828a0d737497f0f2e8 (commit)
   via  ff3ce9016a43906df55a0922f0697c91d255de88 (commit)
   via  bd9d7f75e352985f1b0e0785f0ba94dea19d2601 (commit)
   via  5bbb7a0d143b34b6a2a2c4adb1114120cddd74bf (commit)
   via  9dc401a20ec608d4d8ae25fb4e81c462e9ced415 (commit)
   via  afc82444fd367e8b8541e4a41a86966a288ed2ef (commit)
   via  0418d38bc80dc8680834875629a3df8e1734b885 (commit)
   via  7077492778dbda30e5f865ae1d0ab0237e00f54f (commit)
   via  360227a0feb443fbbcc420295d5666da5823685a (commit)
   via  10685b37d4dc16dc75c48c08937f003af4968a0c (commit)
   via  292f3f896fa5bc381c88526fc73a6224b8d286f0 (commit)
   via  9b369ffcf0f113871b00de4229432a74fe436834 (commit)
   via  3eff8e93e283828afdb3413aec2dae5c01b101b3 (commit)
   via  5db561a608a11895d8a9a038a98a9fcc7c867d59 (commit)
   via  153ae58d7d37daffc7c5547ef9174baf64f9aaa7 (commit)
   via  fb7150f23b154fe53a91f3433ea33cf680d4fa93 (commit)
   via  ea286fed7adf93311b0ca14c3ff1e7bac74a0b9b (commit)
   via  9c6f4cd12a3e62165782e34226888648649a0fef (commit)
   via  a5416770776c0ade8518e8875d47097662b026a6 (commit)
   via  f6554611ab90aa113a7579ce3a9fef765c19d98c (commit)
   via  74b45ba46cbf58c1bf9ef89f5f88509065cd81d2 (commit)
   via  fa59f9720d56ffaf07c13376118c452a4162f3df (commit)
   via  bb359c780aee3fd7e1074db93a28c95590ae5d36 (commit)
   via  2d6589fb0243cb2b73615de1aaea38a3059c08ed (commit)
   via  6cf3db91499ebd245b08997a319edf36cfee3365 (commit)
  from  ddd13c6816e7d289406948fe2f68db1aba7669d3 (commit)

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


- Log -
commit 0a16265bc21e6f1f8cef4f38b7b45f3fd356527c
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 4 16:26:07 2009 -0400

s3:winbind: Convert WINBINDD_GETGROUPS to the new API

commit 01ea26bf28ab697af03c7ebc3a1261c240fe1360
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 4 16:22:42 2009 -0400

s3:winbind: Add async wb_gettoken

commit fec380818ffdd7fba58e8dd591049c4b2428ab7d
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 4 16:20:18 2009 -0400

s3:winbind: Convert WINBINDD_GETUSERDOMGROUPS to the new API

commit 1dc1ac00512a28bdc025b00fbfa676b0f5b15751
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 4 16:07:01 2009 -0400

s3:winbind: Add async wb_lookupusergroups

commit 718a26fd29036cc200cdc1c320733eafe84d2337
Author: Volker Lendecke v...@samba.org
Date:   Sun Aug 2 18:01:54 2009 +0200

s3:winbind: Make wcache_lookup_usergroups externally visible

commit 592822786d0a26bdf283ca4621c0df6f7f671869
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 4 15:58:45 2009 -0400

s3:winbind: Convert WINBINDD_GETSIDALIASES to the new API

commit ce42ea3ab8c69a3f650d4c9bc787e4805aad928d
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 4 15:54:05 2009 -0400

s3:winbind: Add async wb_lookupuseraliases

commit f09a95aaff4542df4225f3828a0d737497f0f2e8
Author: Volker Lendecke v...@samba.org
Date:   Sun Aug 2 17:17:27 2009 +0200

s3:winbind: Make parse_sidlist take a const char *

commit ff3ce9016a43906df55a0922f0697c91d255de88
Author: Volker Lendecke v...@samba.org
Date:   Sun Aug 2 16:52:19 2009 +0200

s3:winbind: Make wcache_lookup_useraliases available publically

commit bd9d7f75e352985f1b0e0785f0ba94dea19d2601
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 4 15:41:40 2009 -0400

s3:winbind: Convert WINBINDD_GETPWUID to the new API

commit 5bbb7a0d143b34b6a2a2c4adb1114120cddd74bf
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 4 15:37:54 2009 -0400

s3:winbind: Convert WINBINDD_GETPWNAM to the new API

commit 9dc401a20ec608d4d8ae25fb4e81c462e9ced415
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 4 15:35:24 2009 -0400

s3:winbind: Convert WINBINDD_GETPWSID to the new API

commit afc82444fd367e8b8541e4a41a86966a288ed2ef
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 4 15:32:11 2009 -0400

s3:winbind: Add async wb_getpwsid

commit 0418d38bc80dc8680834875629a3df8e1734b885
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 4 15:31:49 2009 -0400

s3:winbind: Make fillup_pw_field publically available

commit 7077492778dbda30e5f865ae1d0ab0237e00f54f
Author: Volker Lendecke v...@samba.org
Date:   Tue Aug 4 15:23:13 2009 -0400

s3:winbind: Add async wb_queryuser

commit 360227a0feb443fbbcc420295d5666da5823685a
Author: Volker 

[SCM] Samba Shared Repository - annotated tag release-3-0-36 created - release-3-0-36

2009-08-05 Thread Karolin Seeger
The annotated tag, release-3-0-36 has been created
at  61b3dee53f076ef7da6596f5a9d3efd6a1911fec (tag)
   tagging  9fae819cd93e56d68facc51586c5fb3bd228a5bc (commit)
  replaces  release-3-0-35
 tagged by  Karolin Seeger
on  Wed Aug 5 09:24:09 2009 +0200

- Log -
tag release-3-0-36
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)

iD8DBQBKeTOzbzORW2Vot+oRAjICAJ9I8gZJTl9pgLv0KFHLG5Eqw1fjNQCfXaEA
UtTFlkZGb+ITNoMbJfrx8H8=
=WVLQ
-END PGP SIGNATURE-

Andreas Schneider (1):
  Document default of the printing config variable.

Bhaskar Jain (bhajain) (1):
  prevent segmentation fault on joining a very long domain name in 
samba-3.0.32

Björn Jacke (1):
  prefer gssapi header files from subdirectory

Günter Kukkukk (1):
  Don't try and delete a default ACL from a file.

Günther Deschner (2):
  build: don't install the cifs.upcall binary twice.
  s3-examples: Fix Bug #6205. Correct sample smb.conf share configuration.

Jelmer Vernooij (4):
  Make the make output a bit less chatty.
  Add test target in Makefile.
  Use double colon targets.
  Depend on latexfigures files directly as using a rule in between causes 
problems.

Jeremy Allison (12):
  Another attempt to fix bug #4308 - Excel save operation corrupts file 
ACLs.
  Second part of the attemt to fix #4308 - Excel save operation corrupts 
file ACLs.
  Fix logic error in try_chown - we shouldn't arbitrarily chown
  Apply same logic fix for #4308 Excel save operation corrupts file ACLs
  Fix bug #5906 - Winbindd crash on 'getent group' (INTERNAL ERROR: Signal 
11).
  Noted by Vericode analysis. Correctly use chroot().
  Attempt to fix bug #6099. According to Microsoft
  Fix bug in processing of open modes in POSIX open.
  Now we're allowing a lower bound for auth_len, ensure we
  Get the sense of the integer wrap test the right way around. Sorry.
  Fix bug #6279 - winbindd crash. Cope with LDAP libraries returning 
LDAP_SUCCESS but not returning a result.
  Add comment explaining the previous fix. (and fix the previous patch :-).

Karolin Seeger (12):
  build_docs: Use 'make distclean' instead of 'make clean'.
  docs: Fix formatting issue in man libsmbclient.
  docs: Describe service in man mount.cifs.
  s3/docs: Fix typo in man mount.cifs.
  s3/docs: Fix serveral typos.
  s3/docs: Fix typo.
  s3/docs: Fix typos.
  s3/docs: Fix typo.
  s3/docs: Correct version number.
  VERSION: Raise version number up to 3.0.36.
  WHATSNEW: Start WHATSNEW for 3.0.36.
  Makefile.in: Fix installation of cifs.upcall.

Lars Müller (2):
  Conditional install of the cifs.upcall man page
  Adjust regex to match variable names including underscores

Michael Adam (9):
  s3:docs: fix distclean target and add realdistclean target
  s3:create-tarball: also include the VENDOR_PATCH in the version
  s3:docs: fix ommission in fix of (real)distclean targets
  s3:docs: clean generated .png images in make clean
  s3:docs: clean build/catalog.xml in make clean
  build-docs: cleanup exit of the script
  libreplace: fix bug #6066 - netinet/ip.h present but cannot be compiled
  libreplace: fix detection of netinet/ip.h on solaris 8
  docs: fix two typos in the mount.cifs manpage

Miguel Suarez (1):
  Fix bug #6085 - In vfs_default.c change utime( ) call.

Shirish Pargaonkar (2):
  umount.cifs: clean-up entries in /etc/mtab after unmount
  mount.cifs: add fakemount (-f) and nomtab (-n) flags to mount.cifs

Steve French (2):
  Fix mount.cifs handling of -V option (to display version)
  Fix guest mounts

Ted Percival (1):
  Probably fixes a crash during name resolution when log level = 10

Volker Lendecke (2):
  Complete the fix for bug 6100
  Workaround for KB932762

Yasuma Takeda (1):
  Fix bug #6098 - When the DNS server is invalid, the ads_find_dc() does 
not work correctly with security = domain

---


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-837-g00a8ff5

2009-08-05 Thread Andrew Tridgell
The branch, master has been updated
   via  00a8ff5fe9acf965395b99b39b0c24a5517b6e2b (commit)
  from  0a16265bc21e6f1f8cef4f38b7b45f3fd356527c (commit)

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


- Log -
commit 00a8ff5fe9acf965395b99b39b0c24a5517b6e2b
Author: Andrew Tridgell tri...@samba.org
Date:   Wed Aug 5 17:51:21 2009 +1000

fixed a problem with group policy writes causing policy corruption

This bug was caused by two things:

  1) in the unix ACL mapping, we were not taking into account group
  write permssions for the SEC_STD_DELETE flag

  2) when a file is created using OVERWRITE mode, a fchmod() would
  fail if the user is not the file owner. We resolve that by only
  doing the fchmod() if the mapped file attribute does not match the
  desired file attribute

---

Summary of changes:
 source4/ntvfs/posix/pvfs_acl.c  |   37 +
 source4/ntvfs/posix/pvfs_open.c |   10 +++---
 source4/ntvfs/posix/pvfs_util.c |5 -
 3 files changed, 48 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c
index 203b6b1..ad7ac5a 100644
--- a/source4/ntvfs/posix/pvfs_acl.c
+++ b/source4/ntvfs/posix/pvfs_acl.c
@@ -449,6 +449,35 @@ static bool pvfs_read_only(struct pvfs_state *pvfs, 
uint32_t access_mask)
 }
 
 /*
+  see if we are a member of the appropriate unix group
+ */
+static bool pvfs_group_member(struct pvfs_state *pvfs, gid_t gid)
+{
+   int i, ngroups;
+   gid_t *groups;
+   if (getegid() == gid) {
+   return true;
+   }
+   ngroups = getgroups(0, NULL);
+   if (ngroups == 0) {
+   return false;
+   }
+   groups = talloc_array(pvfs, gid_t, ngroups);
+   if (groups == NULL) {
+   return false;
+   }
+   if (getgroups(ngroups, groups) != ngroups) {
+   talloc_free(groups);
+   return false;
+   }
+   for (i=0; ingroups; i++) {
+   if (groups[i] == gid) break;
+   }
+   talloc_free(groups);
+   return i  ngroups;
+}
+
+/*
   default access check function based on unix permissions
   doing this saves on building a full security descriptor
   for the common case of access check on files with no 
@@ -473,6 +502,12 @@ NTSTATUS pvfs_access_check_unix(struct pvfs_state *pvfs,
max_bits |= SEC_STD_ALL;
}
 
+   if ((name-st.st_mode  S_IWOTH) ||
+   ((name-st.st_mode  S_IWGRP)  
+pvfs_group_member(pvfs, name-st.st_gid))) {
+   max_bits |= SEC_STD_ALL;
+   }
+
if (uwrap_enabled()) {
/* when running with the uid wrapper, files will be created
   owned by the ruid, but we may have a different simulated 
@@ -491,6 +526,8 @@ NTSTATUS pvfs_access_check_unix(struct pvfs_state *pvfs,
}
 
if (*access_mask  ~max_bits) {
+   DEBUG(0,(__location__  denied access to '%s' - wanted 0x%08x 
but got 0x%08x (missing 0x%08x)\n,
+name-full_name, *access_mask, max_bits, *access_mask 
 ~max_bits));
return NT_STATUS_ACCESS_DENIED;
}
 
diff --git a/source4/ntvfs/posix/pvfs_open.c b/source4/ntvfs/posix/pvfs_open.c
index 12f50fc..46e39a0 100644
--- a/source4/ntvfs/posix/pvfs_open.c
+++ b/source4/ntvfs/posix/pvfs_open.c
@@ -534,7 +534,7 @@ static int pvfs_handle_destructor(struct pvfs_file_handle 
*h)
 
if (!timeval_is_zero(tv[0]) || !timeval_is_zero(tv[1])) {
if (utimes(h-name-full_name, tv) == -1) {
-   DEBUG(0,(pvfs_handle_destructor: utimes() 
failed '%s' - %s\n,
+   DEBUG(3,(pvfs_handle_destructor: utimes() 
failed '%s' - %s\n,
 h-name-full_name, strerror(errno)));
}
}
@@ -1516,6 +1516,8 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs,
if (fd == -1) {
status = pvfs_map_errno(f-pvfs, errno);
 
+   DEBUG(0,(__location__  mapped errno %s for %s (was %d)\n, 
+nt_errstr(status), f-handle-name-full_name, errno));
/*
 * STATUS_MORE_ENTRIES is EAGAIN or EWOULDBLOCK
 */
@@ -1581,10 +1583,12 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs,
if (f-handle-name-stream_id == 0 
(io-generic.in.open_disposition == NTCREATEX_DISP_OVERWRITE ||
 io-generic.in.open_disposition == NTCREATEX_DISP_OVERWRITE_IF)) {
-   /* for overwrite we need to replace file permissions */
+   /* for overwrite we may need to replace file permissions */
uint32_t attrib = 

[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-838-ge2ed502

2009-08-05 Thread mdw
The branch, master has been updated
   via  e2ed5029e97671b307af06c9fff1d4f0442553a2 (commit)
  from  00a8ff5fe9acf965395b99b39b0c24a5517b6e2b (commit)

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


- Log -
commit e2ed5029e97671b307af06c9fff1d4f0442553a2
Author: Matthias Dieter Wallnöfer mwallnoe...@yahoo.de
Date:   Wed Aug 5 09:48:45 2009 +0200

s4:torture Remove some unwanted code in the LDAP test - hope this fixes up 
the test failures

---

Summary of changes:
 source4/torture/ldap/basic.c |   12 
 1 files changed, 0 insertions(+), 12 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/ldap/basic.c b/source4/torture/ldap/basic.c
index 3ed0b48..ff95ba7 100644
--- a/source4/torture/ldap/basic.c
+++ b/source4/torture/ldap/basic.c
@@ -269,18 +269,6 @@ static bool test_error_codes(struct torture_context *tctx,
}
}
 
-   printf( Try a wrong removal\n);
-
-   msg-type = LDAP_TAG_DelRequest;
-   msg-r.DelRequest.dn = ;
-
-   req = ldap_request_send(conn, msg);
-   if (!req) {
-   return false;
-   }
-
-   status = ldap_result_one(req, rep, LDAP_TAG_DelResponse);
-
printf( Try a wrong modification\n);
 
msg-type = LDAP_TAG_ModifyRequest;


-- 
Samba Shared Repository


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

2009-08-05 Thread kseeger
Author: kseeger
Date: 2009-08-05 02:00:01 -0600 (Wed, 05 Aug 2009)
New Revision: 1315

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

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


Changeset:
Modified: trunk/devel/index.html
===
--- trunk/devel/index.html  2009-07-29 08:35:44 UTC (rev 1314)
+++ trunk/devel/index.html  2009-08-05 08:00:01 UTC (rev 1315)
@@ -59,16 +59,6 @@
   pThis is the new combined branch for 3.x.x emand/em 4.x.x 
development./p
 /li
 li
-  h4emv3-0-test/em/h4
-  pThis is the current branch for 3.0.x maintenance
- (security fixes emonly/em)./p
-/li
-li
-  h4emv3-0-stable/em/h4
-  pThis is the current branch for 3.0.x maintenance releases
- (security fixes emonly/em)./p
-/li
-li
   h4emv3-2-test/em/h4
   pThis is the current branch for 3.2.x maintenance
  (security fixes emonly/em)./p

Modified: trunk/header_columns.html
===
--- trunk/header_columns.html   2009-07-29 08:35:44 UTC (rev 1314)
+++ trunk/header_columns.html   2009-08-05 08:00:01 UTC (rev 1315)
@@ -144,9 +144,9 @@
 lia href=/samba/ftp/stable/samba-3.2.13.tar.gzSamba 3.2.13 
(gzipped)/a/li
 lia href=/samba/history/samba-3.2.13.htmlRelease Notes 
3.2.13/a/li
 lia href=/samba/ftp/stable/samba-3.2.13.tar.ascSignature 
3.2.13/a/li
-lia href=/samba/ftp/stable/samba-3.0.35.tar.gzSamba 3.0.35 
(gzipped)/a/li
-lia href=/samba/history/samba-3.0.35.htmlRelease Notes 
3.0.35/a/li
-lia href=/samba/ftp/stable/samba-3.0.35.tar.ascSignature 
3.0.35/a/li
+lia href=/samba/ftp/stable/samba-3.0.36.tar.gzSamba 3.0.36 
(gzipped)/a/li
+lia href=/samba/history/samba-3.0.36.htmlRelease Notes 
3.0.36/a/li
+lia href=/samba/ftp/stable/samba-3.0.36.tar.ascSignature 
3.0.36/a/li
 /ul

 h4Maintenance/h4

Modified: trunk/history/header_history.html
===
--- trunk/history/header_history.html   2009-07-29 08:35:44 UTC (rev 1314)
+++ trunk/history/header_history.html   2009-08-05 08:00:01 UTC (rev 1315)
@@ -100,6 +100,7 @@
 lia href=samba-3.2.2.htmlsamba-3.2.2/a/li
 lia href=samba-3.2.1.htmlsamba-3.2.1/a/li
 lia href=samba-3.2.0.htmlsamba-3.2.0/a/li
+lia href=samba-3.0.36.htmlsamba-3.0.36/a/li
 lia href=samba-3.0.35.htmlsamba-3.0.35/a/li
 lia href=samba-3.0.34.htmlsamba-3.0.34/a/li
 lia href=samba-3.0.33.htmlsamba-3.0.33/a/li

Added: trunk/history/samba-3.0.36.html
===
--- trunk/history/samba-3.0.36.html (rev 0)
+++ trunk/history/samba-3.0.36.html 2009-08-05 08:00:01 UTC (rev 1315)
@@ -0,0 +1,106 @@
+!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
+http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
+html xmlns=http://www.w3.org/1999/xhtml;
+
+head
+titleSamba - Release Notes Archive/title
+/head
+
+body
+
+   H2Samba 3.0.36 Available for Download/H2
+
+p
+pre
+   ==
+   Release Notes for Samba 3.0.36
+   August, 5 2009
+   ==
+
+
+This is the latest bugfix release of the Samba 3.0 series.
+
+Please note, that the 3.0 series will be DISCONTINUED after this release!
+There will be neither any bugfix release nor any security release. Updating
+to the latest release series is strongly recommended. For more information
+on current Samba releases, please see
+
+http://wiki.samba.org/index.php/Samba3_Release_Planning
+
+
+Major enhancements included in Samba 3.0.36 are:
+
+   o Fix Winbind crash on 'getent group' (bug #5906).
+   o Excel save operation corrupts file ACLs (bug #4308).
+   o Prevent segmentation fault on joining a very long domain name.
+
+
+##
+Changes
+###
+
+Changes since 3.0.35
+
+
+
+o   Michael Adam lt;ob...@samba.orggt;
+* BUG 5906: Fix Winbind crash on 'getent group'.
+* BUG 6066: netinet/ip.h present but cannot be compiled on Solaris.
+
+
+o   Jeremy Allison lt;j...@samba.orggt;
+* BUG 4308: Excel save operation corrupts file ACLs.
+* BUG 6099: In order to allow Win7 to connect to a Samba NT style
+* BUG 6279: Fix Winbind crash.
+  PDC we set the flags before we know if it's an error or not.
+* Fix logic error in try_chown.
+* Correctly use chroot().
+* Fix bug in processing of open modes in POSIX open.
+
+
+o   Guuml;nther Deschner lt;g...@samba.orggt;
+* Don't install the cifs.upcall binary twice.
+
+
+o   Steve French 

[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-839-gf224089

2009-08-05 Thread Stefan Metzmacher
The branch, master has been updated
   via  f22408913846b2510352c60e6476b2a693e1a7ee (commit)
  from  e2ed5029e97671b307af06c9fff1d4f0442553a2 (commit)

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


- Log -
commit f22408913846b2510352c60e6476b2a693e1a7ee
Author: Stefan Metzmacher me...@samba.org
Date:   Wed Aug 5 10:05:56 2009 +0200

s4:ldap_server: make sure we shutdown the tls socket before 
stream_terminate_connection() removes the fd event

This fixes a crash bug where tls_destructor() relies on the fd event still 
being there.

metze

---

Summary of changes:
 source4/ldap_server/ldap_server.c |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/ldap_server/ldap_server.c 
b/source4/ldap_server/ldap_server.c
index 72431e9..b119620 100644
--- a/source4/ldap_server/ldap_server.c
+++ b/source4/ldap_server/ldap_server.c
@@ -51,6 +51,7 @@ void ldapsrv_terminate_connection(struct ldapsrv_connection 
*conn,
 {
packet_recv_disable(conn-packet);
TALLOC_FREE(conn-packet);
+   TALLOC_FREE(conn-sockets.tls);
stream_terminate_connection(conn-connection, reason);
 }
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-840-g996a205

2009-08-05 Thread Stefan Metzmacher
The branch, master has been updated
   via  996a2054fb951139344712ee68774a55fb65ae1e (commit)
  from  f22408913846b2510352c60e6476b2a693e1a7ee (commit)

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


- Log -
commit 996a2054fb951139344712ee68774a55fb65ae1e
Author: Stefan Metzmacher me...@samba.org
Date:   Tue Aug 4 13:43:29 2009 +0200

s4:heimdal_build: define HEIMDAL_LOCALEDIR

metze

---

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


Changeset truncated at 500 lines:

diff --git a/source4/heimdal_build/roken.h b/source4/heimdal_build/roken.h
index 87060cf..ea9103e 100644
--- a/source4/heimdal_build/roken.h
+++ b/source4/heimdal_build/roken.h
@@ -10,6 +10,7 @@
 /* HDB module dir - set to Samba LIBDIR/hdb ? */
 #define HDBDIR /usr/heimdal/lib
 #define LIBDIR /usr/heimdal/lib
+#define HEIMDAL_LOCALEDIR /usr/heimdal/locale
 
 /* Maximum values on all known systems */
 #define MaxHostNameLen (64+4)


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-841-gcc74f21

2009-08-05 Thread Matthias Dieter Wallnöfer
The branch, master has been updated
   via  cc74f213248f910c1c7908b23be07485752e85b9 (commit)
  from  996a2054fb951139344712ee68774a55fb65ae1e (commit)

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


- Log -
commit cc74f213248f910c1c7908b23be07485752e85b9
Author: Matthias Dieter Wallnöfer mwallnoe...@yahoo.de
Date:   Wed Aug 5 10:48:25 2009 +0200

s4:torture The test logic for the target was wrong. This should correct it.

---

Summary of changes:
 source4/torture/ldap/basic.c |8 
 1 files changed, 4 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/torture/ldap/basic.c b/source4/torture/ldap/basic.c
index ff95ba7..c2a26f8 100644
--- a/source4/torture/ldap/basic.c
+++ b/source4/torture/ldap/basic.c
@@ -217,7 +217,7 @@ static bool test_error_codes(struct torture_context *tctx,
WERROR err;
NTSTATUS status;
 
-   printf(Testing error codes\n);
+   printf(Testing error codes - to make this test pass against SAMBA 4 
you have to specify the target!\n);
 
if (!basedn) {
return false;
@@ -257,7 +257,7 @@ static bool test_error_codes(struct torture_context *tctx,
err = ad_error(rep-r.AddResponse.errormessage, endptr);
err_code_str = win_errstr(err);
printf( - Errorcode: %s; Reason: %s\n, err_code_str, endptr);
-   if (torture_setting_bool(tctx, samba4, false)) {
+   if (!torture_setting_bool(tctx, samba4, false)) {
if ((!W_ERROR_EQUAL(err, WERR_DS_REFERRAL))
|| (rep-r.AddResponse.resultcode != 10)) {
return false;
@@ -298,7 +298,7 @@ static bool test_error_codes(struct torture_context *tctx,
err = ad_error(rep-r.ModifyResponse.errormessage, endptr);
err_code_str = win_errstr(err);
printf( - Errorcode: %s; Reason: %s\n, err_code_str, endptr);
-   if (torture_setting_bool(tctx, samba4, false)) {
+   if (!torture_setting_bool(tctx, samba4, false)) {
if ((!W_ERROR_EQUAL(err, WERR_INVALID_PARAM))
|| (rep-r.ModifyResponse.resultcode != 53)) {
return false;
@@ -337,7 +337,7 @@ static bool test_error_codes(struct torture_context *tctx,
err = ad_error(rep-r.DelResponse.errormessage, endptr);
err_code_str = win_errstr(err);
printf( - Errorcode: %s; Reason: %s\n, err_code_str, endptr);
-   if (torture_setting_bool(tctx, samba4, false)) {
+   if (!torture_setting_bool(tctx, samba4, false)) {
if ((!W_ERROR_EQUAL(err, WERR_DS_OBJ_NOT_FOUND))
|| (rep-r.DelResponse.resultcode != 32)) {
return false;


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-1198-gffb6b4e

2009-08-05 Thread Karolin Seeger
The branch, v3-4-test has been updated
   via  ffb6b4e6f7e47e8f22519d616e4e31444e417d16 (commit)
  from  2666b3e27444ffcad3afc21e276f189ac238433f (commit)

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


- Log -
commit ffb6b4e6f7e47e8f22519d616e4e31444e417d16
Author: Günther Deschner g...@samba.org
Date:   Tue Aug 4 12:21:49 2009 +0200

s3-spoolss: Fix Bug #6568: _spoolss_GetPrintProcessorDirectory() 
implementation.

We should always return a local path so that users are not forced to setup a
[prnproc$] share on the server. This restores pre-3.4.0 spoolss behaviour.

Guenther
(cherry picked from commit 74454cc731f202361f1dce47fa850810bfeb36c8)

---

Summary of changes:
 source3/rpc_server/srv_spoolss_nt.c |6 +-
 1 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpc_server/srv_spoolss_nt.c 
b/source3/rpc_server/srv_spoolss_nt.c
index 855aa30..8170680 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -9598,8 +9598,12 @@ WERROR _spoolss_GetPrintProcessorDirectory(pipes_struct 
*p,
 
/* r-in.level is ignored */
 
+   /* We always should reply with a local print processor directory so that
+* users are not forced to have a [prnproc$] share on the Samba spoolss
+* server - Guenther */
+
result = getprintprocessordirectory_level_1(p-mem_ctx,
-   r-in.server,
+   NULL, /* r-in.server */
r-in.environment,
r-out.info-info1);
if (!W_ERROR_IS_OK(result)) {


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-1199-g1a8294f

2009-08-05 Thread Karolin Seeger
The branch, v3-4-test has been updated
   via  1a8294f1dc7953bd7f45e9b65fe6b5ec005634d0 (commit)
  from  ffb6b4e6f7e47e8f22519d616e4e31444e417d16 (commit)

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


- Log -
commit 1a8294f1dc7953bd7f45e9b65fe6b5ec005634d0
Author: Stefan Metzmacher me...@samba.org
Date:   Mon Jul 13 13:24:19 2009 +0200

s3:net: Fix Bug #6222. Default to DRSUAPI replication for net rpc vampire 
keytab

metze

Signed-off-by: Günther Deschner g...@samba.org
(cherry picked from commit 8646b9521d267284a335aafba3df6039c41b8370)

---

Summary of changes:
 source3/utils/net_rpc_samsync.c |   11 +++
 1 files changed, 7 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c
index 6b23db7..309be17 100644
--- a/source3/utils/net_rpc_samsync.c
+++ b/source3/utils/net_rpc_samsync.c
@@ -493,17 +493,20 @@ int rpc_vampire_keytab(struct net_context *c, int argc, 
const char **argv)
 
if (!dc_info.is_ad) {
printf(DC is not running Active Directory\n);
-   return -1;
-   }
-
-   if (dc_info.is_mixed_mode) {
ret = run_rpc_command(c, cli, ndr_table_netlogon.syntax_id,
  0,
  rpc_vampire_keytab_internals, argc, argv);
+   return -1;
} else {
ret = run_rpc_command(c, cli, ndr_table_drsuapi.syntax_id,
  NET_FLAGS_SEAL,
  rpc_vampire_keytab_ds_internals, argc, 
argv);
+   if (ret != 0  dc_info.is_mixed_mode) {
+   printf(Fallback to NT4 vampire on Mixed-Mode AD 
Domain\n);
+   ret = run_rpc_command(c, cli, 
ndr_table_netlogon.syntax_id,
+ 0,
+ rpc_vampire_keytab_internals, 
argc, argv);
+   }
}
 
return ret;


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-1200-ge7e1a6b

2009-08-05 Thread Karolin Seeger
The branch, v3-4-test has been updated
   via  e7e1a6b3237550ef90db6a52a023885f616f722b (commit)
  from  1a8294f1dc7953bd7f45e9b65fe6b5ec005634d0 (commit)

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


- Log -
commit e7e1a6b3237550ef90db6a52a023885f616f722b
Author: Günther Deschner g...@samba.org
Date:   Mon Aug 3 23:41:08 2009 +0200

s3-spoolss: fix crash bug in spoolss_addprinterex_level_2.

Fixes bug #6607.

Guenther
(cherry picked from commit 75030ff2b16a3ddb79367d970590da2375f7e3dc)

---

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


Changeset truncated at 500 lines:

diff --git a/source3/rpc_server/srv_spoolss_nt.c 
b/source3/rpc_server/srv_spoolss_nt.c
index 8170680..87735d3 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -7530,7 +7530,7 @@ static WERROR spoolss_addprinterex_level_2(pipes_struct 
*p,
}
 
/* you must be a printer admin to add a new printer */
-   if (!print_access_check(NULL, snum, PRINTER_ACCESS_ADMINISTER)) {
+   if (!print_access_check(p-server_info, snum, 
PRINTER_ACCESS_ADMINISTER)) {
free_a_printer(printer,2);
return WERR_ACCESS_DENIED;
}


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-4-test updated - release-4-0-0alpha7-1201-g5c6aa5c

2009-08-05 Thread Karolin Seeger
The branch, v3-4-test has been updated
   via  5c6aa5ce9fb0cc5d63d04b0777d296c82e61c0a5 (commit)
  from  e7e1a6b3237550ef90db6a52a023885f616f722b (commit)

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


- Log -
commit 5c6aa5ce9fb0cc5d63d04b0777d296c82e61c0a5
Author: Volker Lendecke v...@samba.org
Date:   Mon Jul 27 14:47:41 2009 +0200

Fix a valgrind error in chain_reply

construct_reply() references the request after chain_reply has freed it.
(cherry picked from commit 5135ebd6f099518f0a0b5796e8057210be824740)

Addresses bug #6611.

---

Summary of changes:
 source3/include/smb.h  |2 ++
 source3/smbd/process.c |   13 ++---
 2 files changed, 12 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/include/smb.h b/source3/include/smb.h
index 9cae327..b20a8ef 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -659,6 +659,8 @@ struct smb_request {
 * state information for async smb handling
 */
void *async_priv;
+
+   bool done;
 };
 
 /* Defines for the sent_oplock_break field above. */
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 962b492..e1069eb 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -377,6 +377,7 @@ void init_smb_request(struct smb_request *req,
req-conn = conn_find(req-tid);
req-chain_fsp = NULL;
req-chain_outbuf = NULL;
+   req-done = false;
smb_init_perfcount_data(req-pcd);
 
/* Ensure we have at least wct words and 2 bytes of bcc. */
@@ -1395,6 +1396,11 @@ static void construct_reply(char *inbuf, int size, 
size_t unread_bytes,
req-unread_bytes = 0;
}
 
+   if (req-done) {
+   TALLOC_FREE(req);
+   return;
+   }
+
if (req-outbuf == NULL) {
return;
}
@@ -1650,8 +1656,8 @@ void chain_reply(struct smb_request *req)
exit_server_cleanly(chain_reply: srv_send_smb 
failed.);
}
-   TALLOC_FREE(req);
-
+   TALLOC_FREE(req-chain_outbuf);
+   req-done = true;
return;
}
 
@@ -1772,7 +1778,8 @@ void chain_reply(struct smb_request *req)
  req-pcd)) {
exit_server_cleanly(construct_reply: srv_send_smb failed.);
}
-   TALLOC_FREE(req);
+   TALLOC_FREE(req-chain_outbuf);
+   req-done = true;
 }
 
 /


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-843-g3854b5e

2009-08-05 Thread Andrew Tridgell
The branch, master has been updated
   via  3854b5e6146ff8efeb4379a502bb083cbaa05ce4 (commit)
   via  67b6f5784ae8d2e5c5b783b24a4b0ff555a28d44 (commit)
  from  cc74f213248f910c1c7908b23be07485752e85b9 (commit)

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


- Log -
commit 3854b5e6146ff8efeb4379a502bb083cbaa05ce4
Author: Andrew Tridgell tri...@samba.org
Date:   Wed Aug 5 20:23:12 2009 +1000

changed BCC handling for SMBwriteX to handle broken MacOSX client

see bug #6610

The MacOSX SMB client sets the BCC value in SMBwriteX calls to zero
instead of the correct size. Checking against WindowsXP, I've found
that Windows uses the maximum of the computed buffer size and the
given BCC value. I've changed Samba4 to do the same to allow MacOSX to
work.

I've limited this change to non-chained packets to ensure we don't get
the possibility of exploits based on overlapping chained requests

commit 67b6f5784ae8d2e5c5b783b24a4b0ff555a28d44
Author: Andrew Tridgell tri...@samba.org
Date:   Wed Aug 5 20:19:36 2009 +1000

on buffer overflow windows gives SMBSRV:ERRerror here

---

Summary of changes:
 source4/smb_server/smb/receive.c |   21 -
 source4/smb_server/smb/reply.c   |2 +-
 2 files changed, 9 insertions(+), 14 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/smb_server/smb/receive.c b/source4/smb_server/smb/receive.c
index 03631f8..9a03909 100644
--- a/source4/smb_server/smb/receive.c
+++ b/source4/smb_server/smb/receive.c
@@ -407,19 +407,14 @@ NTSTATUS smbsrv_recv_smb_request(void *private_data, 
DATA_BLOB blob)
req-in.data = req-in.vwv + VWV(req-in.wct) + 2;
req-in.data_size = SVAL(req-in.vwv, VWV(req-in.wct));
 
-   /* the bcc length is only 16 bits, but some packets
-  (such as SMBwriteX) can be much larger than 64k. We
-  detect this by looking for a large non-chained NBT
-  packet (at least 64k bigger than what is
-  specified). If it is detected then the NBT size is
-  used instead of the bcc size */
-   if (req-in.data_size + 0x1 = 
-   req-in.size - PTR_DIFF(req-in.data, req-in.buffer) 
-   ( message_flags(command)  LARGE_REQUEST) 
-   ( !(message_flags(command)  AND_X) ||
- (req-in.wct  1 || SVAL(req-in.vwv, VWV(0)) == 
SMB_CHAIN_NONE) )
-   ) {
-   /* its an oversized packet! fun for all the family */
+   /* special handling for oversize calls. Windows seems
+  to take the maximum of the BCC value and the
+  computed buffer size. This handles oversized writeX
+  calls, and possibly oversized SMBtrans calls */
+   if ((message_flags(command)  LARGE_REQUEST) 
+   ( !(message_flags(command)  AND_X) ||
+ (req-in.wct  1 || SVAL(req-in.vwv, VWV(0)) == 
SMB_CHAIN_NONE)) 
+   req-in.data_size  req-in.size - 
PTR_DIFF(req-in.data,req-in.buffer)) {
req-in.data_size = req-in.size - 
PTR_DIFF(req-in.data,req-in.buffer);
}
}
diff --git a/source4/smb_server/smb/reply.c b/source4/smb_server/smb/reply.c
index 0433d35..104caca 100644
--- a/source4/smb_server/smb/reply.c
+++ b/source4/smb_server/smb/reply.c
@@ -1063,7 +1063,7 @@ void smbsrv_reply_write_and_X(struct smbsrv_request *req)
 
/* make sure the data is in bounds */
if (req_data_oob(req-in.bufinfo, io-writex.in.data, 
io-writex.in.count)) {
-   smbsrv_send_error(req, NT_STATUS_FOOBAR);
+   smbsrv_send_error(req, NT_STATUS_DOS(ERRSRV, ERRerror));
return;
}
 


-- 
Samba Shared Repository


[SCM] SAMBA-CTDB repository - branch v3-4-ctdb updated - 3.4.0-ctdb-2-1-g01a3032

2009-08-05 Thread Michael Adam
The branch, v3-4-ctdb has been updated
   via  01a3032f84287f52834e881c2c17fd6977dbc774 (commit)
  from  a87e63fef46b01d406da6b616dfd2508b07ca833 (commit)

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


- Log -
commit 01a3032f84287f52834e881c2c17fd6977dbc774
Author: Michael Adam ob...@samba.org
Date:   Wed Aug 5 14:09:00 2009 +0200

v3-4-ctdb: Bump the ctdb verdor patch level to 3.

For the next release.

Michael

---

Summary of changes:
 source3/VERSION |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/VERSION b/source3/VERSION
index 7e9ec6e..d0278a0 100644
--- a/source3/VERSION
+++ b/source3/VERSION
@@ -85,7 +85,7 @@ SAMBA_VERSION_IS_GIT_SNAPSHOT=no
 #  #
 
 SAMBA_VERSION_VENDOR_SUFFIX=ctdb
-SAMBA_VERSION_VENDOR_PATCH=2
+SAMBA_VERSION_VENDOR_PATCH=3
 
 
 # This can be set by vendors if they want..#


-- 
SAMBA-CTDB repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-844-g39b0158

2009-08-05 Thread Matthias Dieter Wallnöfer
The branch, master has been updated
   via  39b015837378b6dca72c477225444e700fe40040 (commit)
  from  3854b5e6146ff8efeb4379a502bb083cbaa05ce4 (commit)

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


- Log -
commit 39b015837378b6dca72c477225444e700fe40040
Author: Matthias Dieter Wallnöfer mwallnoe...@yahoo.de
Date:   Wed Aug 5 20:28:05 2009 +0200

s4:ldb Cosmetic corrections in rdn_name module

---

Summary of changes:
 source4/lib/ldb/modules/rdn_name.c |8 
 1 files changed, 4 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/lib/ldb/modules/rdn_name.c 
b/source4/lib/ldb/modules/rdn_name.c
index e9f873f..65cdb25 100644
--- a/source4/lib/ldb/modules/rdn_name.c
+++ b/source4/lib/ldb/modules/rdn_name.c
@@ -1,8 +1,8 @@
 /* 
ldb database library
 
-   Copyright (C) Andrew Bartlet 2005
-   Copyright (C) Simo Sorce 2006-2008
+   Copyright (C) Andrew Bartlett 2005
+   Copyright (C) Simo Sorce 2006-2008
 
  ** NOTE! The following LGPL license applies to the ldb
  ** library. This does NOT imply that all of Samba is released
@@ -23,13 +23,13 @@
 */
 
 /*
- *  Name: rdb_name
+ *  Name: rdn_name
  *
  *  Component: ldb rdn name module
  *
  *  Description: keep a consistent name attribute on objects manpulations
  *
- *  Author: Andrew Bartlet
+ *  Author: Andrew Bartlett
  *
  *  Modifications:
  *- made the module async


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-845-ge2aa38a

2009-08-05 Thread Andrew Tridgell
The branch, master has been updated
   via  e2aa38a20175430ae1ef7540a8ca7cdf0c4e955e (commit)
  from  39b015837378b6dca72c477225444e700fe40040 (commit)

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


- Log -
commit e2aa38a20175430ae1ef7540a8ca7cdf0c4e955e
Author: Andrew Tridgell tri...@samba.org
Date:   Thu Aug 6 07:38:43 2009 +1000

define uwrap_enabled() on Samba3

s3 doesn't use uwrap yet, but it uses some common coe in lib/, and so
needs a dummy version of the uwrap_enabled() macro

---

Summary of changes:
 source3/include/includes.h |3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/include/includes.h b/source3/include/includes.h
index 8fb240f..a636716 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -1112,4 +1112,7 @@ void in6_addr_to_sockaddr_storage(struct sockaddr_storage 
*ss,
  struct in6_addr ip);
 #endif
 
+/* samba3 doesn't use uwrap yet */
+#define uwrap_enabled() 0
+
 #endif /* _INCLUDES_H */


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-846-gb97d85c

2009-08-05 Thread Andrew Tridgell
The branch, master has been updated
   via  b97d85c5e4db00a6cfc0a191907e88d2623c6681 (commit)
  from  e2aa38a20175430ae1ef7540a8ca7cdf0c4e955e (commit)

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


- Log -
commit b97d85c5e4db00a6cfc0a191907e88d2623c6681
Author: Andrew Tridgell tri...@samba.org
Date:   Thu Aug 6 07:57:17 2009 +1000

set uidwrappersrcdir

this is needed for the combined build

---

Summary of changes:
 source3/samba4.mk |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/samba4.mk b/source3/samba4.mk
index 653ae25..a8cebf5 100644
--- a/source3/samba4.mk
+++ b/source3/samba4.mk
@@ -88,6 +88,7 @@ libcmdlinesrcdir := $(samba4srcdir)/lib/cmdline
 poptsrcdir := $(samba4srcdir)/../lib/popt
 socketwrappersrcdir := $(samba4srcdir)/../lib/socket_wrapper
 nsswrappersrcdir := $(samba4srcdir)/../lib/nss_wrapper
+uidwrappersrcdir := $(samba4srcdir)/../lib/uid_wrapper
 libstreamsrcdir := $(samba4srcdir)/lib/stream
 libutilsrcdir := $(samba4srcdir)/../lib/util
 libtdrsrcdir := ../lib/tdr


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-847-g64e2b85

2009-08-05 Thread Andrew Bartlett
The branch, master has been updated
   via  64e2b859d2ed9c2428219617c3864c64cd6ed909 (commit)
  from  b97d85c5e4db00a6cfc0a191907e88d2623c6681 (commit)

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


- Log -
commit 64e2b859d2ed9c2428219617c3864c64cd6ed909
Author: Andrew Bartlett abart...@samba.org
Date:   Thu Aug 6 08:17:09 2009 +1000

s4:heimdal: import lorikeet-heimdal-200908052208 (commit 
370a73a74199a5a55188340906e15fd795f67a74)

This removes some of the portability changes made to code under
heimdal/

If these are still required, then we will re-add them with code under
heimdal_build/ (so that we can simply 'drop in' future heimdal
releases).

Andrew Bartlett

---

Summary of changes:
 source4/heimdal/kuser/kinit.c  |2 --
 source4/heimdal/kuser/kuser_locl.h |2 +-
 source4/heimdal/lib/gssapi/krb5/cfx.c  |9 +
 source4/heimdal/lib/hcrypto/aes.c  |3 ---
 source4/heimdal/lib/hcrypto/bn.c   |3 ---
 source4/heimdal/lib/hcrypto/des.c  |3 ---
 source4/heimdal/lib/hcrypto/dh-imath.c |2 --
 source4/heimdal/lib/hcrypto/dh.c   |2 --
 source4/heimdal/lib/hcrypto/dsa.c  |4 
 source4/heimdal/lib/hcrypto/engine.c   |4 
 source4/heimdal/lib/hcrypto/evp-hcrypto.c  |4 
 source4/heimdal/lib/hcrypto/md2.c  |4 
 source4/heimdal/lib/hcrypto/md4.c  |4 
 source4/heimdal/lib/hcrypto/md5.c  |4 
 source4/heimdal/lib/hcrypto/pkcs12.c   |4 
 source4/heimdal/lib/hcrypto/pkcs5.c|4 
 source4/heimdal/lib/hcrypto/rand-egd.c |4 
 source4/heimdal/lib/hcrypto/rand-fortuna.c |4 
 source4/heimdal/lib/hcrypto/rand-timer.c   |4 
 source4/heimdal/lib/hcrypto/rand-unix.c|4 
 source4/heimdal/lib/hcrypto/rand.c |4 
 source4/heimdal/lib/hcrypto/rc2.c  |3 ---
 source4/heimdal/lib/hcrypto/rc4.c  |4 
 source4/heimdal/lib/hcrypto/rijndael-alg-fst.c |3 ---
 source4/heimdal/lib/hcrypto/rnd_keys.c |3 ---
 source4/heimdal/lib/hcrypto/rsa-imath.c|4 
 source4/heimdal/lib/hcrypto/rsa.c  |4 
 source4/heimdal/lib/hcrypto/sha.c  |4 
 source4/heimdal/lib/hcrypto/sha256.c   |4 
 source4/heimdal/lib/hcrypto/ui.c   |3 ---
 source4/heimdal/lib/krb5/context.c |   12 
 source4/heimdal/lib/krb5/krb5_locl.h   |2 +-
 source4/heimdal/lib/roken/vis.hin  |   24 
 33 files changed, 31 insertions(+), 117 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/heimdal/kuser/kinit.c b/source4/heimdal/kuser/kinit.c
index 350988d..4208fa8 100644
--- a/source4/heimdal/kuser/kinit.c
+++ b/source4/heimdal/kuser/kinit.c
@@ -768,10 +768,8 @@ main (int argc, char **argv)
 setprogname (argv[0]);
 
 setlocale (LC_ALL, );
-#if defined(HEIMDAL_LOCALEDIR)
 bindtextdomain (heimdal_kuser, HEIMDAL_LOCALEDIR);
 textdomain(heimdal_kuser);
-#endif
 
 ret = krb5_init_context (context);
 if (ret == KRB5_CONFIG_BADFORMAT)
diff --git a/source4/heimdal/kuser/kuser_locl.h 
b/source4/heimdal/kuser/kuser_locl.h
index eafffe9..1bf682b 100644
--- a/source4/heimdal/kuser/kuser_locl.h
+++ b/source4/heimdal/kuser/kuser_locl.h
@@ -88,7 +88,7 @@
 #include locale.h
 #endif
 
-#ifdef HAVE_LIBINTL_H
+#ifdef LIBINTL
 #include libintl.h
 #define N_(x,y) gettext(x)
 #define NP_(x,y) (x)
diff --git a/source4/heimdal/lib/gssapi/krb5/cfx.c 
b/source4/heimdal/lib/gssapi/krb5/cfx.c
index 35e5a9e..7cc7ee1 100755
--- a/source4/heimdal/lib/gssapi/krb5/cfx.c
+++ b/source4/heimdal/lib/gssapi/krb5/cfx.c
@@ -41,10 +41,10 @@
 #define CFXAcceptorSubkey  (1  2)
 
 krb5_error_code
-_gsskrb5cfx_wrap_length_cfx(const gsskrb5_ctx context_handle,
-   krb5_context context,
+_gsskrb5cfx_wrap_length_cfx(krb5_context context,
krb5_crypto crypto,
int conf_req_flag,
+   int dce_style,
size_t input_length,
size_t *output_length,
size_t *cksumsize,
@@ -71,7 +71,7 @@ _gsskrb5cfx_wrap_length_cfx(const gsskrb5_ctx context_handle,
/* Header is concatenated with data before encryption */
input_length += sizeof(gss_cfx_wrap_token_desc);
 
-   if (IS_DCE_STYLE(context_handle)) {
+   if (dce_style) {
ret = krb5_crypto_getblocksize(context, crypto, padsize);
} else {
ret = krb5_crypto_getpadsize(context, crypto, padsize);

[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-848-g57da47c

2009-08-05 Thread Andrew Tridgell
The branch, master has been updated
   via  57da47c1bd76157a6a403154551645c16ad64a75 (commit)
  from  64e2b859d2ed9c2428219617c3864c64cd6ed909 (commit)

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


- Log -
commit 57da47c1bd76157a6a403154551645c16ad64a75
Author: Andrew Tridgell tri...@samba.org
Date:   Thu Aug 6 11:24:42 2009 +1000

deliberately break the build

I want to make sure that the build breakage emails are now working
correctly

---

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


Changeset truncated at 500 lines:

diff --git a/source4/Makefile b/source4/Makefile
index 24e58bc..28c2468 100644
--- a/source4/Makefile
+++ b/source4/Makefile
@@ -161,7 +161,7 @@ libraries:: $(STATIC_LIBS) $(SHARED_LIBS)
 modules:: $(PLUGINS)
 headers:: $(PUBLIC_HEADERS)
 manpages:: $(MANPAGES)
-all:: showflags $(ALL_PREDEP) binaries modules pythonmods libraries headers
+all:: DELIBERATEBUILDBREAKAGE showflags $(ALL_PREDEP) binaries modules 
pythonmods libraries headers
 everything:: all
 
 LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)=$(shliboutputdir):$$$(LIB_PATH_VAR)


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-849-g740a40e

2009-08-05 Thread Andrew Tridgell
The branch, master has been updated
   via  740a40e74eb79234e1c40ca88768202b3c0af2b9 (commit)
  from  57da47c1bd76157a6a403154551645c16ad64a75 (commit)

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


- Log -
commit 740a40e74eb79234e1c40ca88768202b3c0af2b9
Author: Andrew Tridgell tri...@samba.org
Date:   Thu Aug 6 11:36:52 2009 +1000

Revert deliberately break the build

This reverts commit 57da47c1bd76157a6a403154551645c16ad64a75.

The build emails do work :-)

---

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


Changeset truncated at 500 lines:

diff --git a/source4/Makefile b/source4/Makefile
index 28c2468..24e58bc 100644
--- a/source4/Makefile
+++ b/source4/Makefile
@@ -161,7 +161,7 @@ libraries:: $(STATIC_LIBS) $(SHARED_LIBS)
 modules:: $(PLUGINS)
 headers:: $(PUBLIC_HEADERS)
 manpages:: $(MANPAGES)
-all:: DELIBERATEBUILDBREAKAGE showflags $(ALL_PREDEP) binaries modules 
pythonmods libraries headers
+all:: showflags $(ALL_PREDEP) binaries modules pythonmods libraries headers
 everything:: all
 
 LD_LIBPATH_OVERRIDE = $(LIB_PATH_VAR)=$(shliboutputdir):$$$(LIB_PATH_VAR)


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-850-g252f7da

2009-08-05 Thread Andrew Tridgell
The branch, master has been updated
   via  252f7da702fd0409f7bfff05ef594911ededa32f (commit)
  from  740a40e74eb79234e1c40ca88768202b3c0af2b9 (commit)

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


- Log -
commit 252f7da702fd0409f7bfff05ef594911ededa32f
Author: Rusty Russell ru...@rustcorp.com.au
Date:   Thu Aug 6 13:13:42 2009 +1000

There is one signedness issue in tdb which prevents traverses of TDB records
over the 2G offset on systems which support 64 bit file offsets.  This fixes
that case.

On systems with 32 bit offsets, expansion and fcntl locking on these records
will fail anyway.  SAMBA already does '#define _FILE_OFFSET_BITS 64' in
config.h (on my 32-bit x86 Linux system at least) to get 64 bit file 
offsets.

Signed-off-by: Rusty Russell ru...@rustcorp.com.au

---

Summary of changes:
 lib/tdb/common/traverse.c |   30 +-
 1 files changed, 21 insertions(+), 9 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/tdb/common/traverse.c b/lib/tdb/common/traverse.c
index 07b0c23..8e5a63a 100644
--- a/lib/tdb/common/traverse.c
+++ b/lib/tdb/common/traverse.c
@@ -27,8 +27,11 @@
 
 #include tdb_private.h
 
-/* Uses traverse lock: 0 = finish, -1 = error, other = record offset */
-static int tdb_next_lock(struct tdb_context *tdb, struct tdb_traverse_lock 
*tlock,
+#define TDB_NEXT_LOCK_ERR ((tdb_off_t)-1)
+
+/* Uses traverse lock: 0 = finish, TDB_NEXT_LOCK_ERR = error,
+   other = record offset */
+static tdb_off_t tdb_next_lock(struct tdb_context *tdb, struct 
tdb_traverse_lock *tlock,
 struct list_struct *rec)
 {
int want_next = (tlock-off != 0);
@@ -71,7 +74,7 @@ static int tdb_next_lock(struct tdb_context *tdb, struct 
tdb_traverse_lock *tloc
}
 
if (tdb_lock(tdb, tlock-hash, tlock-lock_rw) == -1)
-   return -1;
+   return TDB_NEXT_LOCK_ERR;
 
/* No previous record?  Start at top of chain. */
if (!tlock-off) {
@@ -99,6 +102,7 @@ static int tdb_next_lock(struct tdb_context *tdb, struct 
tdb_traverse_lock *tloc
 
/* Detect infinite loops. From Shlomi Yaakobovich 
shl...@exanet.com. */
if (tlock-off == rec-next) {
+   tdb-ecode = TDB_ERR_CORRUPT;
TDB_LOG((tdb, TDB_DEBUG_FATAL, tdb_next_lock: 
loop detected.\n));
goto fail;
}
@@ -127,7 +131,7 @@ static int tdb_next_lock(struct tdb_context *tdb, struct 
tdb_traverse_lock *tloc
tlock-off = 0;
if (tdb_unlock(tdb, tlock-hash, tlock-lock_rw) != 0)
TDB_LOG((tdb, TDB_DEBUG_FATAL, tdb_next_lock: On error unlock 
failed!\n));
-   return -1;
+   return TDB_NEXT_LOCK_ERR;
 }
 
 /* traverse the entire database - calling fn(tdb, key, data) on each element.
@@ -141,7 +145,8 @@ static int tdb_traverse_internal(struct tdb_context *tdb,
 {
TDB_DATA key, dbuf;
struct list_struct rec;
-   int ret, count = 0;
+   int ret = 0, count = 0;
+   tdb_off_t off;
 
/* This was in the initializaton, above, but the IRIX compiler
 * did not like it.  crh
@@ -152,7 +157,11 @@ static int tdb_traverse_internal(struct tdb_context *tdb,
tdb-travlocks.next = tl;
 
/* tdb_next_lock places locks on the record returned, and its chain */
-   while ((ret = tdb_next_lock(tdb, tl, rec))  0) {
+   while ((off = tdb_next_lock(tdb, tl, rec)) != 0) {
+   if (off == TDB_NEXT_LOCK_ERR) {
+   ret = -1;
+   goto out;
+   }
count++;
/* now read the full record */
key.dptr = tdb_alloc_read(tdb, tl-off + sizeof(rec), 
@@ -177,7 +186,6 @@ static int tdb_traverse_internal(struct tdb_context *tdb,
}
if (fn  fn(tdb, key, dbuf, private_data)) {
/* They want us to terminate traversal */
-   ret = count;
if (tdb_unlock_record(tdb, tl-off) != 0) {
TDB_LOG((tdb, TDB_DEBUG_FATAL, tdb_traverse: 
unlock_record failed!\n));;
ret = -1;
@@ -256,6 +264,7 @@ TDB_DATA tdb_firstkey(struct tdb_context *tdb)
 {
TDB_DATA key;
struct list_struct rec;
+   tdb_off_t off;
 
/* release any old lock */
if (tdb_unlock_record(tdb, tdb-travlocks.off) != 0)
@@ -264,7 +273,8 @@ TDB_DATA tdb_firstkey(struct tdb_context *tdb)
tdb-travlocks.lock_rw = F_RDLCK;
 
/* Grab first record: locks chain and returned record. */
-   if (tdb_next_lock(tdb, tdb-travlocks, rec) = 0)
+   off =