[Samba] nmbd eats cpu for breakfast after upgrade from 3.5 to 3.6

2012-04-17 Thread Ander Punnar
Hello.

I have Samba 3.6.4 with LDAP backend
with domain logons enabled.

Long time I was running 3.5.1? from
Debian Squeeze backports without any problems.

Few days ago I decided (after testing) to upgrade
to 3.6.4, also from Debian backports.

Next morning nobody could login
and nmbd was eating up a enitre cpu core.
Killing nmbd with -9 and restarting samba
solved the problem.

Same happened again next day.
It could be machine related, since this problem
didin't come up in test environment with identical machine
and network configuration.

And yes, network connectivity was okay.
I have had problems with nmbd in the past
when network connectivity at least for one interface
disappears, but this time this wasn't issue.

Any ideas?

PS. Since this issue occurred on production machine
and I have low loglevel on it, I can't provide
any extra details, yet.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Disable the Windows default user when connecting to a share (if possible)

2012-04-17 Thread danny.petterson
Hi Gurus!

Default, when a Windows-client tries to connect to a Samba-share, it sends the 
user-credentials used on the PC/Windows-client itself - is it possible to 
disable these defaults in smb.conf, making it possible for the client to always 
use other credentials than those used on the Windows-client?

If the above doesn't make sense, let me clarify with an example:

On my Windows-PC Im logged on as Danny - when I try to reach a Samba-share, 
as a default it tries with the user Danny before using/asking for other 
credentials. I would like to disable this default behavior.

Any ideas?

Thanks in advance.


Greetings from

Danny Petterson
Shadows and Dust



Subject to local law, communications with Accenture and its affiliates 
including telephone calls and emails (including content), may be monitored by 
our systems for the purposes of security and the assessment of internal 
compliance with Accenture policy.
__

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


Re: [Samba] nmbd eats cpu for breakfast after upgrade from 3.5 to 3.6

2012-04-17 Thread Jeremy Allison
On Tue, Apr 17, 2012 at 10:59:45AM +0300, Ander Punnar wrote:
 Hello.
 
 I have Samba 3.6.4 with LDAP backend
 with domain logons enabled.
 
 Long time I was running 3.5.1? from
 Debian Squeeze backports without any problems.
 
 Few days ago I decided (after testing) to upgrade
 to 3.6.4, also from Debian backports.
 
 Next morning nobody could login
 and nmbd was eating up a enitre cpu core.
 Killing nmbd with -9 and restarting samba
 solved the problem.
 
 Same happened again next day.
 It could be machine related, since this problem
 didin't come up in test environment with identical machine
 and network configuration.
 
 And yes, network connectivity was okay.
 I have had problems with nmbd in the past
 when network connectivity at least for one interface
 disappears, but this time this wasn't issue.
 
 Any ideas?

What does strace -p nmb-pid say ?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Problems with roaming user profiles

2012-04-17 Thread Dr. Harry Knitter
Hello,

I have migrated a samba server (version 3.idon´t remember) from a RHEL box to 
a debian 6 box (samba version 3.5.6-df), having changed password database from 
smbpasswd to tbdsam, set the old SID to the new samba. Everything works well, 
machines are known, new machines  (XP) can be added to the domain, users can 
work on their shares and those they have to work on.
However _some_ users cannot load their server based user profiles others don´t 
have this problem.
I have tried: map the (secondary) Unix group users to Samba Domain Users and a 
lot of permission changes.
Nothing worked.

The smbd.conf section for homes is as follows:
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0660
force security mode = 0770
directory mask = 0770
browseable = No

Unix permissions didn´t change exept that now the primary group of the 
individual users is private and users is the secondary group.

I am really a little desperate getting out of that.

What should I try.

Regards

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


[Samba] transfer roles

2012-04-17 Thread sandy . napoles
Hello list, I have samba 4 as BDC,I need to promove this server as PDC and
eliminate my windows server 2003, but I do not want to write all users
again, then I can make it as follow:

1- In the console of windows run  ntdsutil
2- After write roles and press enter
3- write connections and press enter
4- write connect to server \\PC with samba4
5- write quit and press enter
6- Write in this order
---transfer domain naming master
---transfer infrastructure master
---transfer PDC
---transfer RID master
---trasnfer schema master
7- shutdown to pc with windows y reboot samba4..

That is all. samba 4 as PDC after to transfer roles from windows server
2003 to samba4

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


[Samba] Preventing brute force password attacks

2012-04-17 Thread Ed Ravin
I was hoping to set up fail2ban to block IP addresses that generate
too many Samba password failures, but it needs a syslog message with
the IP address of the computer that failed password authentication.

Unfortunately, Samba doesn't seem to do this in my environment.  Here's
a sample error message:

smbd[312]:  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User brutus 
!

I tried turning on full_audit, and I see the audit messages for successful
connections, but there aren't any audit messages for login failures.  I
used these settings:

   full_audit:failure = connect
   full_audit:success = connect disconnect
   full_audit:facility = local5
   full_audit:priority = notice

Can Samba be configured to log authentication errors with IP addresses?
Or do we need to change the source?


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


[Samba] CTDB panics when vacuuming serverid.tdb

2012-04-17 Thread Lee, Michael
CTDB Samba Team,

I have a two-node cluster successfully running a GFS2 filesystem.  I
compiled ctdb ver 1.12 with Samba 3.6.3 for 64-bit systems.  Running on
RHEL 5.7.  I was able to add the cluster to the domain but after I
restarted CTDB, it panics right after doing a vacuum of the serverid.tdb
database. 
The lock file is on the GFS FS so both nodes can access it.  Any
ideas as to what could cause this?  Thanks in advance.


  smb.conf  --
[global]
workgroup = MYDOMAIN
clustering = Yes
netbios name = apollo
realm = MYDOMAIN.ADS
server string = Samba Server Version %v
security = ADS
allow trusted domains = No
max protocol = SMB2
template shell = /bin/bash
winbind separator = +
winbind use default domain = Yes
winbind refresh tickets = Yes
winbind offline logon = Yes
idmap config *:range = 2000-20
idmap config * : backend = tdb2
ea support = Yes
map acl inherit = Yes
cups options = raw
store dos attributes = Yes


- End of smb.conf  ---


--- log.ctdb  (debug level 10 )-

2012/04/17 14:57:33.045989 [18864]: server/eventscript.c:762 Starting
eventscript startup
2012/04/17 14:57:33.081299 [18864]: iface[eth0] has changed it's link
status down = up
2012/04/17 14:57:33.253713 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=544851151346827329
2012/04/17 14:57:33.253776 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=19372
2012/04/17 14:57:33.253835 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=4294967296
2012/04/17 14:57:33.253905 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=18302628885633695744
2012/04/17 14:57:33.255216 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=2882153093303746292
2012/04/17 14:57:33.255268 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=19373
2012/04/17 14:57:33.255316 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=4294967296
2012/04/17 14:57:33.255362 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=18302628885633695744
2012/04/17 14:57:33.255437 [18864]: 50.samba: Starting Winbind services:
[  OK  ]
2012/04/17 14:57:33.258740 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=17745271821680400640
2012/04/17 14:57:33.258805 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=19376
2012/04/17 14:57:33.258856 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=4294967296
2012/04/17 14:57:33.258930 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=18302628885633695744
2012/04/17 14:57:33.259237 [18864]: server/ctdb_daemon.c:188 Registered
message handler for srvid=13712550619516882333
2012/04/17 14:57:33.259703 [18864]: server/ctdb_vacuum.c:1484 schedule
for deletion: db[serverid.tdb] db_id[0x9ec2a880] key_hash[0x4d617955]
lmaster[0] migrated_with_data[no]
2012/04/17 14:57:33.259722 [18864]:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
2012/04/17 14:57:33.259729 [18864]: INTERNAL ERROR: Signal 11 in ctdbd
pid 188642012/04/17 14:57:33.259734 [18864]:
Please read the file BUGS.txt in the distribution
2012/04/17 14:57:33.259738 [18864]:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
2012/04/17 14:57:33.259743 [18864]: PANIC: internal error
2012/04/17 14:57:33.259898 [18864]: BACKTRACE: 21 stack frames:
 #0 ctdbd [0x460e4c]
 #1 ctdbd [0x46116e]
 #2 ctdbd [0x4612bf]
 #3 ctdbd [0x4612f4]
 #4 /lib64/libc.so.6 [0x3ebb4302d0]
 #5 ctdbd [0x45cfcc]
 #6 ctdbd [0x449a53]
 #7 ctdbd [0x449c88]
 #8 ctdbd [0x428178]
 #9 ctdbd [0x428512]
 #10 ctdbd [0x423267]
 #11 ctdbd [0x4236ee]
 #12 ctdbd [0x473609]
 #13 ctdbd [0x476a30]
 #14 ctdbd [0x472251]
 #15 ctdbd [0x472476]
 #16 ctdbd [0x472532]
 #17 ctdbd [0x4094f7]
 #18 ctdbd [0x404ea0]
 #19 /lib64/libc.so.6(__libc_start_main+0xf4) [0x3ebb41d994]
 #20 ctdbd [0x403899]
2012/04/17 14:57:33.699494 [recoverd:18925]: CTDB daemon is no longer
available. Shutting down recovery daemon


 END OF log.ctdb---


-- 
Mike

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


Re: [Samba] Preventing brute force password attacks

2012-04-17 Thread Robert Heller
At Tue, 17 Apr 2012 20:32:05 + (UTC) era...@panix.com (Ed Ravin) wrote:

 
 I was hoping to set up fail2ban to block IP addresses that generate
 too many Samba password failures, but it needs a syslog message with
 the IP address of the computer that failed password authentication.
 
 Unfortunately, Samba doesn't seem to do this in my environment.  Here's
 a sample error message:
 
 smbd[312]:  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User 
 brutus !
 
 I tried turning on full_audit, and I see the audit messages for successful
 connections, but there aren't any audit messages for login failures.  I
 used these settings:
 
full_audit:failure = connect
full_audit:success = connect disconnect
full_audit:facility = local5
full_audit:priority = notice
 
 Can Samba be configured to log authentication errors with IP addresses?
 Or do we need to change the source?

You do understand that fail2ban works with your firewall and is meant
for public internet services, such as Mail (eg Sendmail or Postfix) or
HTTP or DNS.  Since NETBIOS services are NOT services that should ever
be used over the public internet.  You should only have smbd/nmbd
listening on you local LAN and not on your WAN / public Internet
connection. Since your LAN will have only known local IP addresses
(either statically assigned or from a limited pool of IP address), it
really isn't meaningful to block these addresses.

What *exactly* do you want to accomplish here?  Do you really want to
ban machines on your LAN from accessing your (office) server?

-- 
Robert Heller -- 978-544-6933 / hel...@deepsoft.com
Deepwoods Software-- http://www.deepsoft.com/
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments


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


[Samba] Destination share larger than windows source

2012-04-17 Thread Mike Kelly
Hi,

I'm running Samba 3.6.3 on Ubuntu 12.04 (beta).  Like many before me,
I'm trying to migrate data from a Windows file server.

I copied over a share as a test and was a bit surprised when the amount
of space allocated in the file system was over 100GB larger than the
Windows source.  I am running on ext4 with strict allocate = yes
because I want to be sure that when I turn on quotas, or my users fill
up the file system, that they get the same error experience which they
would get under windows.  Or, put another way, software expecting
windows allocate-on-open semantics will get what they expect.

Now, if I were copying from a Unix file system I'd expect to blame this
on sparse files or hard links.  However I'm under the impression that
both of these are exceedingly rare under Windows.  Furthermore, I would
expect the Properties dialog box to show useful numbers for Size and
Size on disk.  By useful I mean that if I were copying data to
another disk of size X, I would expect my data to fit on that disk so
long as these numbers are less than X.

I'm using robocopy from the windows file server to copy the files.

According to Windows there are 116,000 files and 2800 folders, and I get
exactly the same values in Unix when running find /share -type f | wc -l
and find /share -type d | wc -l, except that the latter is larger by
one, which I assume is because windows doesn't count the share folder
itself and find does.  I would expect these numbers to be different if I
was being bitten by some weird windows folder junction point.

Windows share folder size: 353GB
Samba share folder size: 470GB

Can anyone explain this behavior?

Mike

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


Re: [Samba] Destination share larger than windows source

2012-04-17 Thread Jeremy Allison
On Tue, Apr 17, 2012 at 03:41:59PM -0700, Mike Kelly wrote:
 Hi,
 
 I'm running Samba 3.6.3 on Ubuntu 12.04 (beta).  Like many before me,
 I'm trying to migrate data from a Windows file server.
 
 I copied over a share as a test and was a bit surprised when the amount
 of space allocated in the file system was over 100GB larger than the
 Windows source.  I am running on ext4 with strict allocate = yes
 because I want to be sure that when I turn on quotas, or my users fill
 up the file system, that they get the same error experience which they
 would get under windows.  Or, put another way, software expecting
 windows allocate-on-open semantics will get what they expect.
 
 Now, if I were copying from a Unix file system I'd expect to blame this
 on sparse files or hard links.  However I'm under the impression that
 both of these are exceedingly rare under Windows.  Furthermore, I would
 expect the Properties dialog box to show useful numbers for Size and
 Size on disk.  By useful I mean that if I were copying data to
 another disk of size X, I would expect my data to fit on that disk so
 long as these numbers are less than X.
 
 I'm using robocopy from the windows file server to copy the files.
 
 According to Windows there are 116,000 files and 2800 folders, and I get
 exactly the same values in Unix when running find /share -type f | wc -l
 and find /share -type d | wc -l, except that the latter is larger by
 one, which I assume is because windows doesn't count the share folder
 itself and find does.  I would expect these numbers to be different if I
 was being bitten by some weird windows folder junction point.
 
 Windows share folder size: 353GB
 Samba share folder size: 470GB
 
 Can anyone explain this behavior?

Can you run a recursive du on both systems to see which
directories have a discontinuity ?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] nmbd eats cpu for breakfast after upgrade from 3.5 to 3.6

2012-04-17 Thread Ander Punnar
On 17 April 2012 20:19, Jeremy Allison j...@samba.org wrote:
 What does strace -p nmb-pid say ?

Nothing interesting:
http://pastebin.com/93HUQ0Tp

In nmbd log there are lots of following lines:
http://pastebin.com/ENhvFqdx

Looks like lots of machines ask about WPAD.

But then I noticed following lines:
process_local_master_announce: Server MMC-NAS-COPY at IP 172.21.0.13
is announcing itself as a local master browser for workgroup KHK and
we think we are master. Forcing election.
Samba name server DC has stopped being a local master browser for
workgroup KHK on subnet 172.21.0.2

Looks like our iomega nas box wants to become local master browser.
This shouldn't happen, right?
In normal circumstances Samba should always win?

I changed smb.conf:
os level = 65
(was default, 20, before).
Let's see what happens.

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


[Samba] ctdb: user creates duplicated session

2012-04-17 Thread Андрей Гребенников

Hi all!

I have an issue with files opening. While using ctdb with shared ip, 
user opens a file, and I see the file being opened twice from the same 
ip - once with RW rights, second with RO. When he tries to save file 
after changes, he cannot. If he closes the file, his RO sessions closes, 
but the other not, therefore I should terminate it by hands from server. 
Does anyone know the reasonof this?


--
Faithfully, Andrey Grebennikov

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


[SCM] Samba Shared Repository - branch master updated

2012-04-17 Thread Stefan Metzmacher
The branch, master has been updated
   via  4460ba5 s4:ldapcmp.py: pass down outf and errf
  from  92c5e80 docs:man:vfs_gpfs: Remove itemized list to fix indentation

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


- Log -
commit 4460ba5288fc84dce9060e1e15e3ae25114b2455
Author: Stefan Metzmacher me...@samba.org
Date:   Mon Mar 26 09:31:55 2012 +0200

s4:ldapcmp.py: pass down outf and errf

Not all classes are derived from class 'Command'.

metze

Autobuild-User: Stefan Metzmacher me...@samba.org
Autobuild-Date: Tue Apr 17 10:06:47 CEST 2012 on sn-devel-104

---

Summary of changes:
 source4/scripting/python/samba/netcmd/ldapcmp.py |   41 +++--
 1 files changed, 29 insertions(+), 12 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/scripting/python/samba/netcmd/ldapcmp.py 
b/source4/scripting/python/samba/netcmd/ldapcmp.py
index 158c9bc..6d57a24 100644
--- a/source4/scripting/python/samba/netcmd/ldapcmp.py
+++ b/source4/scripting/python/samba/netcmd/ldapcmp.py
@@ -45,7 +45,8 @@ class LDAPBase(object):
 
 def __init__(self, host, creds, lp,
  two=False, quiet=False, descriptor=False, sort_aces=False, 
verbose=False,
- view=section, base=, scope=SUB):
+ view=section, base=, scope=SUB,
+ outf=sys.stdout, errf=sys.stderr):
 ldb_options = []
 samdb_url = host
 if not :// in host:
@@ -56,6 +57,8 @@ class LDAPBase(object):
 # use 'paged_search' module when connecting remotely
 if samdb_url.lower().startswith(ldap://;):
 ldb_options = [modules:paged_searches]
+self.outf = outf
+self.errf = errf
 self.ldb = Ldb(url=samdb_url,
credentials=creds,
lp=lp,
@@ -274,7 +277,9 @@ class LDAPBase(object):
 pass
 
 class Descriptor(object):
-def __init__(self, connection, dn):
+def __init__(self, connection, dn, outf=sys.stdout, errf=sys.stderr):
+self.outf = outf
+self.errf = errf
 self.con = connection
 self.dn = dn
 self.sddl = self.con.get_descriptor_sddl(self.dn)
@@ -414,7 +419,10 @@ class Descriptor(object):
 return (self_aces == [] and other_aces == [], res)
 
 class LDAPObject(object):
-def __init__(self, connection, dn, summary, filter_list):
+def __init__(self, connection, dn, summary, filter_list,
+ outf=sys.stdout, errf=sys.stderr):
+self.outf = outf
+self.errf = errf
 self.con = connection
 self.two_domains = self.con.two_domains
 self.quiet = self.con.quiet
@@ -535,8 +543,8 @@ class LDAPObject(object):
 return self.cmp_attrs(other)
 
 def cmp_desc(self, other):
-d1 = Descriptor(self.con, self.dn)
-d2 = Descriptor(other.con, other.dn)
+d1 = Descriptor(self.con, self.dn, outf=self.outf, errf=self.errf)
+d2 = Descriptor(other.con, other.dn, outf=self.outf, errf=self.errf)
 if self.con.view == section:
 res = d1.diff_2(d2)
 elif self.con.view == collision:
@@ -668,7 +676,10 @@ class LDAPObject(object):
 
 class LDAPBundel(object):
 
-def __init__(self, connection, context, dn_list=None, filter_list=None):
+def __init__(self, connection, context, dn_list=None, filter_list=None,
+ outf=sys.stdout, errf=sys.stderr):
+self.outf = outf
+self.errf = errf
 self.con = connection
 self.two_domains = self.con.two_domains
 self.quiet = self.con.quiet
@@ -759,7 +770,8 @@ class LDAPBundel(object):
 object1 = LDAPObject(connection=self.con,
  dn=self.dn_list[index],
  summary=self.summary,
- filter_list=self.filter_list)
+ filter_list=self.filter_list,
+ outf=self.outf, errf=self.errf)
 except LdbError, (enum, estr):
 if enum == ERR_NO_SUCH_OBJECT:
 self.log( \n!!! Object not found: %s % 
self.dn_list[index] )
@@ -769,7 +781,8 @@ class LDAPBundel(object):
 object2 = LDAPObject(connection=other.con,
 dn=other.dn_list[index],
 summary=other.summary,
-filter_list=self.filter_list)
+filter_list=self.filter_list,
+outf=self.outf, errf=self.errf)
 except LdbError, (enum, estr):
 if enum == ERR_NO_SUCH_OBJECT:
 self.log( \n!!! Object not found: %s % 
other.dn_list[index] )
@@ -943,12 +956,14 @@ class cmd_ldapcmp(Command):
 
 con1 = 

[SCM] Samba Shared Repository - branch master updated

2012-04-17 Thread Volker Lendecke
The branch, master has been updated
   via  8ed7ff4 s3: Add smbstatus -N to output the notify db
   via  ee4f2ab s3: Add notify-cleanup to smbcontrol
   via  843432d s3: New notify implementation
   via  ae691cd s3: Add two notify benchmark tests
   via  842b86c s3: Make torture_nprocs globally available
   via  0b501e8 s3: Make ctdbd_messaging_send_blob available in 
non-clustered mode
   via  a03a74c s3: Make messaging_ctdbd_connection available in 
non-clustered mode
   via  b23b357 s3: Implement tevent_barrier
   via  d705bae s3: Start a list of ctdb srvid assigments
   via  05ff425 s3: Introduce ctdb_messaging_send_blob
   via  74baae7 s3: Add msg_channel
   via  4171259 s3: Add messaging_tdb_event()
   via  48a485b s3: Add a second ctdb connect library
   via  94cf5cc s3: Add dbwrap_try_fetch_locked
   via  bd91785 s3: Add dbwrap_cache
   via  ba8f19c s3: Open up 3 levels of dbwrap_lock_order
   via  d2fe0bf s3: Increase debuglevel for unknown child msgs
   via  1e1b6f7 s3: Add infrastructure for background jobs
   via  a49ac23 s3: Return CTDB_PATH from lp_ctdbd_socket()
   via  6235b76 tdb-compat: Add tdb_chainlock_nonblock
  from  4460ba5 s4:ldapcmp.py: pass down outf and errf

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


- Log -
commit 8ed7ff483cc55091138f1e61cfc7573f2f8a0015
Author: Volker Lendecke v...@samba.org
Date:   Wed Apr 4 14:51:09 2012 +0200

s3: Add smbstatus -N to output the notify db

Autobuild-User: Volker Lendecke v...@samba.org
Autobuild-Date: Tue Apr 17 11:54:35 CEST 2012 on sn-devel-104

commit ee4f2abbda32c4712d0cbc0be171c31d1559a263
Author: Volker Lendecke v...@samba.org
Date:   Wed Apr 4 14:49:21 2012 +0200

s3: Add notify-cleanup to smbcontrol

This triggers a notify cleanup run which would normally only run 
periodically

commit 843432d56f9114a4d0d3021a772953dc5a1193dd
Author: Volker Lendecke v...@samba.org
Date:   Wed Apr 4 14:51:43 2012 +0200

s3: New notify implementation

From notify_internal.c:

/*
 * The notify database is split up into two databases: One
 * relatively static index db and the real notify db with the
 * volatile entries.
 */

This change is necessary to make notify scale better in a cluster

commit ae691cd9cc5f00a1d4465d233cdd9f5b580b2c39
Author: Volker Lendecke v...@samba.org
Date:   Wed Apr 4 14:35:12 2012 +0200

s3: Add two notify benchmark tests

commit 842b86c45ff656aab531530646a4e935e53166e4
Author: Volker Lendecke v...@samba.org
Date:   Wed Apr 4 14:29:33 2012 +0200

s3: Make torture_nprocs globally available

commit 0b501e823f07b14e4819b817f40cc30da09be1e1
Author: Volker Lendecke v...@samba.org
Date:   Wed Apr 4 11:56:06 2012 +0200

s3: Make ctdbd_messaging_send_blob available in non-clustered mode

This will avoid the need for some #ifdefs

commit a03a74c35388ed23681a2381252a85bef7cafbe7
Author: Volker Lendecke v...@samba.org
Date:   Wed Apr 4 11:27:08 2012 +0200

s3: Make messaging_ctdbd_connection available in non-clustered mode

This might make some #ifdef CLUSTER_SUPPORT unnecessary in the future

commit b23b35755750589b201a3f4e85521459f575945c
Author: Volker Lendecke v...@samba.org
Date:   Tue Apr 3 15:26:22 2012 +0200

s3: Implement tevent_barrier

This will help notify torture tests: A tevent barrier can be waited on with
tevent_barrier_wait_send/recv. The barrier is initialized with a number of
requests that it will accept waiting. When that number is reached, all those
requests will be released and their callback will be called. The barrier 
will
be free for re-use again.

commit d705bae65b70f6fcc711bdb72a1c2b55395f7d6c
Author: Volker Lendecke v...@samba.org
Date:   Fri Mar 30 11:37:15 2012 +0200

s3: Start a list of ctdb srvid assigments

commit 05ff425c1749452179d79b96721c8ac18d886fba
Author: Volker Lendecke v...@samba.org
Date:   Fri Mar 30 11:10:47 2012 +0200

s3: Introduce ctdb_messaging_send_blob

Send a raw blob without the messaging.idl wrap

commit 74baae782f09fd8f22af133b820680e37049f5b0
Author: Volker Lendecke v...@samba.org
Date:   Wed Feb 15 13:56:23 2012 +0100

s3: Add msg_channel

This is a tevent_based variant of messaging_register

commit 41712599e0f33096ccc81e7cd520e66dcf91a424
Author: Volker Lendecke v...@samba.org
Date:   Wed Feb 15 13:53:07 2012 +0100

s3: Add messaging_tdb_event()

This is a void* that represents a signal handler attached to some
custom tevent_context. This is necessary to make the tdb based
messaging infrastructure trigger its business when we are sitting in
tevent_loop_once for an event context that is not the main one in the
messaging context.

commit 48a485b6396ba020df1c47cbecd6c9fe442ac8a5
Author: Volker 

autobuild: intermittent test failure detected

2012-04-17 Thread autobuild
The autobuild test system has detected an intermittent failing test in 
the current master tree.

The autobuild log of the failure is available here:

   http://git.samba.org/autobuild.flakey/2012-04-17-1228/flakey.log

The samba3 build logs are available here:

   http://git.samba.org/autobuild.flakey/2012-04-17-1228/samba3.stderr
   http://git.samba.org/autobuild.flakey/2012-04-17-1228/samba3.stdout

The source4 build logs are available here:

   http://git.samba.org/autobuild.flakey/2012-04-17-1228/samba4.stderr
   http://git.samba.org/autobuild.flakey/2012-04-17-1228/samba4.stdout
  
The top commit at the time of the failure was:

commit 8ed7ff483cc55091138f1e61cfc7573f2f8a0015
Author: Volker Lendecke v...@samba.org
Date:   Wed Apr 4 14:51:09 2012 +0200

s3: Add smbstatus -N to output the notify db

Autobuild-User: Volker Lendecke v...@samba.org
Autobuild-Date: Tue Apr 17 11:54:35 CEST 2012 on sn-devel-104


[SCM] Samba Shared Repository - branch master updated

2012-04-17 Thread Michael Adam
The branch, master has been updated
   via  9fe3544 tsocket: Fix a couple of typos and spellings in 
tsocket_guide.txt
  from  8ed7ff4 s3: Add smbstatus -N to output the notify db

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


- Log -
commit 9fe3544565ae94516983d9123eec1a777cf8f8c2
Author: Michael Adam ob...@samba.org
Date:   Tue Apr 17 12:56:49 2012 +0200

tsocket: Fix a couple of typos and spellings in tsocket_guide.txt

Autobuild-User: Michael Adam ob...@samba.org
Autobuild-Date: Tue Apr 17 14:41:53 CEST 2012 on sn-devel-104

---

Summary of changes:
 lib/tsocket/tsocket_guide.txt |   53 +
 1 files changed, 27 insertions(+), 26 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/tsocket/tsocket_guide.txt b/lib/tsocket/tsocket_guide.txt
index f937385..45e20b5 100644
--- a/lib/tsocket/tsocket_guide.txt
+++ b/lib/tsocket/tsocket_guide.txt
@@ -2,15 +2,15 @@
 Basic design of the tsocket abstraction
 ===
 
-The tsocket abstraction is splitted into two
+The tsocket abstraction is split into two
 different kinds of communitation interfaces.
 
-There's the tstream_context interface with abstracts
+There is the tstream_context interface which abstracts
 the communication through a bidirectional
 byte stream between two endpoints.
 
-And there's the tdgram_context interface
-with abstracts datagram based communication between any
+And there is the tdgram_context interface
+which abstracts datagram based communication between any
 number of endpoints.
 
 Both interfaces share the tsocket_address abstraction
@@ -27,9 +27,9 @@ A tsocket_address represents a generic socket endpoint.
 It behaves like an abstract class, therefore it has no direct constructor.
 Constructors are described in later sections of this document.
 
-A function get the string representation of an endpoint for debugging is
+A function to get the string representation of an endpoint for debugging is
 available but callers SHOULD NOT try to parse this string. To get more
-details callers should use getter methods of the specific tsocket_address
+details, callers should use getter methods of the specific tsocket_address
 implemention.
 
   char *tsocket_address_string(const struct tsocket_address *addr,
@@ -78,7 +78,7 @@ at a time otherwise the caller will get '*perrno = EBUSY'.
 
 The tdgram_sendto_send() method can be called to send a
 datagram (specified by a buf/len) to a destination endpoint
-(specified by dst). It's not allowed for len to be 0.
+(specified by dst). It is not allowed for len to be 0.
 It returns a 'tevent_req' handle, where the caller can register a
 callback with tevent_req_set_callback(). The callback is triggered
 when the specific implementation (thinks it)
@@ -105,7 +105,7 @@ at a time otherwise the caller will get '*perrno = EBUSY'.
 The tdgram_disconnect_send() method should be used to normally
 shutdown/close the abstracted socket.
 
-The caller should make sure there're no outstanding tdgram_recvfrom_send()
+The caller should make sure there are no outstanding tdgram_recvfrom_send()
 and tdgram_sendto_send() calls otherwise the caller will get '*perrno = EBUSY'.
 
 Note: you can always use talloc_free(tdgram) to cleanup the resources
@@ -136,7 +136,7 @@ The tstream_readv_send() method can be called to read a
 specific amount of bytes from the stream into the buffers
 of the given iovec vector. The caller has to preallocate the buffers
 in the iovec vector. The caller might need to use
-tstream_pending_bytes() if the protocol doesn't have a fixed pdu header
+tstream_pending_bytes() if the protocol does not have a fixed pdu header
 containing the pdu size. tstream_readv_send() returns a 'tevent_req' handle,
 where the caller can register a callback with tevent_req_set_callback().
 The callback is triggered when all iovec buffers are completely
@@ -145,7 +145,8 @@ filled with bytes from the socket or an error occurs.
 The callback is then supposed to get the result by calling
 tstream_readv_recv() on the 'tevent_req'. It returns -1
 and sets '*perrno' to the actual 'errno' on failure.
-Otherwise it returns the length of the datagram (0 is never returned!).
+Otherwise it returns the total number of bytes received
+(0 is never returned!).
 
 The caller can only have one outstanding tstream_readv_send()
 at a time otherwise the caller will get *perrno = EBUSY.
@@ -170,7 +171,7 @@ has delivered the all buffers to the wire.
 The callback is then supposed to get the result by calling
 tstream_writev_recv() on the 'tevent_req'. It returns -1
 and sets '*perrno' to the actual 'errno' on failure.
-Otherwise it returns the total amount of bytes sent.
+Otherwise it returns the total amount of bytes sent
 (0 is never returned!).
 
 The caller can only have one outstanding 

[SCM] Samba Shared Repository - branch master updated

2012-04-17 Thread Stefan Metzmacher
The branch, master has been updated
   via  1334ed7 s3:libsmb/cliconnect: make use of ntlmssp_is_anonymous()
   via  3207c7f s3:libsmb/ntlmssp: improve anonymous logins
   via  941a6a7 s3:libsmb/ntlmssp: add ntlmssp_is_anonymous()
   via  cb3cde9 s3:libsmb/ntlmssp: remove some indentation in 
ntlmssp_set_password()
   via  5f0f5b3 Revert s3:libsmb/ntlmssp: an empty string should mean no 
password
  from  9fe3544 tsocket: Fix a couple of typos and spellings in 
tsocket_guide.txt

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


- Log -
commit 1334ed723edc5d746f355a836b3bc52ba85cda4b
Author: Stefan Metzmacher me...@samba.org
Date:   Tue Apr 17 13:49:28 2012 +0200

s3:libsmb/cliconnect: make use of ntlmssp_is_anonymous()

metze

Autobuild-User: Stefan Metzmacher me...@samba.org
Autobuild-Date: Tue Apr 17 16:16:51 CEST 2012 on sn-devel-104

commit 3207c7f9655c236278d96a0837354d1e58993974
Author: Stefan Metzmacher me...@samba.org
Date:   Tue Apr 17 13:36:42 2012 +0200

s3:libsmb/ntlmssp: improve anonymous logins

smbtorture3 (and maybe others) use fstrings for 'user' and 'password',
so we need to check for empty strings.

metze

commit 941a6a78519bd24064ee1919662529bfdd87d78d
Author: Stefan Metzmacher me...@samba.org
Date:   Tue Apr 17 13:34:27 2012 +0200

s3:libsmb/ntlmssp: add ntlmssp_is_anonymous()

metze

commit cb3cde951859852daf830efdeaf8392cf7c89300
Author: Stefan Metzmacher me...@samba.org
Date:   Tue Apr 17 08:46:51 2012 +0200

s3:libsmb/ntlmssp: remove some indentation in ntlmssp_set_password()

metze

commit 5f0f5b361531926bc394a4e468392ee617dbbc1f
Author: Stefan Metzmacher me...@samba.org
Date:   Tue Apr 17 08:38:10 2012 +0200

Revert s3:libsmb/ntlmssp: an empty string should mean no password

This reverts commit 92483eee254ef6844fe88abe1e64f67033a1ea2d.

---

Summary of changes:
 source3/include/proto.h |1 +
 source3/libsmb/cliconnect.c |2 +-
 source3/libsmb/ntlmssp.c|   58 ---
 3 files changed, 40 insertions(+), 21 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/include/proto.h b/source3/include/proto.h
index 035d87e..14fe730 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -998,6 +998,7 @@ void ntlmssp_want_feature_list(struct ntlmssp_state 
*ntlmssp_state, char *featur
 void ntlmssp_want_feature(struct ntlmssp_state *ntlmssp_state, uint32_t 
feature);
 NTSTATUS ntlmssp_update(struct ntlmssp_state *ntlmssp_state,
const DATA_BLOB in, DATA_BLOB *out) ;
+bool ntlmssp_is_anonymous(struct ntlmssp_state *ntlmssp_state);
 NTSTATUS ntlmssp_server_start(TALLOC_CTX *mem_ctx,
  bool is_standalone,
  const char *netbios_name,
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 6e057a5..b9634eb 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1711,7 +1711,7 @@ static void cli_session_setup_ntlmssp_done(struct 
tevent_req *subreq)
if (cli_state_protocol(state-cli) = PROTOCOL_SMB2_02) {
struct smbXcli_session *session = 
state-cli-smb2.session;
 
-   if (state-ntlmssp_state-nt_hash == NULL) {
+   if (ntlmssp_is_anonymous(state-ntlmssp_state)) {
/*
 * Windows server does not set the
 * SMB2_SESSION_FLAG_IS_GUEST nor
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index 72466fe..66e7102 100644
--- a/source3/libsmb/ntlmssp.c
+++ b/source3/libsmb/ntlmssp.c
@@ -76,31 +76,33 @@ NTSTATUS ntlmssp_set_username(struct ntlmssp_state 
*ntlmssp_state, const char *u
  */
 NTSTATUS ntlmssp_set_password(struct ntlmssp_state *ntlmssp_state, const char 
*password)
 {
+   uint8_t lm_hash[16];
+   uint8_t nt_hash[16];
+
TALLOC_FREE(ntlmssp_state-lm_hash);
TALLOC_FREE(ntlmssp_state-nt_hash);
-   if (!password || strlen(password) == 0) {
-   return NT_STATUS_OK;
-   } else {
-   uint8_t lm_hash[16];
-   uint8_t nt_hash[16];
-
-   if (E_deshash(password, lm_hash)) {
-   ntlmssp_state-lm_hash = (uint8_t *)
-   talloc_memdup(ntlmssp_state, lm_hash, 16);
-   if (!ntlmssp_state-lm_hash) {
-   return NT_STATUS_NO_MEMORY;
-   }
-   }
 
-   E_md4hash(password, nt_hash);
+   if (password == NULL) {
+   return NT_STATUS_OK;
+   }
 
-   ntlmssp_state-nt_hash = (uint8_t *)
-   talloc_memdup(ntlmssp_state, 

[SCM] Samba Shared Repository - branch master updated

2012-04-17 Thread Andreas Schneider
The branch, master has been updated
   via  0a4ab49 waf: Use Logs.info() instead of print.
   via  2c49782 waf: Add possibility to build with system libwbclient.
   via  e3ffb31 s3-waf: Add possibility to build with system libsmbclient.
   via  c09c288 s3-waf: Fix client/smbclient dependencies.
  from  1334ed7 s3:libsmb/cliconnect: make use of ntlmssp_is_anonymous()

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


- Log -
commit 0a4ab49c3e3f6b121a5b8b9ae85976c3077cd361
Author: Andreas Schneider a...@samba.org
Date:   Tue Apr 17 14:11:45 2012 +0200

waf: Use Logs.info() instead of print.

Autobuild-User: Andreas Schneider a...@cryptomilk.org
Autobuild-Date: Tue Apr 17 17:48:23 CEST 2012 on sn-devel-104

commit 2c49782dc1069eebc9f5a5cd2a055b5912665595
Author: Andreas Schneider a...@samba.org
Date:   Tue Apr 17 12:34:48 2012 +0200

waf: Add possibility to build with system libwbclient.

commit e3ffb31554927a24df35576bd753ee4eb2dc2a3c
Author: Andreas Schneider a...@samba.org
Date:   Mon Apr 16 17:05:35 2012 +0200

s3-waf: Add possibility to build with system libsmbclient.

commit c09c288f7c239ec0d73091061d417e1562825c64
Author: Andreas Schneider a...@samba.org
Date:   Mon Apr 16 17:07:05 2012 +0200

s3-waf: Fix client/smbclient dependencies.

---

Summary of changes:
 nsswitch/libwbclient/wscript   |   28 
 nsswitch/libwbclient/wscript_build |9 --
 source3/libsmb/wscript |   40 +
 source3/wscript_build  |   49 ++--
 wscript|2 +
 wscript_build_embedded_heimdal |4 ++-
 wscript_build_system_heimdal   |4 ++-
 wscript_build_system_mitkrb5   |4 ++-
 8 files changed, 87 insertions(+), 53 deletions(-)
 create mode 100644 nsswitch/libwbclient/wscript
 delete mode 100644 nsswitch/libwbclient/wscript_build
 create mode 100644 source3/libsmb/wscript


Changeset truncated at 500 lines:

diff --git a/nsswitch/libwbclient/wscript b/nsswitch/libwbclient/wscript
new file mode 100644
index 000..8390af1
--- /dev/null
+++ b/nsswitch/libwbclient/wscript
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+
+import Options, Logs
+
+def configure(conf):
+if conf.CHECK_BUNDLED_SYSTEM_PKG('wbclient', minversion='0'):
+conf.define('USING_SYSTEM_LIBWBCLIENT', 1)
+
+def build(bld):
+if bld.CONFIG_SET('USING_SYSTEM_LIBWBCLIENT'):
+Logs.info(\tSelected system libwbclient build)
+return
+
+Logs.info(\tSelected embedded libwbclient build)
+
+bld.SAMBA_LIBRARY('wbclient',
+  source='''
+ wbc_guid.c
+ wbc_idmap.c
+ wbclient.c
+ wbc_pam.c
+ wbc_pwd.c
+ wbc_sid.c
+ wbc_util.c''',
+  deps='winbind-client',
+  pc_files='wbclient.pc',
+  public_headers='wbclient.h',
+  vnum='0')
diff --git a/nsswitch/libwbclient/wscript_build 
b/nsswitch/libwbclient/wscript_build
deleted file mode 100644
index 2b7fc08..000
--- a/nsswitch/libwbclient/wscript_build
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env python
-
-bld.SAMBA_LIBRARY('wbclient',
-   source='wbc_guid.c wbc_idmap.c wbclient.c wbc_pam.c wbc_pwd.c wbc_sid.c 
wbc_util.c',
-   deps='winbind-client',
-   pc_files='wbclient.pc',
-   public_headers='wbclient.h',
-   vnum='0'
-   )
diff --git a/source3/libsmb/wscript b/source3/libsmb/wscript
new file mode 100644
index 000..6260945
--- /dev/null
+++ b/source3/libsmb/wscript
@@ -0,0 +1,40 @@
+#!/usr/bin/env python
+
+import Options, Logs
+
+def configure(conf):
+if conf.CHECK_BUNDLED_SYSTEM_PKG('smbclient', minversion='0'):
+conf.define('USING_SYSTEM_LIBSMBCLIENT', 1)
+
+def build(bld):
+if bld.CONFIG_SET('USING_SYSTEM_LIBSMBCLIENT'):
+Logs.info(\tSelected system libsmbclient build)
+return
+
+Logs.info(\tSelected embedded libsmbclient build)
+bld.SAMBA3_LIBRARY('smbclient',
+   source='''
+  libsmb_cache.c
+  libsmb_compat.c
+  libsmb_context.c
+  libsmb_dir.c
+  libsmb_file.c
+  libsmb_misc.c
+  libsmb_path.c
+  libsmb_printjob.c
+  libsmb_server.c
+  libsmb_stat.c
+  libsmb_xattr.c
+  libsmb_setget.c''',
+   public_deps='''
+ 

autobuild: intermittent test failure detected

2012-04-17 Thread autobuild
The autobuild test system has detected an intermittent failing test in 
the current master tree.

The autobuild log of the failure is available here:

   http://git.samba.org/autobuild.flakey/2012-04-17-1827/flakey.log

The samba3 build logs are available here:

   http://git.samba.org/autobuild.flakey/2012-04-17-1827/samba3.stderr
   http://git.samba.org/autobuild.flakey/2012-04-17-1827/samba3.stdout

The source4 build logs are available here:

   http://git.samba.org/autobuild.flakey/2012-04-17-1827/samba4.stderr
   http://git.samba.org/autobuild.flakey/2012-04-17-1827/samba4.stdout
  
The top commit at the time of the failure was:

commit 0a4ab49c3e3f6b121a5b8b9ae85976c3077cd361
Author: Andreas Schneider a...@samba.org
Date:   Tue Apr 17 14:11:45 2012 +0200

waf: Use Logs.info() instead of print.

Autobuild-User: Andreas Schneider a...@cryptomilk.org
Autobuild-Date: Tue Apr 17 17:48:23 CEST 2012 on sn-devel-104


[SCM] Samba Shared Repository - branch master updated

2012-04-17 Thread Simo Sorce
The branch, master has been updated
   via  e49efe9 Fix typo
  from  0a4ab49 waf: Use Logs.info() instead of print.

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


- Log -
commit e49efe9e7e8ebd62fa79e35a1e2fff489c3bcc96
Author: Simo Sorce i...@samba.org
Date:   Fri Apr 6 15:22:06 2012 -0400

Fix typo

Autobuild-User: Simo Sorce i...@samba.org
Autobuild-Date: Tue Apr 17 22:22:26 CEST 2012 on sn-devel-104

---

Summary of changes:
 buildtools/wafsamba/samba_deps.py |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildtools/wafsamba/samba_deps.py 
b/buildtools/wafsamba/samba_deps.py
index ed2169b..51b7da9 100644
--- a/buildtools/wafsamba/samba_deps.py
+++ b/buildtools/wafsamba/samba_deps.py
@@ -298,7 +298,7 @@ def check_duplicate_sources(bld, tgt_list):
 return ret
 
 
-def check_orpaned_targets(bld, tgt_list):
+def check_orphaned_targets(bld, tgt_list):
 '''check if any build targets are orphaned'''
 
 target_dict = LOCAL_CACHE(bld, 'TARGET_TYPE')
@@ -1145,7 +1145,7 @@ def check_project_rules(bld):
 
 debug('deps: project rules stage1 completed')
 
-#check_orpaned_targets(bld, tgt_list)
+#check_orphaned_targets(bld, tgt_list)
 
 if not check_duplicate_sources(bld, tgt_list):
 Logs.error(Duplicate sources present - aborting)


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2012-04-17 Thread Michael Adam
The branch, master has been updated
   via  9e9887d s4:samdb:rootdse: implement the schemaUpgradeInProgress 
operation in ldap modify
   via  c5934d9 s4-schema: set subClassOf by default to top if not specified
   via  9887d39 s4-schema: remove unused variable
   via  e3fa5d7 s4-schema: Generate some schema related attribute as MS AD 
is doing if they are not present in ldb requests
   via  167c6eb s4-schema: rename dsdb_attribute_from_ldb to 
dsdb_set_attribute_from_ldb  and dsdb_class_from_ldb to dsdb_set_class_from_ldb
   via  6ccaf27 s4: use enums instead of strings it's cheaper
  from  e49efe9 Fix typo

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


- Log -
commit 9e9887d3232b335b5494f2d536a1fa8a625de86c
Author: Michael Adam ob...@samba.org
Date:   Fri Apr 6 02:20:37 2012 +0200

s4:samdb:rootdse: implement the schemaUpgradeInProgress operation in ldap 
modify

This is preliminary in that it is implemented as a no-op for a start
just to be able to successfully answer the request, which seems to be
sufficient in order to e.g. survive the exchange schema extensions.

Signed-off-by: Matthieu Patou m...@matws.net

Autobuild-User: Michael Adam ob...@samba.org
Autobuild-Date: Wed Apr 18 02:48:28 CEST 2012 on sn-devel-104

commit c5934d9a1cbf0ff8c2e4740f4cd2546e6e89731c
Author: Matthieu Patou m...@matws.net
Date:   Mon Apr 16 23:24:10 2012 -0700

s4-schema: set subClassOf by default to top if not specified

Signed-off-by: Michael Adam ob...@samba.org

commit 9887d390b17e60c8ac4d267b47a998a27522f6dd
Author: Matthieu Patou m...@matws.net
Date:   Mon Apr 16 15:34:24 2012 -0700

s4-schema: remove unused variable

commit e3fa5d7d2ad8b7c6248a8df4a0841bf974a6b5a1
Author: Matthieu Patou m...@matws.net
Date:   Mon Apr 16 15:22:24 2012 -0700

s4-schema: Generate some schema related attribute as MS AD is doing if they 
are not present in ldb requests

commit 167c6eb61ee6211a63ffd98f9b86fa300472ea96
Author: Matthieu Patou m...@matws.net
Date:   Sun Apr 15 14:50:20 2012 -0700

s4-schema: rename dsdb_attribute_from_ldb to dsdb_set_attribute_from_ldb  
and dsdb_class_from_ldb to dsdb_set_class_from_ldb

commit 6ccaf279da949e945a09e90d3be8ec5b74128369
Author: Matthieu Patou m...@matws.net
Date:   Sun Apr 15 12:37:00 2012 -0700

s4: use enums instead of strings it's cheaper

---

Summary of changes:
 source4/dsdb/samdb/ldb_modules/rootdse.c |   33 
 source4/dsdb/samdb/ldb_modules/samldb.c  |  103 ++
 source4/dsdb/samdb/ldb_modules/schema_load.c |4 -
 source4/dsdb/samdb/samdb.h   |2 +
 source4/dsdb/schema/schema_init.c|   35 +++--
 source4/dsdb/schema/schema_set.c |4 +-
 source4/dsdb/schema/tests/schema_syntax.c|4 +-
 source4/libcli/ldap/ldap_controls.c  |1 +
 source4/setup/schema_samba4.ldif |1 +
 source4/torture/ldap/schema.c|4 +-
 10 files changed, 160 insertions(+), 31 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c 
b/source4/dsdb/samdb/ldb_modules/rootdse.c
index 46dbb75..f7c9896 100644
--- a/source4/dsdb/samdb/ldb_modules/rootdse.c
+++ b/source4/dsdb/samdb/ldb_modules/rootdse.c
@@ -1209,6 +1209,36 @@ static int rootdse_schemaupdatenow(struct ldb_module 
*module, struct ldb_request
return ldb_module_done(req, NULL, NULL, ret);
 }
 
+static int rootdse_schemaupgradeinprogress(struct ldb_module *module, struct 
ldb_request *req)
+{
+   struct ldb_context *ldb = ldb_module_get_ctx(module);
+   struct ldb_result *ext_res;
+   int ret = LDB_SUCCESS;
+   struct ldb_dn *schema_dn;
+
+   schema_dn = ldb_get_schema_basedn(ldb);
+   if (!schema_dn) {
+   ldb_reset_err_string(ldb);
+   ldb_debug(ldb, LDB_DEBUG_WARNING,
+ rootdse_modify: no schema dn present: (skip 
ldb_extended call)\n);
+   return ldb_next_request(module, req);
+   }
+
+   /* FIXME we have to do something in order to relax constraints for DRS
+* setting schemaUpgradeInProgress cause the fschemaUpgradeInProgress
+* in all LDAP connection (2K3/2K3R2) or in the current connection (2K8 
and +)
+* to be set to true.
+*/
+
+   /* from 5.113 LDAPConnections in DRSR.pdf
+* fschemaUpgradeInProgress: A Boolean that specifies certain constraint
+* validations are skipped when adding, updating, or removing directory
+* objects on the opened connection. The skipped constraint validations
+* are documented in the applicable constraint sections in [MS-ADTS].
+*/
+   return ldb_module_done(req, NULL, NULL, ret);
+}
+
 static int rootdse_add(struct ldb_module 

[SCM] Samba Shared Repository - branch master updated

2012-04-17 Thread Andrew Bartlett
The branch, master has been updated
   via  538893d s3fs: Use xattr_tdb format for xattr storage
   via  628a241 s4-python: Add python wrapper for xattr_tdb format xattr 
storage
   via  44b6bf9 s3-xattr_tdb: Use talloc_stackframe() more to allow calling 
from common code
   via  492942a s3-xattr_tdb: Be nice to xattr_tdb_getxattr callers, return 
the full blob
   via  351c78f s3-xattr_tdb: make xattr_tdb a private library, for use 
outside vfs_xattr_tdb
   via  ce96768 s3-lib: Add file_id_string()
   via  ea5a9b2 s3-build: move file_id.c into samba3-util and create a 
private header
   via  19fb796 dbwrap: Add dbwrap_tdb to private dbwrap library
   via  ee695de s3-build: Add missing samba3-util dep to tdb-wrap3
   via  cc86f8e lib/util: Move map_nt_error_from_tdb to the top level
   via  338e5a1 s3-dbwrap: push lp_ctx up another layer in the stack
   via  235016b s3-dbwrap: Add talloc_stackframe() calls
   via  99caee5 build: Remove more of the s3 special cases in waf: only 
pidfile.c needs -DCONFIGFILE
  from  9e9887d s4:samdb:rootdse: implement the schemaUpgradeInProgress 
operation in ldap modify

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


- Log -
commit 538893d183e967448df5aeb41b99a8af5116c5b7
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Apr 16 19:01:15 2012 +1000

s3fs: Use xattr_tdb format for xattr storage

Autobuild-User: Andrew Bartlett abart...@samba.org
Autobuild-Date: Wed Apr 18 05:39:01 CEST 2012 on sn-devel-104

commit 628a24172f3bb759324582c439ba9d081aa4d392
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Apr 16 18:59:34 2012 +1000

s4-python: Add python wrapper for xattr_tdb format xattr storage

This uses the format used by the vfs_xattr_tdb module.  The s4
posix:eadb format is kept, just in a new file and module.

Andrew Bartlett

commit 44b6bf9130ec5207da148af0f56a660ce9e08c32
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Apr 16 22:18:14 2012 +1000

s3-xattr_tdb: Use talloc_stackframe() more to allow calling from common code

commit 492942a66ad89172135512cd433b50c13726f777
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Apr 16 17:14:06 2012 +1000

s3-xattr_tdb: Be nice to xattr_tdb_getxattr callers, return the full blob

In this case, the blob is already in memory, so it is easier to return the 
full
blob to the caller, and let the caller decide if some interface restriction
stops the full blob from being passed all the way up the stack.

This allows us to quickly write a python wrapper for this xattr storage
mechanism.

Andrew Bartlett

commit 351c78fc670d5e26ebc2deea7ef930a94b116697
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Apr 16 15:49:13 2012 +1000

s3-xattr_tdb: make xattr_tdb a private library, for use outside 
vfs_xattr_tdb

commit ce9676839b50ad34cead8f7f02488272a2bb3c85
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Apr 16 15:36:15 2012 +1000

s3-lib: Add file_id_string()

commit ea5a9b21fb384524c8370c6d7a712b35e170fd06
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Apr 16 15:34:40 2012 +1000

s3-build: move file_id.c into samba3-util and create a private header

commit 19fb796960da0e6101a520036a2e610baa4515fd
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Apr 16 14:21:33 2012 +1000

dbwrap: Add dbwrap_tdb to private dbwrap library

Andrew Bartlett

commit ee695de1b4f47f1c2fddc35f713a21a0413f1fdf
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Apr 16 14:20:46 2012 +1000

s3-build: Add missing samba3-util dep to tdb-wrap3

commit cc86f8e9858ed49074e0d159bdcfb14d18859562
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Apr 16 14:18:49 2012 +1000

lib/util: Move map_nt_error_from_tdb to the top level

This will help with making dbwrap available as a top level library.

Andrew Bartlett

commit 338e5a1d35574dbd96bbbcf2a74fe33adc95cb8c
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Apr 16 13:37:39 2012 +1000

s3-dbwrap: push lp_ctx up another layer in the stack

This will allow db_open_tdb() to be called from common code, which may
already have a loadparm context loaded.

It also slowly moves the lp_ctx up the stack, as required to remove
the library loop between smbconf and the registry.

Andrew Bartlett

commit 235016bcf9c332f88d3aae68d0726d8bb2a64246
Author: Andrew Bartlett abart...@samba.org
Date:   Mon Apr 16 13:36:01 2012 +1000

s3-dbwrap: Add talloc_stackframe() calls

This is in preperation for calling dbwrap from common code, where we may not
have a stackframe set up.

Andrew Bartlett

commit 99caee5eef6e054ad6c94a00e3de869f764954f7
Author: Andrew Bartlett abart...@samba.org
Date:   Tue Apr 17 11:25:40 2012 +1000

build: Remove more of the s3 special cases 

[SCM] Samba Shared Repository - branch master updated

2012-04-17 Thread Jeremy Allison
The branch, master has been updated
   via  010f2b8 Add docs for aio_linux vfs module.
  from  538893d s3fs: Use xattr_tdb format for xattr storage

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


- Log -
commit 010f2b89e20e13f4687700fd731fedfafb7c62eb
Author: Jeremy Allison j...@samba.org
Date:   Tue Apr 17 20:20:28 2012 -0700

Add docs for aio_linux vfs module.

Autobuild-User: Jeremy Allison j...@samba.org
Autobuild-Date: Wed Apr 18 07:20:19 CEST 2012 on sn-devel-104

---

Summary of changes:
 .../{vfs_aio_pthread.8.xml = vfs_aio_linux.8.xml} |   41 +---
 1 files changed, 18 insertions(+), 23 deletions(-)
 copy docs-xml/manpages-3/{vfs_aio_pthread.8.xml = vfs_aio_linux.8.xml} (66%)


Changeset truncated at 500 lines:

diff --git a/docs-xml/manpages-3/vfs_aio_pthread.8.xml 
b/docs-xml/manpages-3/vfs_aio_linux.8.xml
similarity index 66%
copy from docs-xml/manpages-3/vfs_aio_pthread.8.xml
copy to docs-xml/manpages-3/vfs_aio_linux.8.xml
index 3e41ee9..dac94a5 100644
--- a/docs-xml/manpages-3/vfs_aio_pthread.8.xml
+++ b/docs-xml/manpages-3/vfs_aio_linux.8.xml
@@ -1,9 +1,9 @@
 ?xml version=1.0 encoding=iso-8859-1?
 !DOCTYPE refentry PUBLIC -//Samba-Team//DTD DocBook V4.2-Based Variant 
V1.0//EN http://www.samba.org/samba/DTD/samba-doc;
-refentry id=vfs_aio_pthread.8
+refentry id=vfs_aio_linux.8
 
 refmeta
-   refentrytitlevfs_aio_pthread/refentrytitle
+   refentrytitlevfs_aio_linux/refentrytitle
manvolnum8/manvolnum
refmiscinfo class=sourceSamba/refmiscinfo
refmiscinfo class=manualSystem Administration tools/refmiscinfo
@@ -12,13 +12,13 @@
 
 
 refnamediv
-   refnamevfs_aio_pthread/refname
-   refpurposeimplement async I/O in Samba vfs using a pthread 
pool/refpurpose
+   refnamevfs_aio_linux/refname
+   refpurposeimplement async I/O in Samba vfs using Linux kernel aio 
calls/refpurpose
 /refnamediv
 
 refsynopsisdiv
cmdsynopsis
-   commandvfs objects = aio_pthread/command
+   commandvfs objects = aio_linux/command
/cmdsynopsis
 /refsynopsisdiv
 
@@ -29,8 +29,8 @@
citerefentryrefentrytitlesamba/refentrytitle
manvolnum7/manvolnum/citerefentry suite./para
 
-   paraThe commandaio_pthread/command VFS module enables asynchronous
-   I/O for Samba on platforms which have the pthreads API available,
+   paraThe commandaio_linux/command VFS module enables asynchronous
+   I/O for Samba on Linux kernels that have the kernel AIO calls available
without using the Posix AIO interface. Posix AIO can suffer from severe
limitations.  For example, on some Linux versions the
real-time signals that it uses are broken under heavy load.
@@ -41,17 +41,12 @@
descriptor which essentially makes Posix AIO useless on systems
using the glibc implementation./para
 
-   paraTo work around all these limitations, the aio_pthread module
-   was written. It uses a pthread pool instead of the
+   paraTo work around all these limitations, the aio_linux module
+   was written. It uses the Linux kernel AIO interface instead of the
internal Posix AIO interface to allow read and write calls
-   to be process asynchronously. A pthread pool is created
-   which expands dynamically by creating new threads as work is
-   given to it to a maximum of 100 threads per smbd process.
-   To change this limit see the aio num threads parameter
-   below. New threads are not created if idle threads are
-   available when a new read or write request is received,
-   the new work is given to an existing idle thread. Threads
-   terminate themselves if idle for one second.
+   to be processed asynchronously. A queue size of 128 events
+   is used by default. To change this limit set the aio num events
+   parameter below.
/para
 
para
@@ -78,7 +73,7 @@
smbconfoption name=path/data/ice/smbconfoption
smbconfoption name=aio read size1024/smbconfoption
smbconfoption name=aio write size1024/smbconfoption
-   smbconfoption name=vfs objectsaio_pthread/smbconfoption
+   smbconfoption name=vfs objectsaio_linux/smbconfoption
 /programlisting
 
 /refsect1
@@ -89,12 +84,12 @@
variablelist
 
varlistentry
-   termaio_pthread:aio num threads = INTEGER/term
+   termaio_linux:aio num events = INTEGER/term
listitem
-   paraLimit the maximum number of threads per smbd that
-   will be created in the thread pool to service IO requests.
+   paraSet the maximum size of the event queue
+   that is used to limit outstanding IO requests.
/para
-   paraBy default this is set to 100./para
+