summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/common
Commit message (Collapse)AuthorAgeFilesLines
* s4:sites - get the server site (name) from DSDBMatthias Dieter Wallnöfer2009-10-181-0/+10
|
* s4-dsdb: added samdb_rodc() and samdb_ntds_options()Andrew Tridgell2009-10-151-0/+50
| | | | | Later we will need to make samdb_rodc() look in the database, but for now we should at least have the function in a central place
* s4:provision Remove all references to samba4LocalDomainAndrew Bartlett2009-10-121-1/+1
| | | | | | | | | This was a bad idea all along, as Simo said at the time. With the full MS schema and enforcement of it, it is an even worse idea. This fixes the provision of the member server in 'make test' Andrew Bartlett
* s3/s4 - Adapt the IDL changes on various locationsMatthias Dieter Wallnöfer2009-10-081-11/+14
|
* s4:samdb_set_password - Return the maximum password age when requested (not ↵Matthias Dieter Wallnöfer2009-10-021-2/+3
| | | | the minimum one)
* s4:samdb_set_password - cosmetic fixesMatthias Dieter Wallnöfer2009-10-021-44/+58
|
* s4:dsdb/common/sidmap - RemoveMatthias Dieter Wallnöfer2009-10-021-612/+0
| | | | | As metze pointed out - this seems to be completely dead code. I too didn't find any dependencies in other code parts. Therefore remove it.
* s4:dsdb/common/util - remove introduced "samdb_is_capable_dc" callMatthias Dieter Wallnöfer2009-09-301-57/+0
| | | | | | I came up with a better solution which is invoked when we try to join a domain as a DC (in file "libnet_become_dc.c"). Consider a following commit for this patch.
* s4-dsdb: ask for an extended DN in dsdb_find_dn_by_guid()Andrew Tridgell2009-09-281-0/+5
|
* s4-dsdb: make dsdb_search_dn_with_deleted public for repl_meta_data moduleAndrew Tridgell2009-09-281-5/+5
|
* s4-drs: add SHOW_DELETED control on dsdb utility callsAndrew Tridgell2009-09-241-2/+60
| | | | | The dsdb_find_dn_by_guid() and dsdb_find_sid_by_dn() are using by the DRS server call getncchanges on objects that may be deleted.
* s4-dsdb: added dsdb_find_sid_by_dn()Andrew Tridgell2009-09-231-0/+30
|
* s4-dsdb: fixed a printf format warningAndrew Tridgell2009-09-211-1/+1
|
* s4:dsdb/common/util - Check for the right forest/domain function levelMatthias Dieter Wallnöfer2009-09-201-0/+57
| | | | | | | This adds a function which performs the check for the supported forest and domain function levels. On an unsuccessful result a textual error message can be created (parameter "errmsg" != NULL) which gives hints for the user to help him fixing the issue.
* Move replmd_drsuapi_DsReplicaCursor2_compare to a common place.Anatoliy Atanasov2009-09-191-0/+6
|
* s4-dsdb: treat uSNHighest as 0 if @REPLCHANGED doesn't existAndrew Tridgell2009-09-161-0/+8
| | | | When a partition is first created it still needs a uSNHighest value
* s4-dsdb: added dsdb_load_partition_usn and dsdb_save_partition_usnAndrew Tridgell2009-09-131-0/+146
| | | | | These are used to load/save the per-partition uSN values managed by the repl_meta_data module
* s4-kcc: we should only add to the repsFrom if it doesn't already existAndrew Tridgell2009-09-121-0/+111
| | | | | | If we already have a repsFrom for a particular DC and naming context then we should not overwrite it, as it contains info on what replication we've already done
* s4:dsdb/common/util.c - Copy parameters to prevent segfaultsMatthias Dieter Wallnöfer2009-09-061-3/+8
| | | | | The parameters "lmNewHash" and/or "ntNewHash" could be NULL and when we perform write operations on them (look below in the code) we could get SIGSEGVs!
* s4:dsdb/common/util - Indentation fixesMatthias Dieter Wallnöfer2009-09-061-4/+5
|
* s4: fixed a missing NULL termination in a attribute list passed to ldb_searchAndrew Tridgell2009-09-041-1/+1
|
* added dsdb_find_guid_by_dn()Andrew Tridgell2009-09-031-1/+21
| | | | This will be used by the linked_attribute module
* added dsdb_find_dn_by_guid()Andrew Tridgell2009-09-031-0/+78
| | | | | | This came from the linked_attributes module, but now the repl_meta_data module needs the same functionality, so move it to a common routine.
* s4: Remove obsolete "samdb_password_quality_ok" function (it's just a ↵Matthias Dieter Wallnöfer2009-08-141-10/+1
| | | | one-line wrapper)
* Return infinite time for last last logoff when last logoff = 0Matthieu Patou2009-08-031-0/+16
|
* libds: merge the UF<->ACB flag mapping functions.Günther Deschner2009-07-133-149/+4
| | | | Guenther
* libds: share UF_ flags between samba3 and 4.Günther Deschner2009-07-134-140/+3
| | | | Guenther
* Add constAndrew Bartlett2009-07-091-2/+2
|
* Fix some nonempty blank linesVolker Lendecke2009-06-061-41/+37
|
* fixed interpretation of ACB_PWNOTREQAndrew Tridgell2009-05-251-1/+6
| | | | | | This bit actually means that we should ignore the minimum password length field for this user. It doesn't mean that the password should be seen as empty
* s4: Use same function signature for convert_* as s3.Jelmer Vernooij2009-03-011-1/+1
|
* Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij2009-03-011-1/+1
| | | | consistency with Samba 3.
* Allow overriding the function that ships the request in the Samba 3Jelmer Vernooij2009-01-211-1/+1
| | | | client code.
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* s4-dsdb: add samdb_msg_add_parameters.Günther Deschner2008-11-101-0/+11
| | | | Guenther
* s4-dsdb: add samdb_result_parameters.Günther Deschner2008-11-101-0/+22
| | | | Guenther
* Remove iconv_convenience argument from convert_string{,talloc}() butJelmer Vernooij2008-10-241-1/+1
| | | | make them wrappers around convert_string{,talloc}_convenience().
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-0/+2
| | | | remove some unused functions.
* Fix errrors in new password handling code found by RPC-SAMR.Andrew Bartlett2008-10-171-1/+1
| | | | | | | | I'm very glad we have such a comprehensive testsuite for the SAMR password change process, as it makes this a much easier task to get right. Andrew Bartlett
* Create a 'straight paper path' for UTF16 passwords.Andrew Bartlett2008-10-161-37/+51
| | | | | | | | | | | | | | | | | | | | | This uses a virtual attribute 'clearTextPassword' (name chosen to match references in MS-SAMR) that contains the length-limited blob containing an allegidly UTF16 password. This ensures we do no validation or filtering of the password before we get a chance to MD4 it. We can then do the required munging into UTF8, and in future implement the rules Microsoft has provided us with for invalid inputs. All layers in the process now deal with the strings as length-limited inputs, incluing the krb5 string2key calls. This commit also includes a small change to samdb_result_passwords() to ensure that LM passwords are not returned to the application logic if LM authentication is disabled. The objectClass module has been modified to allow the clearTextPassword attribute to pass down the stack. Andrew Bartlett
* Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij2008-10-121-1/+1
|
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-112-2/+2
|
* Merge ldb_search() and ldb_search_exp_fmt() into a simgle function.Simo Sorce2008-09-231-17/+12
| | | | | The previous ldb_search() interface made it way too easy to leak results, and being able to use a printf-like expression turns to be really useful.
* Add definition for SYSTEM_FLAG_ATTR_IS_RDNAndrew Bartlett2008-09-081-0/+1
| | | | (This used to be commit 36f727c4a73ffc8634692b0c5645343cb414de93)
* Add schema search flags from MS-ADTSAndrew Bartlett2008-08-201-0/+11
| | | | (This used to be commit 731d9e569a474da27014737e0805ae712366357d)
* libnet_become_dc: send msDS_Behavior_Version == 3 (win2k8) in DsAddEntryMichael Adam2008-07-231-0/+1
| | | | | | | | instead of version 2 (win2k3). This makes the NET-API-BECOME-DC test work against windows 2003 and 2008. Michael (This used to be commit a7bfa1fb1bc6fb8e412990b7ff4c3ce9bc55099d)
* rename sambaPassword -> userPassword.Andrew Bartlett2008-07-121-2/+2
| | | | | | | | | | | This attribute is used in a very similar way (virtual attribute updating the password) in AD on Win2003, so eliminate the difference. This should not cause a problem for on-disk passwords, as by default we do not store the plaintext at all. Andrew Bartlett (This used to be commit 1cf0d751493b709ef6b2234ec8847a7499f48ab3)
* dsdb: eliminate disards qualifyer compile warning.Michael Adam2008-07-091-1/+1
| | | | | Michael (This used to be commit 3b0917dbc5399dc6835b523d762b244bdcf45b79)
* Make up the right dependencies now that ldb depends on libeventsSimo Sorce2008-06-141-0/+1
| | | | (This used to be commit 3b8eec7ca334528cad3cdcd5e3fc5ee555d8d0e0)
* Specify event_context to ldb_wrap_connect explicitly.Jelmer Vernooij2008-04-171-2/+3
| | | | (This used to be commit b4e1ae07a284c044704322446c94351c2decff91)