summaryrefslogtreecommitdiffstats
path: root/source4/libnet
Commit message (Collapse)AuthorAgeFilesLines
* libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbolAndrew Bartlett2011-06-203-3/+3
| | | | | | | | | | | | The two error tables need to be combined, but for now seperate the names. (As the common parts of the tree now use the _common function, errmap_unix.c must be included in the s3 autoconf build). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
* s4:libnet/libnet_rpc.c - quiet an enum warningMatthias Dieter Wallnöfer2011-06-091-0/+4
| | | | | | Other enum types have been checked before. Reviewed-by: Tridge
* s4-modules Remove lp_ctx from init functions that no longer need itAndrew Bartlett2011-06-061-1/+1
| | | | | | | | Now that we don't allow the smb.conf to change the modules dir, many functions that simply load modules or initialise a subsytem that may load modules no longer need an lp_ctx. Andrew Bartlett
* s4-libnet: Remove libnet_Join and create libnet_Join_memberAndrew Bartlett2011-05-183-41/+14
| | | | | | | | libnet_Join conflicts with a function in the source3 netapi of the same name, and the ability to join as a DC via this particular method is unused. Andrew Bartlett
* s4-libcli Remove resolve_name() as it conflicts with Samba3.Andrew Bartlett2011-05-031-1/+3
| | | | | | | This was just a wrapper around resolve_name_ex(), so just call that instead. Andrew Bartlett
* s4-libnet: honour convention of DEBUGLEVEL>=10 for NDR printAndrew Tridgell2011-04-042-0/+16
|
* Ensure convert_string_XXX is always called with a valid converted_size pointer.Jeremy Allison2011-03-291-1/+2
| | | | | | | Preparation for cleaning up this API. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Mar 29 21:01:49 CEST 2011 on sn-devel-104
* lib/util/charset rename iconv_convenience to iconv_handleAndrew Bartlett2011-03-251-1/+1
| | | | | | This better reflects what this structure is Andrew Bartlett
* charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2011-03-241-1/+1
| | | | | | | | | convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
* s4/ldb - remove now superflous "ldb_dn_validate" checksMatthias Dieter Wallnöfer2011-03-041-1/+1
| | | | | | | If we immediately afterwards perform an LDB base operation then we don't need an explicit "ldb_dn_validate" check anymore (only OOM makes sense). Reviewed by: Tridge
* s4:libnet/libnet_site.c - make use of LDB return constantsMatthias Dieter Wallnöfer2011-03-041-6/+6
| | | | Reviewed by: Tridge
* s4:libnet/libnet_samsync_ldb.c - add a "samdb_msg_add_string" wrapperMatthias Dieter Wallnöfer2011-03-011-0/+8
| | | | | | Add this in order to allow the "ADD_OR_DEL" macros to work. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:remove many invocations of "samdb_msg_add_string"Matthias Dieter Wallnöfer2011-03-011-14/+8
| | | | | | | This call can be substituted by "ldb_msg_add_string". We only need to be careful on local objects or talloc'ed ones which live shorter than the message. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-libnet_vampire: Ignore some attributes when building working schema cacheKamen Mazdrashki2011-03-011-0/+9
| | | | | | | | | Working schema cache will be used to convert replicated Schema objects again later, i.e. used as reference, so we don't need to resolve all attribute OIDs for working Schema cache to be usable. Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Tue Mar 1 03:45:16 CET 2011 on sn-devel-104
* s4-waf: rename smbpasswd library to smbpasswdparserAndrew Tridgell2011-02-221-1/+1
| | | | this removes a conflict with the s3 smbpasswd binary
* ldb: use #include <ldb.h> for ldbAndrew Tridgell2011-02-106-11/+11
| | | | | | | | thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-python: Add missing prototypes.Jelmer Vernooij2011-01-031-0/+2
|
* s4-python: Properly call PyObject_Del from all destructors.Jelmer Vernooij2011-01-011-0/+1
|
* s4-auth Remove event context from privilage database handlingAndrew Bartlett2010-12-211-2/+1
| | | | | | | These local TDB operations can quite safely be handled in a new/nested event context, rather than using the main event context. Andrew Bartlett
* s4-repl: Allow dsdb_replicated_objects_commit() to use different schema ↵Kamen Mazdrashki2010-12-151-2/+2
| | | | | | | | | | | | | | | | | | while committing objects working_schema is to be used while committing a Schema replica. When we replicate Schema, then we most probably won't be able to convert all replicated objects using the current Schema cache (as we don't know anything about those new objects). Thus, during Schema replication, we make a temporary working_schema that contains both our current Schema + all objects we get on the wire. When we commit those new objects, we should use our working_schema (by setting it to the ldb), and after all changes are commited, we can refresh the schema cache so we have a brand new, full-featured Schema cache
* ldb:pyldb.h - revert to the previous header behaviourMatthias Dieter Wallnöfer2010-12-121-1/+3
| | | | "ldb_private.h" is private and therefore might not always be available.
* s4:libcli/finddc.h - fix header dependanciesMatthias Dieter Wallnöfer2010-12-122-11/+1
| | | | And optimise includes
* s4:libnet/py_net.c - add checks for OOM conditionsMatthias Dieter Wallnöfer2010-12-121-0/+13
|
* s4:libnet_samsync_ldb.c - simplify a talloc steal callMatthias Dieter Wallnöfer2010-12-071-2/+1
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Tue Dec 7 16:05:30 CET 2010 on sn-devel-104
* s4:libnet_samsync_ldb.c - introduce an error message on failed domain ↵Matthias Dieter Wallnöfer2010-12-071-3/+6
| | | | synchronisation
* s4:libnet/libnet_samsync_ldb,c - move away from "samdb_msg_add_string" when ↵Matthias Dieter Wallnöfer2010-12-031-2/+10
| | | | | | possible Also here we can move to "ldb_msg_add_string" without any impact!
* s4:libnet_JoinADSDomain - move away from "samdb_msg_add_string"Matthias Dieter Wallnöfer2010-12-031-7/+7
| | | | | These calls can be substituted by "ldb_msg_add_string" without any problems - only the allocation contexts of the SPNs and the DNS hostnames have to adapted.
* s4-repl: Let dsdb_replicated_objects_convert() to accept schema from callerKamen Mazdrashki2010-12-011-0/+9
| | | | | This allows us to use schema that is different than the one set to 'ldb' to decode objects.
* s4:param/secrets.h - fix "enum netr_SchannelType" include correctlyMatthias Dieter Wallnöfer2010-11-271-1/+0
|
* s4-libnet: use the full DNS domain for CLDAP lookups if possibleAndrew Tridgell2010-11-271-1/+6
| | | | | | | | | | | many of the internal libnet interfaces use the short domain name, which leads to unreliable NBT lookups. If we are trying to look for our workgroup, then look for our DNS domain instead Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sat Nov 27 03:47:52 CET 2010 on sn-devel-104
* s4-repl: Propagate remote prefixMap in DRSUAPI data conversion functionsKamen Mazdrashki2010-11-111-1/+10
|
* s4-repl: dsdb_extended_replicated_objects_convert -> ↵Kamen Mazdrashki2010-11-111-22/+22
| | | | | | dsdb_replicated_objects_convert/ It is part of dsdb_replicated_* family of functions
* s4-repl: dsdb_extended_replicated_objects_commit -> ↵Kamen Mazdrashki2010-11-111-3/+2
| | | | | | dsdb_replicated_objects_commit It is part of dsdb_replicated_* family of functions
* s4:libnet/libnet_samsync_ldb.c - remove "userPassword" remove codeMatthias Dieter Wallnöfer2010-11-111-6/+0
| | | | | It could also be a normal attribute with a normal content, and if it's not like that then it's for sure empty.
* credentials: Lowercase library name,Jelmer Vernooij2010-11-071-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 7 01:48:44 UTC 2010 on sn-devel-104
* idl: Use DRSUAPI_ATTID_ prefix instead of DRSUAPI_ATTRIBUTE_ for ATTID valuesKamen Mazdrashki2010-10-311-12/+12
| | | | | Those values are actually ATTID values and such, they are used for ATTIDs for Attributes, Classes and Syntaxes.
* s4:libnet_join.c - only write the really essential SPNsMatthias Dieter Wallnöfer2010-10-311-8/+7
| | | | | | If we are a DC then the others are added by the "samba_spnupdate" script. This fixes bug #7614.
* s4: Remove the old perl/m4/make/mk-based build system.Jelmer Vernooij2010-10-311-18/+0
| | | | | | | | The new waf-based build system now has all the same functionality, and the old build system has been broken for quite some time. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Oct 31 02:01:44 UTC 2010 on sn-devel-104
* waf: Stop automaticaly changing dashes to underscores in library names.Jelmer Vernooij2010-10-261-1/+1
|
* waf: Remove lib prefix from libraries manually.Jelmer Vernooij2010-10-261-1/+1
|
* s4: Drop duplicate 'lib' prefix for private libraries.Jelmer Vernooij2010-10-261-2/+2
|
* s4:dsdb - use the more safe "samdb_msg_add_(u)int*" calls always where possibleMatthias Dieter Wallnöfer2010-10-241-3/+2
| | | | This should prevent all possible integer storage problems in future.
* s4: Rename SMBPASSWD to smbpasswd.Jelmer Vernooij2010-10-241-2/+2
| | | | Rename DSDB_MODULE to dsdb_module.
* s4: Rename LIBSAMBA-* to libsamba-*Jelmer Vernooij2010-10-241-2/+2
|
* s4-build: make LIBSAMBA-NET a private libraryAndrew Tridgell2010-10-211-2/+3
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:"util_ldb" - remove some really unused dependanciesMatthias Dieter Wallnöfer2010-10-181-1/+0
|
* Revert "s4:remove "util_ldb" submodule and integrate the three gendb_* calls ↵Matthias Dieter Wallnöfer2010-10-172-0/+2
| | | | | | | | | | | | 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
* s4:remove "util_ldb" submodule and integrate the three gendb_* calls in ↵Matthias Dieter Wallnöfer2010-10-172-2/+0
| | | | | | | | | "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
* s4:dsdb - fix unsigned integer save problems using the "%u" specifierMatthias Dieter Wallnöfer2010-10-162-4/+6
| | | | | | | | | | | | | | | | | | 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.
* s4:libnet_samsync_ldb.c - use LDB result constantsMatthias Dieter Wallnöfer2010-10-151-15/+15
|