[Samba] Windows 8 Release Preview as domain member

2012-06-01 Thread Roland Schwingel
Hi...

Today I also downloaded windows 8 RP and installed it in my network. I am 
running a samba 3.6.3 PDC. Previously I was already running a windows 8 
Consumer Preview machine with no problems in the domain (after applying 
the usual windows 7 registry patch).

I did the same (apply the registry patch) for the windows 8 release 
preview. I joined the domain without problem. But after a reboot I cannot 
logon to my domain account.
In the eventviewer I can find a message from Netlogon about a missing RPC 
server and that it cannot create a secure session with the domain 
controller. (translated from german).

In the samba log I can find this:

rpc_server/netlogon/srv_netlogon_nt.c:976(_netr_ServerAuthenticate3)
_netr_ServerAuthenticate3: netlogon_creds_server_check failed. Rejecting 
auth request from client WIN8 machine account WIN8$

I heared that there had been some smb changes in the windows 8 RP 
(smb3.0). 

Any ideas?

Thanks,

Roland

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


[Samba] Bad configuration file

2012-06-01 Thread Cédric Carlen
Hello everyone,

I'm writing you a topic because i have a problem with smaba and LDAP.

This is my problem, when I type in the shell slapcat, i've got this message
:

str2entry: invalid value for attributeType objectClass #1 (syntax
1.3.6.1.4.1.1466.115.121.1.38)
slapcat: bad configuration file!

There is my slapd.conf :

include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/samba.schema
include /etc/ldap/schema/ppolicy.schema

modulepath  /usr/lib/ldap
moduleload  back_bdbn
moduleload  ppolicy.la
moduleload  smbk5pwd.la

overlay smbk5pwd
smbk5pwd-enable samba

overlay ppolicy
ppolicy_default ou=default,ou=policies,dc=my,dc=test
ppolicy_use_lockout
ppolicy_hash_cleartext

Please help :(

Flake

-- 
Cédric CARLEN
Élève-ingénieur à TELECOM Lille 1
Promotion FI15
☎ 06.59.42.81.55
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] 3.6.5 and not_defined_in_RFC4178@please_ignore error

2012-06-01 Thread alex . ranskis
Selon Jim McDonough j...@samba.org:

 On Mon, May 21, 2012 at 12:17 PM,  alex.rans...@free.fr wrote:
  We're having trouble joining an AD domain with 3.6.5
 
  This message when running net join looks fishy :
  got principal=not_defined_in_RFC4178@please_ignore
 I'm sure it looks fishy, but it's not.  This is normal for newer
 versions of windows (windows is sending it back).

 
  OS : Solaris 10 x64
  Kerberos : MIT krb5 1.10.1
  DC servers are running Windows 2008
 
  The error message is :
  ./net join -U aranskis
  Enter aranskis's password:
  Failed to join domain: failed to lookup DC info for domain 'CORP.NET'
  over rpc: Logon failure
  ADS join did not work, falling back to RPC...
  Unable to find a suitable server for domain CORP
  Unable to find a suitable server for domain CORP
 
  with -d9, here's the hopefully relevant output :
 
  ads_dns_lookup_srv: 18 records returned in the answer section.
  namecache_store: storing 18 addresses for CORP.NET#1c: 10.219.244.253,
 [List of
  DCs IP follows]
  [..]
  Successfully contacted LDAP server 10.219.244.253
  [..]
  got principal=not_defined_in_RFC4178@please_ignore
  [..]
 What's cut out here might be more helpful.  However, please see below
 and try that first.

  SPNEGO login failed: Logon failure
  failed session setup with NT_STATUS_LOGON_FAILURE
  libnet_Join:
     libnet_JoinCtx: struct libnet_JoinCtx
         out: struct libnet_JoinCtx
             account_name             : NULL
             netbios_domain_name      : NULL
             dns_domain_name          : NULL
             forest_name              : NULL
             dn                       : NULL
             domain_sid               : NULL
                 domain_sid               : (NULL SID)
             modified_config          : 0x00 (0)
             error_string             : 'failed to lookup DC info for domain
  'CIB.NET' over rpc: Logon failure'
             domain_is_ad             : 0x00 (0)
             result                   : WERR_LOGON_FAILURE
 
 
  relevant configuration options :
 
  [global]
         realm=CORP.NET
         workgroup=CORP.NET
 Please try changing this to just CORP (or whatever the short netbios
 name is for the domain...not the dns name).

         security=ADS
         encrypt passwords = yes
         bind interfaces only = true
         interfaces = msusersncs
 
 
 
  Any hints on the best way to try and figure out what is wrong when
  trying to register in the AD ?
  (the same config worked with samba 3.4.x, but the DCs were running Windows
 2003)



Still stuck, if anyone can help me find what looks wrong in the log below when
trying to join the domain, I'd be most grateful !
(In addition to Jim's suggestion I have also tried reverting to the previouse
security default : client ntlmv2 auth, client use spnego, send spnego principal
- which didn't help either)

check_negative_conn_cache returning result 0 for domain CORP.NET server
10.220.244.253
ads_try_connect: sending CLDAP request to 10.220.244.253 (realm: CORP.NET)
Successfully contacted LDAP server 10.220.244.253
libnet_Join:
libnet_JoinCtx: struct libnet_JoinCtx
in: struct libnet_JoinCtx
dc_name  : NULL
machine_name : 'MSUSERSNCS'
domain_name  : *
domain_name  : 'CORP.NET'
account_ou   : NULL
admin_account: 'aranskis'
machine_password : NULL
join_flags   : 0x0023 (35)
   0: WKSSVC_JOIN_FLAGS_IGNORE_UNSUPPORTED_FLAGS
   0: WKSSVC_JOIN_FLAGS_JOIN_WITH_NEW_NAME
   0: WKSSVC_JOIN_FLAGS_JOIN_DC_ACCOUNT
...skipping...
got OID=1.3.6.1.4.1.311.2.2.30
got OID=1.2.840.48018.1.2.2
got OID=1.2.840.113554.1.2.2
got OID=1.2.840.113554.1.2.2.3
got OID=1.3.6.1.4.1.311.2.2.10
got principal=not_defined_in_RFC4178@please_ignore
Got challenge flags:
Got NTLMSSP neg_flags=0x62898215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_TARGET_INFO
  NTLMSSP_NEGOTIATE_VERSION
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_ALWAYS_SIGN
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
SPNEGO login failed: Logon failure
failed session setup with NT_STATUS_LOGON_FAILURE
libnet_Join:
libnet_JoinCtx: struct libnet_JoinCtx

Re: [Samba] Bad configuration file

2012-06-01 Thread Harry Jede
On 18:41:40 wrote Cédric Carlen:
 Hello everyone,
 
 I'm writing you a topic because i have a problem with smaba and LDAP.
 
 This is my problem, when I type in the shell slapcat, i've got this
 message
 
 
 str2entry: invalid value for attributeType objectClass #1 (syntax
 1.3.6.1.4.1.1466.115.121.1.38)
 slapcat: bad configuration file!
 
 There is my slapd.conf :
 
 include /etc/ldap/schema/core.schema
 include /etc/ldap/schema/cosine.schema
 include /etc/ldap/schema/nis.schema
 include /etc/ldap/schema/inetorgperson.schema
 include /etc/ldap/schema/samba.schema
 include /etc/ldap/schema/ppolicy.schema
 
 modulepath  /usr/lib/ldap
 moduleload  back_bdbn
a module with this name doesn't exist, try:
moduleload  back_bdb

 moduleload  ppolicy.la
 moduleload  smbk5pwd.la
 
 overlay smbk5pwd
 smbk5pwd-enable samba
 
 overlay ppolicy
 ppolicy_default ou=default,ou=policies,dc=my,dc=test
 ppolicy_use_lockout
 ppolicy_hash_cleartext
 
 Please help :(
 
 Flake


-- 

Gruss
Harry Jede
-- 
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-06-01 Thread Andreas Schneider
The branch, master has been updated
   via  6e9aca7 waf: check for krb5_create_checksum and krb5_creds.flags 
for some Heimdal versions
   via  f8c447b waf-mitkrb5: enable dcerpc_server library to support 
OpenChange client code
  from  ae0a234 .gitignore: remove already-gone gen-8bit-gap.sh

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


- Log -
commit 6e9aca7d4100e3c0f3a9b0ffe21fb3b4a8a5c87f
Author: Alexander Bokovoy a...@samba.org
Date:   Thu May 31 12:44:50 2012 +0300

waf: check for krb5_create_checksum and krb5_creds.flags for some Heimdal 
versions

Signed-off-by: Andreas Schneider a...@samba.org

Autobuild-User: Andreas Schneider a...@cryptomilk.org
Autobuild-Date: Fri Jun  1 11:23:21 CEST 2012 on sn-devel-104

commit f8c447b1a48eaf12dcf70b92fd7525c4ad26c246
Author: Alexander Bokovoy a...@samba.org
Date:   Thu May 31 10:32:01 2012 +0300

waf-mitkrb5: enable dcerpc_server library to support OpenChange client code

Signed-off-by: Andreas Schneider a...@samba.org

---

Summary of changes:
 lib/krb5_wrap/krb5_samba.c  |4 ++
 source3/configure.in|   12 ++
 source4/heimdal_build/wscript_configure |1 +
 source4/rpc_server/wscript_build|   57 ---
 source4/smbd/wscript_build  |4 +-
 source4/wrepl_server/wscript_build  |3 +-
 wscript_configure_system_mitkrb5|   15 ++--
 7 files changed, 70 insertions(+), 26 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c
index 572d39e..dc90f19 100644
--- a/lib/krb5_wrap/krb5_samba.c
+++ b/lib/krb5_wrap/krb5_samba.c
@@ -2162,7 +2162,11 @@ krb5_error_code smb_krb5_cc_get_lifetime(krb5_context 
context,
}
 
while ((kerr = krb5_cc_next_cred(context, id, cursor, cred)) == 0) {
+#ifndef HAVE_FLAGS_IN_KRB5_CREDS
if (cred.ticket_flags  TKT_FLG_INITIAL) {
+#else
+   if (cred.flags.b.initial) {
+#endif
if (now  cred.times.endtime) {
*t = (time_t) (cred.times.endtime - now);
}
diff --git a/source3/configure.in b/source3/configure.in
index ea89fa2..06b51db 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -3596,6 +3596,7 @@ if test x$with_ads_support != xno; then
   AC_CHECK_FUNC_EXT(krb5_cc_get_lifetime, $KRB5_LIBS)
   AC_CHECK_FUNC_EXT(krb5_cc_retrieve_cred, $KRB5_LIBS)
   AC_CHECK_FUNC_EXT(krb5_free_checksum_contents, $KRB5_LIBS)
+  AC_CHECK_FUNC_EXT(krb5_create_checksum, $KRB5_LIBS)
   AC_CHECK_FUNC_EXT(krb5_c_make_checksum, $KRB5_LIBS)
   AC_CHECK_FUNC_EXT(gss_krb5_import_cred, $KRB5_LIBS)
   AC_CHECK_FUNC_EXT(gss_get_name_attribute, $KRB5_LIBS)
@@ -4006,6 +4007,17 @@ if test x$with_ads_support != xno; then
 
   AC_HAVE_DECL(KRB5_PDU_NONE,[#include krb5.h])
 
+  AC_CACHE_CHECK([for flags in krb5_creds],
+samba_cv_HAVE_FLAGS_IN_KRB5_CREDS,[
+AC_TRY_COMPILE([#include krb5.h],
+  [krb5_creds creds; creds.flags.b.initial = 0;],
+  samba_cv_HAVE_FLAGS_IN_KRB5_CREDS=yes,
+  samba_cv_HAVE_FLAGS_IN_KRB5_CREDS=no)])
+
+  if test x$samba_cv_HAVE_FLAGS_IN_KRB5_CREDS = xyes; then
+AC_DEFINE(HAVE_FLAGS_IN_KRB5_CREDS,1,
+   [Whether the krb5_creds struct has a flags property])
+  fi
   #
   #
   # Now the decisions whether we can support krb5
diff --git a/source4/heimdal_build/wscript_configure 
b/source4/heimdal_build/wscript_configure
index e8dab68..ea854f2 100755
--- a/source4/heimdal_build/wscript_configure
+++ b/source4/heimdal_build/wscript_configure
@@ -156,6 +156,7 @@ conf.define('HAVE_ENCTYPE_AES128_CTS_HMAC_SHA1_96', 1)
 conf.define('HAVE_ENCTYPE_AES256_CTS_HMAC_SHA1_96', 1)
 conf.define('HAVE_KRB5_PRINCIPAL_GET_NUM_COMP', 1)
 conf.define('HAVE_GSSAPI_GSSAPI_SPNEGO_H', 1)
+conf.define('HAVE_FLAGS_IN_KRB5_CREDS', 1)
 
 heimdal_includedirs = []
 heimdal_libdirs = []
diff --git a/source4/rpc_server/wscript_build b/source4/rpc_server/wscript_build
index e3a863a..84df78b 100755
--- a/source4/rpc_server/wscript_build
+++ b/source4/rpc_server/wscript_build
@@ -11,25 +11,26 @@ bld.SAMBA_SUBSYSTEM('DCERPC_COMMON',
source='common/forward.c common/reply.c dcesrv_auth.c 
common/loadparm.c',
autoproto='common/proto.h',
deps='ldb DCERPC_SHARE samba_server_gensec',
-   enabled=bld.AD_DC_BUILD_IS_ENABLED()
+   enabled=True
)
 
 bld.SAMBA_LIBRARY('dcerpc_server',
source='dcerpc_server.c dcesrv_mgmt.c handles.c',
pc_files='dcerpc_server.pc',
-   deps='LIBCLI_AUTH ndr samba_server_gensec dcerpc_remote service',
+   deps='LIBCLI_AUTH DCERPC_COMMON ndr samba_server_gensec dcerpc_remote 
service',
public_deps='dcerpc',
autoproto='dcerpc_server_proto.h',

autobuild: intermittent test failure detected

2012-06-01 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-06-01-1218/flakey.log

The samba3 build logs are available here:

   http://git.samba.org/autobuild.flakey/2012-06-01-1218/samba3.stderr
   http://git.samba.org/autobuild.flakey/2012-06-01-1218/samba3.stdout

The source4 build logs are available here:

   http://git.samba.org/autobuild.flakey/2012-06-01-1218/samba4.stderr
   http://git.samba.org/autobuild.flakey/2012-06-01-1218/samba4.stdout
  
The top commit at the time of the failure was:

commit 6e9aca7d4100e3c0f3a9b0ffe21fb3b4a8a5c87f
Author: Alexander Bokovoy a...@samba.org
Date:   Thu May 31 12:44:50 2012 +0300

waf: check for krb5_create_checksum and krb5_creds.flags for some Heimdal 
versions

Signed-off-by: Andreas Schneider a...@samba.org

Autobuild-User: Andreas Schneider a...@cryptomilk.org
Autobuild-Date: Fri Jun  1 11:23:21 CEST 2012 on sn-devel-104


[SCM] Samba Shared Repository - branch master updated

2012-06-01 Thread Alexander Bokovoy
The branch, master has been updated
   via  eaf9b86 Revert waf-mitkrb5: enable dcerpc_server library to 
support OpenChange client code
  from  6e9aca7 waf: check for krb5_create_checksum and krb5_creds.flags 
for some Heimdal versions

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


- Log -
commit eaf9b86d601d7564199bdc037dc5024e6a4e5908
Author: Alexander Bokovoy a...@samba.org
Date:   Fri Jun 1 15:38:56 2012 +0300

Revert waf-mitkrb5: enable dcerpc_server library to support OpenChange 
client code

This reverts commit f8c447b1a48eaf12dcf70b92fd7525c4ad26c246.

After discussing with Julien (Openchange) and Metze, I decided to revert 
this code.
Instead I made a patch to Openchange which allows to build client side only.

Openchange server code requires working s4 member DC and --without-ad-dc 
build
does not provide working provisioning even if we enable dcerpc_server and 
end point mapper.

Autobuild-User: Alexander Bokovoy a...@samba.org
Autobuild-Date: Fri Jun  1 16:46:08 CEST 2012 on sn-devel-104

---

Summary of changes:
 source4/rpc_server/wscript_build   |   57 ---
 source4/smbd/wscript_build |4 +-
 source4/wrepl_server/wscript_build |3 +-
 3 files changed, 23 insertions(+), 41 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/rpc_server/wscript_build b/source4/rpc_server/wscript_build
index 84df78b..e3a863a 100755
--- a/source4/rpc_server/wscript_build
+++ b/source4/rpc_server/wscript_build
@@ -11,26 +11,25 @@ bld.SAMBA_SUBSYSTEM('DCERPC_COMMON',
source='common/forward.c common/reply.c dcesrv_auth.c 
common/loadparm.c',
autoproto='common/proto.h',
deps='ldb DCERPC_SHARE samba_server_gensec',
-   enabled=True
+   enabled=bld.AD_DC_BUILD_IS_ENABLED()
)
 
 bld.SAMBA_LIBRARY('dcerpc_server',
source='dcerpc_server.c dcesrv_mgmt.c handles.c',
pc_files='dcerpc_server.pc',
-   deps='LIBCLI_AUTH DCERPC_COMMON ndr samba_server_gensec dcerpc_remote 
service',
+   deps='LIBCLI_AUTH ndr samba_server_gensec dcerpc_remote service',
public_deps='dcerpc',
autoproto='dcerpc_server_proto.h',
public_headers='dcerpc_server.h',
vnum='0.0.1',
-   enabled=True
+   enabled=bld.AD_DC_BUILD_IS_ENABLED()
)
 
 bld.SAMBA_MODULE('dcerpc_rpcecho',
source='echo/rpc_echo.c',
subsystem='dcerpc_server',
init_function='dcerpc_server_rpcecho_init',
-   deps='ndr-standard events',
-   enabled=bld.AD_DC_BUILD_IS_ENABLED()
+   deps='ndr-standard events'
)
 
 
@@ -38,8 +37,7 @@ bld.SAMBA_MODULE('dcerpc_epmapper',
source='epmapper/rpc_epmapper.c',
subsystem='dcerpc_server',
init_function='dcerpc_server_epmapper_init',
-   deps='NDR_EPMAPPER',
-   enabled=bld.AD_DC_BUILD_IS_ENABLED()
+   deps='NDR_EPMAPPER'
)
 
 
@@ -47,8 +45,7 @@ bld.SAMBA_MODULE('dcerpc_remote',
source='remote/dcesrv_remote.c',
subsystem='dcerpc_server',
init_function='dcerpc_server_remote_init',
-   deps='LIBCLI_SMB ndr-table',
-   enabled=bld.AD_DC_BUILD_IS_ENABLED()
+   deps='LIBCLI_SMB ndr-table'
)
 
 
@@ -57,8 +54,7 @@ bld.SAMBA_MODULE('dcerpc_srvsvc',
autoproto='srvsvc/proto.h',
subsystem='dcerpc_server',
init_function='dcerpc_server_srvsvc_init',
-   deps='DCERPC_COMMON NDR_SRVSVC share ntvfs',
-   enabled=bld.AD_DC_BUILD_IS_ENABLED()
+   deps='DCERPC_COMMON NDR_SRVSVC share ntvfs'
)
 
 
@@ -66,8 +62,7 @@ bld.SAMBA_MODULE('dcerpc_wkssvc',
source='wkssvc/dcesrv_wkssvc.c',
subsystem='dcerpc_server',
init_function='dcerpc_server_wkssvc_init',
-   deps='DCERPC_COMMON ndr-standard',
-   enabled=bld.AD_DC_BUILD_IS_ENABLED()
+   deps='DCERPC_COMMON ndr-standard'
)
 
 
@@ -75,8 +70,7 @@ bld.SAMBA_MODULE('dcerpc_unixinfo',
source='unixinfo/dcesrv_unixinfo.c',
subsystem='dcerpc_server',
init_function='dcerpc_server_unixinfo_init',
-   deps='DCERPC_COMMON samdb NDR_UNIXINFO LIBWBCLIENT_OLD',
-   enabled=bld.AD_DC_BUILD_IS_ENABLED()
+   deps='DCERPC_COMMON samdb NDR_UNIXINFO LIBWBCLIENT_OLD'
)
 
 
@@ -85,8 +79,7 @@ bld.SAMBA_MODULE('dcesrv_samr',
autoproto='samr/proto.h',
subsystem='dcerpc_server',
init_function='dcerpc_server_samr_init',
-   deps='samdb DCERPC_COMMON ndr-standard',
-   enabled=bld.AD_DC_BUILD_IS_ENABLED()
+   deps='samdb DCERPC_COMMON ndr-standard'
)
 
 
@@ -95,8 +88,7 @@ bld.SAMBA_MODULE('dcerpc_winreg',
subsystem='dcerpc_server',
init_function='dcerpc_server_winreg_init',
deps='registry ndr-standard',
-   internal_module=True,
-   

autobuild: intermittent test failure detected

2012-06-01 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-06-01-1813/flakey.log

The samba3 build logs are available here:

   http://git.samba.org/autobuild.flakey/2012-06-01-1813/samba3.stderr
   http://git.samba.org/autobuild.flakey/2012-06-01-1813/samba3.stdout

The source4 build logs are available here:

   http://git.samba.org/autobuild.flakey/2012-06-01-1813/samba4.stderr
   http://git.samba.org/autobuild.flakey/2012-06-01-1813/samba4.stdout
  
The top commit at the time of the failure was:

commit eaf9b86d601d7564199bdc037dc5024e6a4e5908
Author: Alexander Bokovoy a...@samba.org
Date:   Fri Jun 1 15:38:56 2012 +0300

Revert waf-mitkrb5: enable dcerpc_server library to support OpenChange 
client code

This reverts commit f8c447b1a48eaf12dcf70b92fd7525c4ad26c246.

After discussing with Julien (Openchange) and Metze, I decided to revert 
this code.
Instead I made a patch to Openchange which allows to build client side only.

Openchange server code requires working s4 member DC and --without-ad-dc 
build
does not provide working provisioning even if we enable dcerpc_server and 
end point mapper.

Autobuild-User: Alexander Bokovoy a...@samba.org
Autobuild-Date: Fri Jun  1 16:46:08 CEST 2012 on sn-devel-104


[SCM] Samba Shared Repository - branch master updated

2012-06-01 Thread Stefan Metzmacher
The branch, master has been updated
   via  29a51a2 s3: Avoid a lot of calls to serverid_exists()
  from  eaf9b86 Revert waf-mitkrb5: enable dcerpc_server library to 
support OpenChange client code

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


- Log -
commit 29a51a22df68ae8929bd8312df03c72bbfa26f81
Author: Volker Lendecke v...@samba.org
Date:   Fri Jun 1 15:15:07 2012 +0200

s3: Avoid a lot of calls to serverid_exists()

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

Autobuild-User: Stefan Metzmacher me...@samba.org
Autobuild-Date: Fri Jun  1 18:58:30 CEST 2012 on sn-devel-104

---

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


Changeset truncated at 500 lines:

diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 00a46fa..76c2bc7 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -620,7 +620,7 @@ bool is_valid_share_mode_entry(const struct 
share_mode_entry *e)
num_props += (EXCLUSIVE_OPLOCK_TYPE(e-op_type) ? 1 : 0);
num_props += (LEVEL_II_OPLOCK_TYPE(e-op_type) ? 1 : 0);
 
-   if (serverid_exists(e-pid)  (num_props  1)) {
+   if ((num_props  1)  serverid_exists(e-pid)) {
smb_panic(Invalid share mode entry);
}
return (num_props != 0);


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2012-06-01 Thread Jeremy Allison
The branch, master has been updated
   via  97a4901 s3: Same fix as 8576256, this time for fgetxattr
  from  29a51a2 s3: Avoid a lot of calls to serverid_exists()

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


- Log -
commit 97a4901d6c16a8628f348edb182849326c3b1f2d
Author: Volker Lendecke v...@samba.org
Date:   Fri Jun 1 10:32:54 2012 +0200

s3: Same fix as 8576256, this time for fgetxattr

Signed-off-by: Jeremy Allison j...@samba.org

Autobuild-User: Jeremy Allison j...@samba.org
Autobuild-Date: Sat Jun  2 02:12:31 CEST 2012 on sn-devel-104

---

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


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c
index fc5c3de..859e06b 100644
--- a/source3/modules/vfs_xattr_tdb.c
+++ b/source3/modules/vfs_xattr_tdb.c
@@ -91,7 +91,7 @@ static ssize_t xattr_tdb_fgetxattr(struct vfs_handle_struct 
*handle,
errno = ERANGE;
return -1;
}
-   memcpy(value, blob.data, size);
+   memcpy(value, blob.data, xattr_size);
TALLOC_FREE(frame);
return xattr_size;
 }


-- 
Samba Shared Repository


autobuild: intermittent test failure detected

2012-06-01 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-06-02-0349/flakey.log

The samba3 build logs are available here:

   http://git.samba.org/autobuild.flakey/2012-06-02-0349/samba3.stderr
   http://git.samba.org/autobuild.flakey/2012-06-02-0349/samba3.stdout

The source4 build logs are available here:

   http://git.samba.org/autobuild.flakey/2012-06-02-0349/samba4.stderr
   http://git.samba.org/autobuild.flakey/2012-06-02-0349/samba4.stdout
  
The top commit at the time of the failure was:

commit 29a51a22df68ae8929bd8312df03c72bbfa26f81
Author: Volker Lendecke v...@samba.org
Date:   Fri Jun 1 15:15:07 2012 +0200

s3: Avoid a lot of calls to serverid_exists()

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

Autobuild-User: Stefan Metzmacher me...@samba.org
Autobuild-Date: Fri Jun  1 18:58:30 CEST 2012 on sn-devel-104


[SCM] Samba Shared Repository - branch master updated

2012-06-01 Thread Andrew Bartlett
The branch, master has been updated
   via  81a754f lib/replace: Relicence xattr.c to LGPLv3
   via  2716b0a build: Always attempt to build posix ACLs
   via  e9d797e lib/replace: Merge remaining xattr test details from 
lib/util
   via  f9b7cd5 s4-xattr: Use libreplace xattr functions directly
   via  c290cdb lib/replace: xattr wrappers in lib/replace rather than 
source3/lib/system.c
   via  664af06 lib/replace: We cannot use strchr_m in lib/replace
   via  954da1b lib/replace: DEBUG is not acceptable here, as this may not 
be linked into Samba
   via  b347067 lib/replace: Copy lib/system.c xattr wrappers to lib/replace
  from  97a4901 s3: Same fix as 8576256, this time for fgetxattr

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


- Log -
commit 81a754fb6462bc9f6b4be6bc1ee04a85a85e1686
Author: Andrew Bartlett abart...@samba.org
Date:   Sat Jun 2 09:28:04 2012 +1000

lib/replace: Relicence xattr.c to LGPLv3

By the kind consent of the copyright holders.  (There wasn't any code from 
tridge
in the code brought in from source3/lib/system.c).

Andrew Bartlett

Autobuild-User: Andrew Bartlett abart...@samba.org
Autobuild-Date: Sat Jun  2 04:00:42 CEST 2012 on sn-devel-104

commit 2716b0a3f3037a5b8ac95b586158ed849c3418c3
Author: Andrew Bartlett abart...@samba.org
Date:   Fri Jun 1 15:24:20 2012 +1000

build: Always attempt to build posix ACLs

These are on more systems than just linux.  If the configure test passes
then assume it is available.

Andrew Bartlett

commit e9d797e153ae95561dbb10b56a41281b2472f137
Author: Andrew Bartlett abart...@samba.org
Date:   Fri Jun 1 15:01:09 2012 +1000

lib/replace: Merge remaining xattr test details from lib/util

I prefer the longer XATTR_ADDITIONAL_OPTIONS define and the NULL
rather than 0 values in the getxattr test.

Andrew Bartlett

commit f9b7cd53b9fe253b122cb545c2dd1be073ab0592
Author: Andrew Bartlett abart...@samba.org
Date:   Fri Jun 1 13:41:46 2012 +1000

s4-xattr: Use libreplace xattr functions directly

commit c290cdb9349220ba70b54143e1432da0230e2cee
Author: Andrew Bartlett abart...@samba.org
Date:   Fri Jun 1 13:29:38 2012 +1000

lib/replace: xattr wrappers in lib/replace rather than source3/lib/system.c

This also moves all the still-used configure tests etc.  The unused OSF API
is also removed at this time.

Andrew Bartlett

commit 664af060ac9ea83b565fbb817bb63d67d83843ef
Author: Andrew Bartlett abart...@samba.org
Date:   Fri Jun 1 14:07:42 2012 +1000

lib/replace: We cannot use strchr_m in lib/replace

In any case, it is always safe to search for . even in a multibyte string.

Andrew Bartlett

commit 954da1b81ec1a4ef9b417885e3a587b9c49b7056
Author: Andrew Bartlett abart...@samba.org
Date:   Fri Jun 1 14:05:10 2012 +1000

lib/replace: DEBUG is not acceptable here, as this may not be linked into 
Samba

commit b347067a67b791fa83c1cfa5b33a5de1a3045170
Author: Andrew Bartlett abart...@samba.org
Date:   Fri Jun 1 14:14:45 2012 +1000

lib/replace: Copy lib/system.c xattr wrappers to lib/replace

---

Summary of changes:
 lib/replace/libreplace.m4   |   47 ++
 lib/replace/replace.h   |   40 ++
 lib/replace/system/filesys.h|   56 +++
 lib/replace/wscript |   38 ++-
 lib/replace/xattr.c |  699 +++
 lib/util/wrap_xattr.c   |  120 -
 lib/util/wrap_xattr.h   |   33 --
 lib/util/wscript_build  |9 -
 lib/util/wscript_configure  |   13 -
 source3/configure.in|   59 ---
 source3/include/includes.h  |   23 -
 source3/lib/system.c|  678 --
 source3/modules/vfs_default.c   |   16 +-
 source3/wscript |   44 +--
 source4/ntvfs/posix/python/pyposix_eadb.c   |1 -
 source4/ntvfs/posix/python/pyxattr_native.c |8 +-
 source4/ntvfs/posix/python/pyxattr_tdb.c|1 -
 source4/ntvfs/posix/wscript_build   |4 +-
 source4/ntvfs/posix/xattr_system.c  |   13 +-
 19 files changed, 913 insertions(+), 989 deletions(-)
 create mode 100644 lib/replace/xattr.c
 delete mode 100644 lib/util/wrap_xattr.c
 delete mode 100644 lib/util/wrap_xattr.h


Changeset truncated at 500 lines:

diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4
index 7335c98..641d25b 100644
--- a/lib/replace/libreplace.m4
+++ b/lib/replace/libreplace.m4
@@ -144,6 +144,53 @@ 
AC_CHECK_FUNCS(clock_gettime,libreplace_cv_have_clock_gettime=yes,[
libreplace_cv_have_clock_gettime=yes
AC_DEFINE(HAVE_CLOCK_GETTIME, 

[SCM] Samba Shared Repository - branch master updated

2012-06-01 Thread Andrew Bartlett
The branch, master has been updated
   via  80913ae libreplace: Fix autoconf build on platforms needing xattrs
   via  a9311eb build: Check correctly for sendfile (missing .h in header)
  from  81a754f lib/replace: Relicence xattr.c to LGPLv3

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


- Log -
commit 80913ae2a88e0e9f5730f565ed73c8cb77be123a
Author: Andrew Bartlett abart...@samba.org
Date:   Sat Jun 2 13:08:32 2012 +1000

libreplace: Fix autoconf build on platforms needing xattrs

Autobuild-User: Andrew Bartlett abart...@samba.org
Autobuild-Date: Sat Jun  2 07:23:32 CEST 2012 on sn-devel-104

commit a9311ebfe7a28f5f5ac79a9779ab6bd0faeebe49
Author: Andrew Bartlett abart...@samba.org
Date:   Sat Jun 2 13:02:21 2012 +1000

build: Check correctly for sendfile (missing .h in header)

This will hopefully fix the build on SLES8, which does not support 64-bit 
sendfile.

Andrew Bartlett

---

Summary of changes:
 lib/replace/libreplace.m4 |2 +-
 source3/wscript   |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4
index 641d25b..16718d8 100644
--- a/lib/replace/libreplace.m4
+++ b/lib/replace/libreplace.m4
@@ -49,7 +49,7 @@ fi
 LIBREPLACEOBJ=$libreplacedir/replace.o
 AC_SUBST(LIBREPLACEOBJ)
 
-LIBREPLACEOBJ=${LIBREPLACEOBJ} $libreplacedir/snprintf.o
+LIBREPLACEOBJ=${LIBREPLACEOBJ} $libreplacedir/snprintf.o  
$libreplacedir/xattr.o
 
 AC_TYPE_UID_T
 AC_TYPE_MODE_T
diff --git a/source3/wscript b/source3/wscript
index e9d971a..b08fc77 100755
--- a/source3/wscript
+++ b/source3/wscript
@@ -941,7 +941,7 @@ main() {
 ssize_t nwritten = sendfile(tofd, fromfd, offset, 
total);
 ''',
 '_HAVE_SENDFILE',
-headers='sys/sendfile',
+headers='sys/sendfile.h',
 msg='Checking for linux sendfile support')
 
 # Try and cope with broken Linux sendfile


-- 
Samba Shared Repository