Simo Sorce
c13c065a9b
krb5_wrap: krb5_string_to_key / krb5_encrypt_block are deprecated.
...
Remove checks and replace with krb5_c_string_to_key().
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:43 +02:00
Simo Sorce
70c303a7f3
auth-krb: Move pac related util functions in a single place.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:43 +02:00
Simo Sorce
3fd6deda7d
auth-krb: Make functions static.
...
The remaining gssapi_parse functions were used exclusively in
gensec_krb5. Move them there and make them static.
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:43 +02:00
Simo Sorce
d857e393ac
auth-krb: Use simpler method to extract keytype.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:42 +02:00
Simo Sorce
88d5d5c4b4
auth-krb: Nove oid packet check to gensec_util.
...
This is clearly a utiliy function generic to gensec. Also the 3 callers
had identical implementations. Provide a generic implementation for all
of them and avoid duplicating the code everywhere.
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:42 +02:00
Simo Sorce
f116262a73
s4-auth-krb: Remove dependency on credentials too.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:42 +02:00
Simo Sorce
a46e465ce0
s4-auth-krb: Remove unneded dependency on kerberos_util.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:42 +02:00
Simo Sorce
aedbd6bf8e
s4-auth-krb: Simplify salt_princ handling.
...
This allows us to make parse_principal static in kerbeors_util again and
avoid a silly game where we alloc containers and set destrcutors only to
release the whole thing at the end of the function.
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:42 +02:00
Simo Sorce
6de578a8f7
s4-auth-krb: Move function to db-glue.c and make it static.
...
kerberos_enctype_to_bitmap is not used anywhere else, so just move it there and
make it static, one less dependency to worry about.
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:42 +02:00
Simo Sorce
b226955587
s4-auth-krb: Move keytab functions in a separate file.
...
Confine ldb dependency.
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:42 +02:00
Simo Sorce
7d203f70ae
s4-auth-krb: Streamline and cleanup code to make it readable.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:42 +02:00
Simo Sorce
23d54e7f92
s4-auth-krb: streamline and rename enctype functions
...
better express what is being done in the function name.
2012-04-12 12:06:42 +02:00
Simo Sorce
6f7fa0bd2f
s4-auth-krb: Make kerberos_enctype_bitmap_to_enctype static.
...
It's a helper function not used anywhere else.
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:42 +02:00
Simo Sorce
60905c807a
s4-auth-krb: Make kerberos_enctype_bitmap_to_enctypes static.
...
It is not used anywhere else.
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:42 +02:00
Simo Sorce
670dbde65e
s4-auth-krb: Move function into more appropriate header.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:41 +02:00
Simo Sorce
70f1cd6724
s4-auth-krb: Make cli_credentials_invalidate_client_gss_creds static.
...
It's not used anywhere else.
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:41 +02:00
Simo Sorce
b574e7cd81
s4-auth-krb: Make impersonate_principal_from_credentials static.
...
It's not used anywhere else.
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:41 +02:00
Simo Sorce
93aa4511b9
gensec_gssapi: keep private header file close to the actual code
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:41 +02:00
Simo Sorce
6ab0dfe0d9
krb5_wrap: remove duplicate declaration and dead ifdef
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:41 +02:00
Günther Deschner
c761654b92
s4-ldb: use KRB5_KEY macros to access key elements.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:41 +02:00
Günther Deschner
011540b520
wafsamba: point out that local heimdal paths are not included when
...
USING_SYSTEM_KRB5 gets set.
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:41 +02:00
Günther Deschner
1fedb0ae88
waf: when USING_SYSTEM_KRB5 environment variable is set, dont configure local
...
heimdal.
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:41 +02:00
Günther Deschner
d82aab6c70
waf: when building with system krb5, we do not need to build local heimdal.
...
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:41 +02:00
Günther Deschner
60f192ae10
s3-waf: remove requirement of having --enable-developer for running system krb5 checks.
...
When you know about "with_mit_krb5_checks" you are most likely a developer
already.
Guenther
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-12 12:06:41 +02:00
Jeremy Allison
81d17493d6
Remove overly complex attemt to define blkcnt_t and blksize_t. AC_CHECK_TYPE should just do it.
...
Still trying to fix the buildfarm.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Apr 12 04:28:29 CEST 2012 on sn-devel-104
2012-04-12 04:28:29 +02:00
Jeremy Allison
2216d3f08a
Try and fix autoconf on the build farm. Always include sys/types.h when working out sizeof(blkcnt_t).
2012-04-11 17:11:28 -07:00
Christian Ambach
2927ca3670
s3:smbd only care about missing level2 support if kernel oplocks are enabled
...
if kernel oplocks are not enabled for that share, we can grant level2 oplocks
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 11 22:45:21 CEST 2012 on sn-devel-104
2012-04-11 22:45:21 +02:00
Christian Ambach
fbfbc6a252
s3:smbd only initialize kernel oplocks if they are enabled for a share
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-04-11 11:11:40 -07:00
Christian Ambach
1d9a3d488d
s3:smbd add seperate function to initialize kernel oplocks
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-04-11 11:11:39 -07:00
Christian Ambach
639a775866
docs: update kernel oplocks documentation
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-04-11 11:11:39 -07:00
Christian Ambach
2a36408d40
s3:param convert kernel oplocks to share parameter
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2012-04-11 11:11:39 -07:00
Andrew Bartlett
30203bda66
build: Fix spelling of tevent
...
Found by metze.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 11 17:36:19 CEST 2012 on sn-devel-104
2012-04-11 17:36:19 +02:00
Andrew Bartlett
c5a58c3ea7
build: use include paths for pkg-config found libraries
2012-04-11 16:00:38 +02:00
Andrew Bartlett
d271bf8dc2
lib/tdb_compat: Do not define BUILD_TDB2 if we are not building tdb2
...
The simple fact that this was defined at all, even to false, caused some
of the tdb2 build code to run.
Andrew Bartlett
2012-04-11 16:00:38 +02:00
Andreas Schneider
dba2ed9ac1
s4-smb2: Fix a talloc crash bug.
...
The talloc context needs to be initialzed or NULL. So move
talloc_steal() to the position where req is initialized.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Apr 11 15:59:39 CEST 2012 on sn-devel-104
2012-04-11 15:59:39 +02:00
Jeremy Allison
e02a788f60
Simplify the logic around doing an immediate event reschedule.
...
We don't need to do a talloc here, we already have a long-lived
pointer we can pass in as the private data.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 11 08:05:47 CEST 2012 on sn-devel-104
2012-04-11 08:05:47 +02:00
Matthias Dieter Wallnöfer
0c44d46f24
s4:dsdb/samdb/ldb_modules/schema.c - move "get_last_structural_class()" into "util.c"
...
And remove this helper module - it does not have much sense keeping it.
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 11 06:31:51 CEST 2012 on sn-devel-104
2012-04-11 06:31:51 +02:00
Matthias Dieter Wallnöfer
83062125e6
s4:dsdb/samdb/ldb_modules/schema.c - inline "get_oc_guid_from_message()" to its only user
...
Reduce the number of not to be shared functions in "schema.c". Change it
to make use of "get_last_structural_class()".
2012-04-11 12:50:16 +10:00
Matthias Dieter Wallnöfer
3fa5f84d2f
s4:dsdb - introduce a only constant-time "get_last_structural_class()" call
...
With the redesign of the previous patches this has become possible.
2012-04-11 12:50:16 +10:00
Matthias Dieter Wallnöfer
ba96b2491e
s4:dsdb/samdb/ldb_modules/schema.c - inline "acl_check_access_on_class" to its only user
...
Reduce the number of not to be shared functions in "schema.c".
2012-04-11 12:50:16 +10:00
Matthias Dieter Wallnöfer
4eb0d42291
s4:dsdb - move "objectclass_sort()" out from the objectclass LDB module into the schema code
...
This allows it to be useful for the dbchecker utility in respect to
object class problems.
Fix up the API to only work with standardised LDB "ldb_message_element"
structures which do allow much easier interoperations. As a consequence this
leads to some changes in the objectclass module as well.
2012-04-11 12:50:16 +10:00
Matthias Dieter Wallnöfer
17775186df
s4:acl LDB module - remove set but unused variables
2012-04-11 12:50:16 +10:00
Matthias Dieter Wallnöfer
93f0905f07
s4:objectclass LDB module - remove unneeded build dependencies
2012-04-11 12:50:16 +10:00
Matthias Dieter Wallnöfer
55f4275f18
LDB:ldb_msg.c - add another OOM check in "ldb_msg_copy()"
2012-04-11 12:50:16 +10:00
Matthias Dieter Wallnöfer
3d886e3e15
s4:schema/schema_query.c - fix a comment
2012-04-11 12:50:16 +10:00
Matthias Dieter Wallnöfer
35dfd79dca
s4:schema/schema_init.c - better use "ldb_attr_cmp" instead of "strcasecmp"
...
LDB convention
2012-04-11 12:50:16 +10:00
Matthias Dieter Wallnöfer
0c2c5f24a9
s4:dsdb/pydsdb.c - fix indentation
2012-04-11 12:50:16 +10:00
Andrew Bartlett
47e7013d20
on our way with Samba 4.0alpha20
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 11 04:04:18 CEST 2012 on sn-devel-104
2012-04-11 04:04:18 +02:00
Andrew Bartlett
8a34f61b27
prepare WHATSNEW for Samba 4.0alpha19 release and mark as release.
2012-04-11 02:30:40 +02:00
Andrew Bartlett
73818636e0
ccan: Fix failtest on Fedora 16 as stdlib.h does not imply malloc.h
...
The issue is that there are two different sources of the malloc
prototype, and they both need to be included otherwise the failtest
overrides chokes on the headers.
Andrew Bartlett
2012-04-11 02:30:40 +02:00