summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
...
* s4-auth-krb: Streamline and cleanup code to make it readable.Simo Sorce2012-04-121-190/+256
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s4-auth-krb: streamline and rename enctype functionsSimo Sorce2012-04-121-11/+12
| | | | better express what is being done in the function name.
* s4-auth-krb: Make kerberos_enctype_bitmap_to_enctype static.Simo Sorce2012-04-122-3/+1
| | | | | | It's a helper function not used anywhere else. Signed-off-by: Andreas Schneider <asn@samba.org>
* s4-auth-krb: Make kerberos_enctype_bitmap_to_enctypes static.Simo Sorce2012-04-121-1/+7
| | | | | | It is not used anywhere else. Signed-off-by: Andreas Schneider <asn@samba.org>
* s4-auth-krb: Move function into more appropriate header.Simo Sorce2012-04-121-0/+8
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s4-auth-krb: Make impersonate_principal_from_credentials static.Simo Sorce2012-04-121-0/+1
| | | | | | It's not used anywhere else. Signed-off-by: Andreas Schneider <asn@samba.org>
* gensec_gssapi: keep private header file close to the actual codeSimo Sorce2012-04-122-1/+70
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* krb5_wrap: remove duplicate declaration and dead ifdefSimo Sorce2012-04-121-4/+0
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s4-ldb: use KRB5_KEY macros to access key elements.Günther Deschner2012-04-121-8/+8
| | | | | | Guenther Signed-off-by: Andreas Schneider <asn@samba.org>
* s4-smb2: Fix a talloc crash bug.Andreas Schneider2012-04-111-2/+2
| | | | | | | | 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
* s4:dsdb/samdb/ldb_modules/schema.c - move "get_last_structural_class()" into ↵Matthias Dieter Wallnöfer2012-04-116-83/+46
| | | | | | | | | "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
* s4:dsdb/samdb/ldb_modules/schema.c - inline "get_oc_guid_from_message()" to ↵Matthias Dieter Wallnöfer2012-04-112-18/+23
| | | | | | | 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()".
* s4:dsdb - introduce a only constant-time "get_last_structural_class()" callMatthias Dieter Wallnöfer2012-04-113-37/+18
| | | | With the redesign of the previous patches this has become possible.
* s4:dsdb/samdb/ldb_modules/schema.c - inline "acl_check_access_on_class" to ↵Matthias Dieter Wallnöfer2012-04-112-46/+47
| | | | | | its only user Reduce the number of not to be shared functions in "schema.c".
* s4:dsdb - move "objectclass_sort()" out from the objectclass LDB module into ↵Matthias Dieter Wallnöfer2012-04-112-217/+200
| | | | | | | | | | 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.
* s4:acl LDB module - remove set but unused variablesMatthias Dieter Wallnöfer2012-04-111-5/+0
|
* s4:objectclass LDB module - remove unneeded build dependenciesMatthias Dieter Wallnöfer2012-04-111-1/+1
|
* s4:schema/schema_query.c - fix a commentMatthias Dieter Wallnöfer2012-04-111-1/+1
|
* s4:schema/schema_init.c - better use "ldb_attr_cmp" instead of "strcasecmp"Matthias Dieter Wallnöfer2012-04-111-1/+1
| | | | LDB convention
* s4:dsdb/pydsdb.c - fix indentationMatthias Dieter Wallnöfer2012-04-111-1/+1
|
* ldb: Detect failures in ldb.base againAndrew Bartlett2012-04-101-2/+1
| | | | | | | | | We need to wrap the ldb tests in the subunit blackbox helpers. We also needed to change to the right directory, or else the :< file:// syntax check does not work, as samba4.png is not found. Andrew Bartlett
* s4:librpc/rpc: also parse ncacn_packet pdus with LIBNDR_FLAG_OBJECT_PRESENTStefan Metzmacher2012-04-031-0/+4
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Apr 3 23:06:31 CEST 2012 on sn-devel-104
* s4:librpc/rpc: don't mix up paylod ndr flags with the dcerpc layerStefan Metzmacher2012-04-031-1/+1
| | | | | | | If the transfer syntax is NDR64, it's only for the payload not for the dcerpc pdus. metze
* build: Remove checks for krb5_decode_ap_req, free_AP_REQ and ↵Andrew Bartlett2012-04-031-2/+0
| | | | | | | | | KRB5_TICKET_HAS_KEYINFO Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Apr 3 19:19:33 CEST 2012 on sn-devel-104
* s4:ldap_server: fix typo in DEBUG() messageStefan Metzmacher2012-04-031-1/+1
| | | | metze
* s4-ntvfs: Rename xattr_tdb.c to posix_eadb.c and make more generally usefulAndrew Bartlett2012-04-035-38/+100
| | | | | | | | | This is now a small library, to be called from ntvfs, python and vfs_posix_eadb. The rename makes it clear that this has a different DB format to that used by vfs_xattr_tdb, and matches the posix:eadb smb.conf parameter used to configure it. Andrew Bartlett
* s4:smb_server/smb2: add missing 'return;' statements in smb2srv_chain_reply()Stefan Metzmacher2012-04-021-0/+3
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Apr 2 23:02:53 CEST 2012 on sn-devel-104
* s4:smb_server/smb2: after smbsrv_terminate_connection() we have to returnStefan Metzmacher2012-04-021-1/+0
| | | | | | req is a talloc child of the connection... metze
* s4:smb_server/smb2: fix memory leak in smb2srv_chain_reply()Stefan Metzmacher2012-04-021-0/+2
| | | | metze
* s4:smb_server/smb2: use helper variable smb2srv_chain_reply()Stefan Metzmacher2012-04-021-6/+7
| | | | metze
* s4:smb_server/smb: remove a request from the list before adding the next one ↵Stefan Metzmacher2012-04-021-0/+1
| | | | | | in a chain. metze
* s4-upgradedns: Fix the fqdn for forest dns zoneAmitay Isaacs2012-04-021-1/+1
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Mon Apr 2 10:56:10 CEST 2012 on sn-devel-104
* Fix some of the issues that Jelmer identified in my first patch. This might beRichard Sharpe2012-04-021-16/+12
| | | | | | | | changed again, especially when I figure out how to return the file as an object. Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Mon Apr 2 01:43:44 CEST 2012 on sn-devel-104
* Add an open and close method to samba.smb.SMB so we can open and close files.Richard Sharpe2012-04-011-10/+86
| | | | | | | Also, fix up some documentation. Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Sun Apr 1 16:29:52 CEST 2012 on sn-devel-104
* s4 dns: Allow updating PTR records.Kai Blin2012-03-301-0/+4
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Mar 30 19:26:52 CEST 2012 on sn-devel-104
* s4-upgradedns: Make sure the attribute exists before accessing itAmitay Isaacs2012-03-281-4/+8
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Mar 28 10:27:40 CEST 2012 on sn-devel-104
* s4 dns: Only do recursive queries when allowed/desiredKai Blin2012-03-271-7/+26
| | | | | | | | If recursive queries are switched off in smb.conf or the client doesn't ask for recursion, don't recurse. Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Mar 27 17:39:26 CEST 2012 on sn-devel-104
* s4 dns: Check smb.conf if we should allow recursionKai Blin2012-03-271-2/+3
|
* s4 dns: Allow changing the dns operation flags in handlersKai Blin2012-03-274-5/+23
|
* s4 dns: Only forward for zones we don't ownKai Blin2012-03-273-2/+33
|
* s4 dns: Forward questions we can't answer to another serverKai Blin2012-03-272-7/+80
| | | | | This makes use of libdns and currently hardcodes the forward server, but it works. :)
* wafsamba: Cope with slight differences in gdb output regarding incomplete ↵Jelmer Vernooij2012-03-261-1/+1
| | | | | | sequences. Bug: https://bugzilla.samba.org/show_bug.cgi?id=8820
* s4-dsdb: use constant-time search for descriptor -> get_last_structural_class()Andrew Bartlett2012-03-262-2/+4
| | | | | | | | | | The objectClass list is sorted at this point, as we are called below the objectclass module here, or are working from a search result. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Mar 26 05:38:13 CEST 2012 on sn-devel-104
* Fix the PyDoc comments in samba.smb.SMB and add a security_info argument to ↵Richard Sharpe2012-03-261-8/+23
| | | | | | | both get_acl and set_acl to allow the caller to specify what info is wanted. Defaults to 0 which means all info. Autobuild-User: Richard Sharpe <sharpe@samba.org> Autobuild-Date: Mon Mar 26 04:05:25 CEST 2012 on sn-devel-104
* s4:ldap.py - re-introduce the ↵Matthias Dieter Wallnöfer2012-03-261-11/+4
| | | | | | | | | | | | | "(dn=CN=ldaptestUSER3,CN=Users,DC=wallnoefer2,DC=local)" test This syntax is not supported by Windows AD and should also be denied by s4/LDB. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Mar 26 02:30:53 CEST 2012 on sn-devel-104
* LDB/s4 - deny the "(dn=...)" syntax on search filters when in AD modeMatthias Dieter Wallnöfer2012-03-261-0/+1
| | | | | | | Achieve this by introducing a "disallowDNFilter" flag. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* LDB/s4 - do not use the "(dn=...)" syntax on filters anymoreMatthias Dieter Wallnöfer2012-03-269-31/+32
| | | | | | | Make it AD-compatible using "(distinguishedName=...)". Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:ldap.py - test the already mentioned structural object class sorting ↵Matthias Dieter Wallnöfer2012-03-261-0/+15
| | | | | | | behaviour Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:dsdb - enhance "get_last_structural_class()" for optimisationsMatthias Dieter Wallnöfer2012-03-263-10/+29
| | | | | | | | If the objectclass entry has been sorted before we are able to determine the (last) structural or 88 object class in constant time. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:objectclass LDB module - fix up the sorting in respect to structural or ↵Matthias Dieter Wallnöfer2012-03-261-4/+18
| | | | | | | | | 88 objectclasses Please have a look at MS-ADTS 3.1.1.1.4. Reviewed-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>