1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

24855 Commits

Author SHA1 Message Date
Stefan Metzmacher
e3a0463414 libcli/nbt: convert nbt_name_register_wins_send/recv to tevent_req
metze
2010-10-18 15:36:15 +00:00
Stefan Metzmacher
12c38806af s4:nbt_server/winsclient: add a nbtd_wins_register_state
We now keep the nbtd_wins_register_state around between
nbt_name_register_wins_send() and nbt_name_register_wins_recv()

metze
2010-10-18 15:36:15 +00:00
Stefan Metzmacher
43fb7f1698 libcli/nbt: convert nbt_name_refresh_wins_send/recv to tevent_req
metze
2010-10-18 15:36:15 +00:00
Stefan Metzmacher
5f19a24c50 s4:nbt_server/winsclient: add a nbtd_wins_refresh_state
We now keep the nbtd_wins_refresh_state around between
nbt_name_refresh_wins_send() and nbt_name_refresh_wins_recv()

metze
2010-10-18 15:36:15 +00:00
Stefan Metzmacher
2ae3bb0b16 s4:nbt_server/wins: fix compiler warnings
metze
2010-10-18 15:36:15 +00:00
Stefan Metzmacher
20c7e2b3a3 s4:libcli/util: add pipe related NT_STATUS_RPC_* codes
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 18 13:50:55 UTC 2010 on sn-devel-104
2010-10-18 13:50:55 +00:00
Andreas Schneider
d42ddd7b60 s4-gensec: Add dependency on com_err to GENSEC_KRB5. 2010-10-18 14:03:05 +02:00
Andrew Bartlett
034832ccd5 s4-ldb Add LDB_REQ_SET_LOCATION to help track handler use
This greatly assists in debugging what is going on with the
ldb handle, as it indicates where it was created.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Oct 18 11:54:46 UTC 2010 on sn-devel-104
2010-10-18 11:54:46 +00:00
Andrew Bartlett
48c54f9ec8 ldb Ensure we mark ongoing LDAP requests as PENDING 2010-10-18 11:13:04 +00:00
Andrew Bartlett
ce01e36d8c s4-openldap-backend Don't set 'dbnosync' on cn=config
This isn't valid in current OpenLDAP versions.

Andrew Bartlett
2010-10-18 11:13:04 +00:00
Andrew Bartlett
ba9e787c7d s4-provision Use --ldap-backend-nosync rather than just --nosync
For some reason we had both options, and --ldap-backend-nosync is
the better name.

Andrew Bartlett
2010-10-18 11:13:04 +00:00
Jelmer Vernooij
d1ca35cbec heimdal_build: Add dependency on com_err to HEIMDAL_CONFIG.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct 18 10:27:47 UTC 2010 on sn-devel-104
2010-10-18 10:27:47 +00:00
Andrew Bartlett
b8dea2c327 dsdb simple_ldap_map depends on LDBSAMBA
This shows up at build time on MacOS and runtime on Linux when we
use the LDAP backend.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Oct 18 00:57:51 UTC 2010 on sn-devel-104
2010-10-18 00:57:51 +00:00
Andrew Bartlett
dab426476f Revert "s4:dsdb - make the RELAX control private"
This must be available to the OpenLDAP backend, to set the GUID values
in some situations.  We need a proper ACL mechanism to control the use
or abuse of this control.

This reverts commit 10adee89367cee9add993869280542418fb3d370.
2010-10-18 00:16:17 +00:00
Jelmer Vernooij
9f0d1c72be heimdal: Attempt to fix path of hdb_asn1.h
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct 18 00:15:11 UTC 2010 on sn-devel-104
2010-10-18 00:15:11 +00:00
Jelmer Vernooij
cbd4891808 dsdb: Module aliases require to be prefixed with the subsystem name. 2010-10-18 01:30:40 +02:00
Jelmer Vernooij
fb8bbd2506 dcerpc_samr: Fix -l arguments for dcerpc_samr and dcerpc_atsvc.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 17 19:15:43 UTC 2010 on sn-devel-104
2010-10-17 19:15:42 +00:00
Jelmer Vernooij
a31e10eab1 heimdal: Add local simpler copy of to_list(). 2010-10-17 19:42:41 +02:00
Matthias Dieter Wallnöfer
a3f61dea40 Revert "s4:remove "util_ldb" submodule and integrate the three gendb_* calls in "dsdb/common/util.c""
This reverts commit 8a2ce5c47cee499f90b125ebde83de5f9f1a9aa0.

Jelmer pointed out that these are also in use by other LDB databases - not only
SAMDB ones.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Oct 17 13:37:16 UTC 2010 on sn-devel-104
2010-10-17 13:37:16 +00:00
Matthias Dieter Wallnöfer
8a2ce5c47c s4:remove "util_ldb" submodule and integrate the three gendb_* calls in "dsdb/common/util.c"
They're only in use by SAMDB code.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Oct 17 09:40:13 UTC 2010 on sn-devel-104
2010-10-17 09:40:13 +00:00
Matthias Dieter Wallnöfer
e1078d2de2 s4:ldb-samba/ldb_wrap.c - fix indentation and trailing whitespaces 2010-10-17 10:23:41 +02:00
Matthias Dieter Wallnöfer
be4a0d35ac s4:"wrap_casefold" - move it to "ldb_wrap.c" since it's only used there 2010-10-17 10:20:40 +02:00
Matthias Dieter Wallnöfer
10adee8936 s4:dsdb - make the RELAX control private
This makes our LDAP much more secure and less error-prone.

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Oct 16 19:43:36 UTC 2010 on sn-devel-104
2010-10-16 19:43:36 +00:00
Matthias Dieter Wallnöfer
02d9d8eeaf s4:libcli/ldap/ldap_controls.c - fix up the controls list
- add missing private controls and comments
- use control defines rather than hardcoded values -> easier to comprehend
- reorder controls
2010-10-16 20:48:01 +02:00
Matthias Dieter Wallnöfer
c4739f7be8 ldb:ldb.h - reorder controls/extended operations
This makes it easier to read
2010-10-16 20:45:08 +02:00
Jelmer Vernooij
c161ad86d6 heimdal: Remove some unused arguments from HEIMDAL_SUBSYSTEM().
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Oct 16 16:14:24 UTC 2010 on sn-devel-104
2010-10-16 16:14:24 +00:00
Jelmer Vernooij
9147e19611 heimdal: Allow leaving off prefix from asn1 option_file. 2010-10-16 17:33:24 +02:00
Jelmer Vernooij
eab84a6ed0 heimdal: Leave off ../heimdal prefix to HEIMDAL_BINARY(). 2010-10-16 17:33:23 +02:00
Jelmer Vernooij
d3ea64451c heimdal: Allow leaving off prefix to HEIMDAL_ERRTABLE(). 2010-10-16 17:33:23 +02:00
Jelmer Vernooij
2aba5aa4b6 heimdal: Allow leaving off prefix for HEIMDAL_ASN1(). 2010-10-16 17:33:23 +02:00
Jelmer Vernooij
c5d4d94104 heimdal: Allow leaving off ../heimdal prefix for proto headers. 2010-10-16 17:33:22 +02:00
Jelmer Vernooij
49d20a5d5f heimdal: Allow leaving off ../heimdal prefix for source files. 2010-10-16 17:33:22 +02:00
Jelmer Vernooij
c3009ac689 heimdal: Add convenience functions for finding heimdal paths. 2010-10-16 17:33:20 +02:00
Jelmer Vernooij
953d253748 heimdal: Call HEIMDAL_AUTOPROTO() manually. 2010-10-16 17:33:20 +02:00
Jelmer Vernooij
32fce1f075 heimdal: Call HEIMDAL_AUTOPROTO_PRIVATE() manually. 2010-10-16 17:33:19 +02:00
Jelmer Vernooij
1c4c96d3fe heimdal: Add variables for source files. 2010-10-16 17:33:19 +02:00
Jelmer Vernooij
196e8d1655 heimdal: Simplify handling of ../heimdal prefixes in HEIMDAL_SUBSYSTEM. 2010-10-16 17:33:18 +02:00
Jelmer Vernooij
b2af44e92b heimdal_build: Fix detection of system roken library. 2010-10-16 17:33:17 +02:00
Jelmer Vernooij
c3366c19a7 heimdal_build: Remove ignored argument ldflags from HEIMDAL_BINARY(). 2010-10-16 17:33:16 +02:00
Matthias Dieter Wallnöfer
dd0f22d446 ldb:pyldb.c - remove pointless comment
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Oct 16 14:38:58 UTC 2010 on sn-devel-104
2010-10-16 14:38:58 +00:00
Matthias Dieter Wallnöfer
39d11a977d ldb:"ldb_dn_compare_base" - use "unsigned int" counters
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Oct 16 13:54:13 UTC 2010 on sn-devel-104
2010-10-16 13:54:13 +00:00
Matthias Dieter Wallnöfer
531d7f569e ldb:"ldb_dn_add_child" - use "unsigned int" counters 2010-10-16 15:11:45 +02:00
Matthias Dieter Wallnöfer
1557acb44a ldb:"ldb_dn_remove_base_components" - use an "unsigned int" counter 2010-10-16 15:04:57 +02:00
Matthias Dieter Wallnöfer
19e94349b3 ldb:"ldb_dn_canonical" - use an "unsigned int" counter
Convert it to use an "unsigned int" counter which represents the exact length
of the DN components.
2010-10-16 14:57:52 +02:00
Matthias Dieter Wallnöfer
bc0294814a s4:samldb LDB module - use appropriate fixed-length integer types where needed
- The "systemFlags" we interpret always as signed
- Use "samdb_msg_add_int" where possible (much saver for integer storing than
  ldb_msg_add_fmt)
2010-10-16 14:39:23 +02:00
Matthias Dieter Wallnöfer
42d9978cdd s4:dsdb/samdb/ldb_modules/util.c - remove now unused functions which set integers
Please do always use the functions which specifiy the appropriate integer
length to not run into platform-specific issues. Therefore I'm removing these
generic calls.
2010-10-16 14:39:23 +02:00
Matthias Dieter Wallnöfer
a0bd529751 s4:samba3sid LDB module - handle the RID as uint32_t
- This is how we always deal with RIDs
- Use an integer-length safe function for the RID update
2010-10-16 14:39:23 +02:00
Matthias Dieter Wallnöfer
d7ca757b31 s4:objectclass LDB module - implement the "isCriticalSystemObject" subtree delete protection
MS-ADTS 3.1.1.5.5.7.2

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Oct 16 11:24:09 UTC 2010 on sn-devel-104
2010-10-16 11:24:09 +00:00
Matthias Dieter Wallnöfer
88e5375ad3 s4:ldif_handlers.c - fix a typo 2010-10-16 12:42:06 +02:00
Matthias Dieter Wallnöfer
c291858199 s4:dsdb - fix unsigned integer save problems using the "%u" specifier
The issue here is that we have not yet first cast to int32_t explicitly,
before we cast to an signed int to printf() into the %d or cast to a
int64_t before we then cast to a long long to printf into a %lld.

There are *no* unsigned integers in Active Directory LDAP, even the RID
allocations and ms-DS-Secondary-KrbTgt-Number are *signed* quantities.
(See the schema, and the syntax definitions in schema_syntax.c).

The failure has been detected by Matthieu Patou on the buildfarm host "tridge"
due to a malformed "groupType" attribute.

The solution is to use the "%d" specifier. Either to use it directly - or better
(when possible) use the call "samdb_msg_add_uint" (which encapsulates it).

This patch changes such problematic situations.
2010-10-16 10:54:46 +02:00