summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/common
Commit message (Collapse)AuthorAgeFilesLines
* s4-dsdb: fixed dsdb_get_extended_dn_sid()Andrew Tridgell2010-08-201-1/+1
| | | | | | it should honor the component_name Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-drs: implement RODC attribute filtering overrideAndrew Tridgell2010-08-201-15/+29
| | | | | | | | When a RODC uses extended getncchanges operation DRSUAPI_EXOP_REPL_SECRET it gets an override on the ability to replicate the secret attributes. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: Use dsdb_syntax_ctx in *_drsuapi_to_ldb functionsKamen Mazdrashki2010-08-191-1/+5
|
* s4-dsdb: Use dsdb_syntax_ctx in *_ldb_to_drsuapi functionsKamen Mazdrashki2010-08-191-1/+5
|
* s4:samdb_set_password/samdb_set_password_sid - make more arguments "const"Matthias Dieter Wallnöfer2010-08-171-5/+5
|
* s4:samdb_set_password/samdb_set_password_sid - make the adaptions to support ↵Matthias Dieter Wallnöfer2010-08-171-13/+27
| | | | | | the password change control And introduce parameters to pass the old password hashes.
* s4:DSDB - rename the "DSDB_CONTROL_PASSWORD_CHANGE_OLD_PW_CHECKED_OID"Matthias Dieter Wallnöfer2010-08-171-1/+1
| | | | | Rename it to "DSDB_CONTROL_PASSWORD_CHANGE_OID". This control will afterwards contain a record with the specified old password as NT and/or LM hash.
* s4-ldb: use LDB_FLAG_MOD_TYPE() to extract element type from messagesAndrew Tridgell2010-08-171-3/+3
| | | | | | | | | | | | 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:samdb_set_password_sid - fix commentMatthias Dieter Wallnöfer2010-08-161-1/+2
| | | | Add more possible result NTSTATUS codes
* s4:samdb_set_password - fix formattingMatthias Dieter Wallnöfer2010-08-151-1/+2
| | | | (Sorry, I've overseen this)
* s4:samdb_set_password - implement the extended LDAP error code detectionMatthias Dieter Wallnöfer2010-08-151-9/+17
|
* s4:samdb_set_password - return "NT_STATUS_WRONG_PASSWORD" when a user ↵Matthias Dieter Wallnöfer2010-08-141-0/+2
| | | | | | account doesn't exist This is for the (SAMR) account detection protection mechanism.
* s4:dsdb/common/util.c - provide a call which returns the forest function levelMatthias Dieter Wallnöfer2010-08-101-2/+15
| | | | | Sooner or later we'll need this too since not all operations depend only on the current's domain function level (see the MS-ADTS docs).
* s4:dsdb/common/util.c - use LDB constants whenever possibleMatthias Dieter Wallnöfer2010-08-101-8/+8
|
* s4:dsdb/common/util.c - add a function "dsdb_add"Matthias Dieter Wallnöfer2010-08-071-0/+30
|
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-161-2/+2
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: use ldb_operr() in the dsdb codeAndrew Tridgell2010-07-072-47/+52
| | | | | | | this replaces "return LDB_ERR_OPERATIONS_ERROR" with "return ldb_operr(ldb)" in places in the dsdb code where we don't already explicitly set an error string. This should make is much easier to track down dsdb module bugs that result in an operations error.
* s4:dsdb - samdb_result_force_password_change - also when "pwdLastSet" is ↵Matthias Dieter Wallnöfer2010-07-061-3/+9
| | | | | | "-1" we shouldn't force a password change This value is set by the ADUC console.
* Implementation of self membership validated right.Nadezhda Ivanova2010-06-281-0/+31
| | | | | When this right is granted, the user can add or remove themselves from a group even if they dont have write property right.
* s4:dsdb_load_partition_usn - free the right memory context (tmp_ctx)Matthias Dieter Wallnöfer2010-06-211-2/+1
|
* s4:dsdb - add a new dsdb delete function which understands the tree delete ↵Matthias Dieter Wallnöfer2010-06-202-2/+9
| | | | control
* s4:dsdb Add control for signaling between repl_meta_data and linked_attributesAndrew Bartlett2010-06-161-0/+1
| | | | | | | | This control will allow the linked_attributes module to know if repl_meta_data has already handled the creation of forward and back links. Andrew Bartlett
* s4:dsdb Add const to dsdb_dn functions that operate on an ldb_val.Andrew Bartlett2010-06-151-2/+2
| | | | Andrew Bartlett
* s4:dsdb/common/util.c - provide a better implementation of the ↵Matthias Dieter Wallnöfer2010-06-061-28/+90
| | | | | | | "samdb_msg_add_(add/del)val" calls This supports now also coexisting add and delete message elements with the same attribute name.
* s4:dsdb_load_udv_v1 - "uint32_t" counter type fits better than "unsigned int"Matthias Dieter Wallnöfer2010-05-311-1/+1
|
* s4:dsdb/common/util.c - fix a counter variableMatthias Dieter Wallnöfer2010-05-301-1/+1
|
* s4:dsdb_enum_group_mem - use "unsigned" countersMatthias Dieter Wallnöfer2010-05-241-2/+3
| | | | | | "size_t" counters aren't really needed here (we don't check data lengths). And we save the result in a certain "num_sids" variable which is of type "unsigned".
* s4:dsdb_lookup_rids - "unsigned" counters fit better than "signed" in this caseMatthias Dieter Wallnöfer2010-05-241-2/+2
|
* s4:dsdb_add_user - check the "cn"/"account_name" length (should be >= 1)Matthias Dieter Wallnöfer2010-05-241-7/+12
| | | | | | | This needed by the "cn_name_len"-1 accesses. And use a "size_t"-typed variable for storing it (length specificators should always be stored using "size_t" variables).
* s4:samr Push most of samr_LookupRids into a helper functionAndrew Bartlett2010-05-241-0/+66
| | | | | | | | | | This is a rewrite of the lookup_rids code, using a query based on the extended DN for a clearer interface. By splitting this out, the logic is able to be shared, rather than copied, into a passdb wrapper. Andrew Bartlett
* s4:samr Push most of samr_QueryGroupMember into a helper functionAndrew Bartlett2010-05-241-0/+67
| | | | | | | | | | | This is a rewrite of the group membership lookup code, using the stored extended DNs to avoid doing the lookup into each member to find the SID By splitting this out, the logic is able to be shared, rather than copied, into a passdb wrapper. Andrew Bartlett
* s4:samr Move most of samr_CreateDomAlias into a helper functionAndrew Bartlett2010-05-241-0/+73
| | | | | | | This allows this logic to be shared, rather than copied, into a passdb wrapper. Andrew Bartlett
* s4:samr Split most of samr_CreateDomainGroup into a helper functionAndrew Bartlett2010-05-241-0/+79
| | | | | | | This allows this logic to be shared, rather than copied, into a passdb wrapper. Andrew Bartlett
* s4:samr Split the guts of samr_CreateUser2 into a helper functionAndrew Bartlett2010-05-241-0/+249
| | | | | | | This allows this logic to be shared, rather than copied, into a passdb wrapper. Andrew Bartlett
* s4:dsdb Allow a NULL search expression in dsdb_search()Andrew Bartlett2010-05-241-2/+5
| | | | | | | The NULL search expression expands to (objectClass=*), but %s expands NULL to (NULL) which doesn't parse... Andrew Bartlett
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-182-8/+6
|
* s4-rodc: Cache am_rodc flagAnatoliy Atanasov2010-05-171-0/+29
|
* s4:dsdb: fix samdb_result_logon_hours() and don't hardcode units_per_weekStefan Metzmacher2010-05-131-4/+11
| | | | metze
* s4:dsdb: cached results of samdb_rodc()Stefan Metzmacher2010-05-111-1/+29
| | | | metze
* s4:samdb_set_password - adapt it for the user password change handlingMatthias Dieter Wallnöfer2010-05-101-0/+12
| | | | Make use of the new "change old password checked" control.
* s4:samdb_set_password/samdb_set_password_sid - ReworkMatthias Dieter Wallnöfer2010-05-101-256/+134
| | | | | | | | Adapt the two functions for the restructured "password_hash" module. This means that basically all checks are now performed in the mentioned module. An exception consists in the SAMR password change calls since they need very precise NTSTATUS return codes on wrong constraints ("samr_password.c") file
* s4:dsdb/util.c - Add a new function for retrieving password change attributesMatthias Dieter Wallnöfer2010-05-101-0/+41
| | | | | | | | | This is needed since we have not only reset operations on password fields (attributes marked with REPLACE flag) but also change operations which can be performed by users itself. They have one attribute with the old value marked with the REMOVE flag and one with the new one marked with the ADD flag. This function helps to retrieve them (argument "new" is used for the new password on both reset and change).
* s4:dsdb Provide an intelegent fallback if not CN=Subnets is foundAndrew Bartlett2010-05-091-3/+7
| | | | | | | We may as well fall back rather than return NULL (which callers don't do useful things with). Andrew Bartlett
* s4/rodc: Support read-only databaseAnatoliy Atanasov2010-05-041-0/+1
| | | | | | Check on modify if we are RODC and return referral. On the ldap backend side now we pass context and ldb_modify_default_callback to propagate the referral error to the client.
* s4/rodc: Implement msDS-isRODC constructed attrAnatoliy Atanasov2010-05-031-6/+15
|
* s4/rodc: RODC FAS initial implementationAnatoliy Atanasov2010-04-291-0/+28
|
* s4/dsdb: dsdb_validate_invocation_id() should validate by objectGUIDKamen Mazdrashki2010-04-281-18/+18
| | | | | This function is used in DRSUpdateRefs() implementation where we get DSA's objectGUID rather than invocationId
* s4:dsdb/common: if we don't have the ip of the client return the server site ↵Stefan Metzmacher2010-04-271-0/+8
| | | | | | as client site metze
* s4:util - add a function which finds the matching client site using the ↵Matthias Dieter Wallnöfer2010-04-271-0/+90
| | | | | | | | | | | client address The lookup of the client site is done using the subnets in the configuration partition. If no one matches we use the Windows Server fallback mechansim. This means: if only one site is available just use it. If they're more set the output variable to "". Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-drs: removed dsdb_validate_client_flags()Andrew Tridgell2010-04-221-30/+0
| | | | | | This test is in the wrong place. We end up validating our own flags. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>