summaryrefslogtreecommitdiffstats
path: root/source4/libnet
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* s4:dsdb - remove "samdb_result_uint", "samdb_result_int64", ↵Matthias Dieter Wallnöfer2010-10-152-12/+12
| | | | | | | | | "samdb_result_uint64" and "samdb_result_string" We have ldb_msg_find_attr_as_* calls which do exactly the same. Therefore this reduces only code redundancies. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* libcli/security Use common security.hAndrew Bartlett2010-10-121-1/+1
| | | | | | | | | | This includes dom_sid.h and security_token.h and will be moved to the top level shortly. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 03:35:36 UTC 2010 on sn-devel-104
* samdb: Add flags argument to samdb_connect().Jelmer Vernooij2010-10-101-1/+2
|
* s4-libnet_vampire: Remove unused self_corrected_schemaKamen Mazdrashki2010-10-101-10/+0
| | | | | Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Sun Oct 10 10:40:38 UTC 2010 on sn-devel-104
* s4-libnet_vampire use a linked list to handle schema objects pending conversionAndrew Bartlett2010-10-101-26/+33
|
* s4-vampire: Optimize Schema decoding conversionKamen Mazdrashki2010-10-101-14/+10
| | | | | memmove() is removed and I am using the beginning of the list for storage for failed objects
* s4-vampire: Initial implementation for multi-pass schema decoding from DRS dataKamen Mazdrashki2010-10-101-69/+92
| | | | | We can't decode all schema object in just one (or even two) passes when Schema tree has more levels of inheritance.
* s4-libnet_vampire: Reparent result.lp_ctx - we have already referenced itKamen Mazdrashki2010-10-051-1/+1
| | | | | which leads to warning that we are trying to steal a context with references
* Add missing dependencies for com_err.Jelmer Vernooij2010-10-051-1/+1
|
* s4-rpc: added target_principal binding handle optionAndrew Tridgell2010-10-012-2/+2
| | | | | | this allows you to specify a target SPN for a connection Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-libnet: wipe the old keytab when exportingAndrew Tridgell2010-09-301-0/+2
| | | | | | this prevents confusion with old keytab entries Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-pynet: added server keyword to Net() initialisationAndrew Tridgell2010-09-251-3/+7
| | | | | | this sets up server_address in the libnet context Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s4-libnet: added server_address option in libnet contextAndrew Tridgell2010-09-253-1/+6
| | | | | | this is used by libnet_LookupDCs Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s4-libnet_join Use header constant for 'all encryption types' in ↵Andrew Bartlett2010-09-241-4/+3
| | | | msDS-SupportedEncryptionTypes
* s4-libnet Remove libnet_samdump_keytab() and net samdump keytabAndrew Bartlett2010-09-243-133/+2
| | | | | | | | | | | There is a beter implementation of this in Samba3, and this uses functions in the credentials code that I want to remove. The same functionality is available by running 'net samsync' and 'net export keytab'. This isn't a DRS-backed utility, it only used netlogon replication. Andrew Bartlett
* s4-libnet: use the right domain name in libnet_lookupAndrew Tridgell2010-09-191-4/+1
|
* s4-pynet: return the full netlogon response from python finddcAndrew Tridgell2010-09-161-7/+8
| | | | | | this gives the caller the other server parameters Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-pyjoin: fill in the dns name in the python replication methodAndrew Tridgell2010-09-162-0/+5
| | | | | | this is needed to get the repsFrom DNS entry right Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-libnet: force IDL printing for high debug levelsAndrew Tridgell2010-09-151-0/+4
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-finddc: use NBT lookup for a 1C name if joining a short domain nameAndrew Tridgell2010-09-152-2/+5
| | | | | | | once we get the 1C lookup reply, use a CLDAP query to find the details for the server Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-pynet: added finddc callAndrew Tridgell2010-09-151-0/+45
| | | | | | this gives access to the CLDAP/DNS finddc code from python Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-libcli: change finddcs.h -> finddc.hAndrew Tridgell2010-09-151-1/+1
| | | | | | | this prevents conflicts with old generated files and we can only even return one DC with this interface. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-libnet: use finddcs_cldap() in libnet_lookupAndrew Tridgell2010-09-151-11/+17
| | | | | | | this may later be changed to do fallback to NBT as well, but for now cldap is sufficient Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-libnet: converted finddcs call to tevent_reqAndrew Tridgell2010-09-152-25/+25
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-rodc: s->schema need initialisationAndrew Tridgell2010-09-091-0/+1
| | | | this fixes a segfault in net rodc preload
* pynet: fixed ref count error on Py_NoneAndrew Tridgell2010-09-021-1/+1
| | | | | | ensure we don't run out of None ... Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
* s4-pynet: pynet depends on pyrpc_utilAndrew Tridgell2010-08-271-1/+1
|
* pyrpc: Add py_check_dcerpc_type().Jelmer Vernooij2010-08-271-8/+3
| | | | | | | This function checks whether the type of a PyObject matches a DCE/RPC Python type. Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* s4-pynet: some systems don't have Py_TYPE()Andrew Tridgell2010-08-251-0/+4
| | | | we need a better method than this ....
* s4-pynet: added replicate_init() and replicate_chunk() callsAndrew Tridgell2010-08-251-35/+134
| | | | | | | these calls allow python code to pass chunks from DRS replication calls into the code that applies the chunks to a database Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-libnet: added libnet_vampire_replicate_init()Andrew Tridgell2010-08-251-0/+17
| | | | | | this is used to setup for later calls to the replicate chunk functions Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libnet-s4: added replicate() command in pynetAndrew Tridgell2010-08-231-0/+60
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-libnet: split libnet_Vampire() into two partsAndrew Tridgell2010-08-232-26/+82
| | | | | | | | | libnet_Replicate() will do just the replication portion of libnet_Vampire(). This will be used by the RODC join, where the join part of the operation happens in python, and behaves quite differently to the libnet_Join() code. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-libnet: show the DN when DsAddEntry() failsAndrew Tridgell2010-08-231-1/+2
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-libnet: added join type constants to python interfaceAndrew Tridgell2010-08-231-0/+4
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>