summaryrefslogtreecommitdiffstats
path: root/source4/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix crash when no subkeys exist. Fix writing outside of buffer error by regf ↵wilco@baanhofman.nl2010-09-191-2/+13
| | | | | | backend. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Add python bindings for open_hive function to be able to load REGF files.wilco@baanhofman.nl2010-09-191-4/+43
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4-irpc: Don't install endtime-timer in case timeout is INFINITE for the callKamen Mazdrashki2010-09-161-3/+6
|
* s4-irpc: Add value for "infinite" timeout for IRPC callsKamen Mazdrashki2010-09-161-1/+3
|
* s4: fixed some printf format errorsAndrew Tridgell2010-09-152-2/+2
|
* s4-messaging: add support for no_reply in irpc messagesAndrew Tridgell2010-09-152-0/+8
| | | | | | | | | | | | It can be useful for a irpc message to be one-way, where the client sends a messages and the server does not reply. This will be used for things like a triger message from an auth context to the drepl server to tell it to try a REPL_SECRET on a user in a RODC. Previously we've used raw messaging for messages that have no reply, but that doesn't allow us to use messages described by IDL Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:SID handling - always encode the SID using "ldap_encode_ndr_dom_sid" for ↵Matthias Dieter Wallnöfer2010-09-131-2/+5
| | | | | | LDAP filters This makes also lookups through special backends as "samba3sam" work.
* ldb:tools/cmdline.c - reorganise importsMatthias Dieter Wallnöfer2010-09-111-6/+2
|
* ldb:tools/cmdline.c - make a counter unsigned where appropriateMatthias Dieter Wallnöfer2010-09-111-1/+1
|
* s4:ldb_register_samba_handlers - fix up and convert result codes to LDB/LDAP ↵Matthias Dieter Wallnöfer2010-09-113-3/+3
| | | | results
* s4:lib/policy/gp_filesys.c - remove dead codeMatthias Dieter Wallnöfer2010-09-101-2/+0
| | | | Found out by Solaris cc
* pyldb: expose PyLdbDn_FromDn()Andrew Tridgell2010-09-092-18/+29
| | | | | | This is needed by the dsdb python interface Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* popt_common: Add missing dependency on libsamba-hostconfig.Jelmer Vernooij2010-09-081-3/+2
|
* s4-packet: make packet_recv_disable() a lot more efficientAndrew Tridgell2010-09-071-2/+6
| | | | | this avoids doing an epoll system call when we want to prevent receipt of packets on a socket, unless there actually is a packet to receive.
* python-ldb: allow ldb_rename to take optional control(s)Matthieu Patou2010-09-051-4/+50
|
* ldb: Add missing aliases for ldb_ildap.Jelmer Vernooij2010-09-041-0/+1
|
* s4:lib/messaging: implement irpc_bh_set_timeoutStefan Metzmacher2010-09-041-1/+19
| | | | metze
* s4:lib/messaging: make irpc_request private and remove unused codeStefan Metzmacher2010-09-032-190/+14
| | | | metze
* s4:lib/messaging/tests: make use of irpc_binding_handle()Stefan Metzmacher2010-09-031-22/+49
| | | | metze
* s4:lib/messaging: use irpc_binding_handle() for python bindingsStefan Metzmacher2010-09-031-13/+57
| | | | metze
* s4:lib/messaging: add irpc_binding_handle_by_name() helper functionStefan Metzmacher2010-09-032-0/+36
| | | | metze
* s4:lib/messaging: add irpc dcerpc_binding_handle backendStefan Metzmacher2010-09-033-1/+289
| | | | metze
* s4:lib/messaging: move messaging prototypes from irpc.h to messaging.hStefan Metzmacher2010-09-032-28/+25
| | | | metze
* s4:lib/messaging/tests: fix some compiler warningsStefan Metzmacher2010-09-031-2/+2
| | | | metze
* pidl: Keep only a single copy of samba.dcerpc.base.ClientConnection.Jelmer Vernooij2010-09-031-1/+1
|
* s4/ldb: fix standalone buildBjörn Jacke2010-09-011-2/+6
|
* s4/ldb: use monotonic clock for time deltas in ldbtestBjörn Jacke2010-08-311-4/+4
|
* s4:lib/messaging: add some const to messaging_send()Stefan Metzmacher2010-08-302-2/+2
| | | | metze
* s4-pyregistry: use s4_event_context_init()Andrew Tridgell2010-08-231-2/+2
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-event: event_context_find() should use s4_event_context_init()Andrew Tridgell2010-08-231-1/+1
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:security Change struct security_token->sids from struct dom_sid * to ↵Andrew Bartlett2010-08-231-1/+1
| | | | | | | | | struct dom_sid This makes the structure much more like NT_USER_TOKEN in the source3/ code. (The remaining changes are that privilages still need to be merged) Andrew Bartlett
* Avoid use of Samba DTD, which requires net access.Jelmer Vernooij2010-08-224-4/+4
|
* pyldb: do type checking on the list form of ldb addAndrew Tridgell2010-08-221-0/+6
| | | | Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
* s4-ldb: added support for rodc_control in ldbAndrew Tridgell2010-08-201-0/+27
| | | | | | | this allows you to specify the RODC join control in python ldb calls or on the command line Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:security Remove use of user_sid and group_sid from struct security_tokenAndrew Bartlett2010-08-181-1/+1
| | | | This makes the structure more like Samba3's NT_USER_TOKEN
* s4-ldb: ensure element flags are zero in ldb search returnAndrew Tridgell2010-08-171-0/+2
| | | | the distinguishedName element was getting an uninitialised flags value
* s4-ldbwrap: ensure session_info in ldb opaque remains validAndrew Tridgell2010-08-171-0/+15
| | | | | | | A DRS DsBind handle can be re-used in a later connection. This implies reuse of the session_info for the connection. If the first connection is shutdown then the session_info in the sam context on the 2nd connection must remain valid.
* s4-ldb: added LDB_FLAG_INTERNAL_DISABLE_VALIDATIONAndrew Tridgell2010-08-171-0/+6
| | | | | | | | When this flag is set on an element in an add/modify request then the normal validate_ldb() call that checks the element against schema constraints is disabled Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: added LDB_FLAG_INTERNAL_MASKAndrew Tridgell2010-08-172-0/+31
| | | | | | | This ensures that internal bits for the element flags in add/modify requests are not set via the ldb API Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: use LDB_FLAG_MOD_TYPE() to extract element type from messagesAndrew Tridgell2010-08-172-1/+6
| | | | | | | | | | | | The flags field of message elements is part of a set of flags. We had LDB_FLAG_MOD_MASK for extracting the type, but it was only rarely being used (only 1 call used it correctly). This adds LDB_FLAG_MOD_MASK() to make it more obvious what is going on. This will allow us to use some of the other flags bits for internal markers on elements Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added support for LDB_CONTROL_RODC_DCPROMO_OIDAndrew Tridgell2010-08-171-0/+6
| | | | | | | | | | | | this control adds a unique msDS-SecondaryKrbTgtNumber attribute to a user object. There is some 'interesting' interaction with the rangeLower and rangeUpper attributes and this add. We don't implementat rangeLower/rangeUpper yet, but when we do we'll need an override for this control (or be careful about module ordering). Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: test the 'displayName=a,b' bugAndrew Tridgell2010-08-171-0/+6
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: fixed the ldb 'displayName=a,b' indexing bugAndrew Tridgell2010-08-171-2/+4
| | | | | | | | | the problem was the inconsistency between the key form of DNs between the itdb used for indexing and the on disk form Thanks to Matthieu Patou for finding this bug! Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-ldb: add some comments explaining the ltdb_index_idxptr() functionAndrew Tridgell2010-08-171-0/+8
| | | | | | this function copes with alignment sensitive CPUs Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-build: use @PACKAGE_VERSION@ in s4 pc.in filesAndrew Tridgell2010-08-092-2/+2
| | | | this gets replaced by vnum from the build rule
* s4-dns: fix dnsp for old buildAndrew Tridgell2010-08-051-1/+1
|
* s4-ldb: added ldif handler for the dnsRecord attributeAndrew Tridgell2010-08-053-2/+25
|
* s4-ldb: use TALLOC_CTX type instead of 'void'Kamen Mazdrashki2010-07-299-49/+49
|
* s4: Remove trailing whitespacesKamen Mazdrashki2010-07-192-13/+13
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* ldb: Mark _DEPRECATED_ ldb_msg_diff() and ldb_msg_canonicalize() functionsKamen Mazdrashki2010-07-191-2/+28
| | | | | | | | They are not quite safe to use (requires caller to steal resulting message in own context) and may lead to holding memory for too long. Signed-off-by: Andrew Bartlett <abartlet@samba.org>