summaryrefslogtreecommitdiffstats
path: root/source/include/passdb.h
Commit message (Collapse)AuthorAgeFilesLines
* r6367: Slim down pdb_interface.c a bit. next_entry and search_end are functionVolker Lendecke2005-04-181-10/+3
| | | | | | | | pointers now. Yes, Jeremy, this is about re-inventing C++... :-) Volker
* r6351: This is quite a large and intrusive patch, but there are not many ↵Volker Lendecke2005-04-151-34/+52
| | | | | | | | | | | | | | | | pieces that can be taken out of it, so I decided to commit this in one lump. It changes the passdb enumerating functions to use ldap paged results where possible. In particular the samr calls querydispinfo, enumdomusers and friends have undergone significant internal changes. I have tested this extensively with rpcclient and a bit with usrmgr.exe. More tests and the merge to trunk will follow later. The code is based on a first implementation by Günther Deschner, but has evolved quite a bit since then. Volker
* r6277: This implements a new caching API for enumerating the pdb elements. It isVolker Lendecke2005-04-101-0/+23
| | | | | | | | | | | | | | | | | | | | | modeled after query_displayinfo and should hide the differences between users, groups and aliases while allowing a cache analog load_sampw_entries: struct pdb_search *pdb_search_users(uint16 acct_flags); struct pdb_search *pdb_search_groups(void); struct pdb_search *pdb_search_aliases(const DOM_SID *sid); uint32 pdb_search_entries(struct pdb_search *search, uint32 start_idx, uint32 max_entries, struct samr_displayentry **result); void pdb_search_destroy(struct pdb_search *search); Why this API? Eventually we will need to apply the work gd has started on enumerating users with paged ldap searches to groups and aliases. Before doing that I want to clean up the search routines we have. The sample application (more to follow) is 'net maxrid'. Volker
* r6092: This much const causes the compiler on Fedora Core 2Jeremy Allison2005-03-281-2/+2
| | | | | to throw up. Jeremy.
* r6080: Port some of the non-critical changes from HEAD to 3_0. The main one ↵Volker Lendecke2005-03-271-5/+10
| | | | | | | | is the change in pdb_enum_alias_memberships to match samr.idl a bit closer. Volker
* r5965: Apply Volker's patch for "ldapsam trusted = yes" for ↵Jim McDonough2005-03-221-0/+15
| | | | | | samr_lookup_rids. Gives us again up to ~6x improvement on group membership lookups.
* r5655: Added support for Novell NDS universal password. Code donated byJeremy Allison2005-03-051-1/+5
| | | | | | | | Vince Brimhall <vbrimhall@novell.com> - slight tidyup by me to use Samba conventions. Vince - thanks a *lot* for this code - please test to make sure I haven't messed anything up. Jeremy.
* r5467: Optimize _samr_query_groupmem with LDAP backend for large domains.Volker Lendecke2005-02-201-0/+12
| | | | | | | | | | Could someone else please look at this patch, verifying that I did not break the ldapsam:trusted = False fallback to the old behaviour? It works fine for me, but you never know. You're certainly free to review the new code as well :-) Thanks, Volker
* r5349: After talking with Jerry, reverted the addition of account policies toGünther Deschner2005-02-121-12/+0
| | | | | | passdb in 3_0 (they are still in trunk). Guenther
* r4932: Forgot to increase version with the account-policy-commit.Günther Deschner2005-01-221-1/+1
| | | | Guenther
* r4925: Migrate Account Policies to passdb (esp. replicating ldapsam).Günther Deschner2005-01-221-0/+12
| | | | | | | | Does automated migration from account_policy.tdb v1 and v2 and offers a pdbedit-Migration interface. Jerry, please feel free to revert that if you have other plans. Guenther
* r4847: Hand over a acb_mask to pdb_setsampwent in load_sampwd_entries(). Günther Deschner2005-01-191-3/+3
| | | | | | | | | | | | | | | | | This allows the ldap-backend to search much more effeciently. Machines will be searched in the ldap_machine_suffix and users in the ldap_users_suffix. (Note that we already use the ldap_group_suffix in ldapsam_setsamgrent for quite some time). Using the specific ldap-bases becomes notably important in large domains: On my testmachine "net rpc trustdom list" has to search through 40k accounts just to list 3 interdomain-trust-accounts, similiar effects show up the non-user query_dispinfo-calls, etc. Also renamed all_machines to only_machines in load_sampwd_entries() since that reflects better what is really meant. Guenther
* r3705: Nobody has commented, so I'll take this as an ack...Volker Lendecke2004-11-121-0/+12
| | | | | | | | | | | | | | | | | abartlet, I'd like to ask you to take a severe look at this! We have solved the problem to find the global groups a user is in twice: Once in auth_util.c and another time for the corresponding samr call. The attached patch unifies these and sends them through the passdb backend (new function pdb_enum_group_memberships). Thus it gives pdb_ldap.c the chance to further optimize the corresponding call if the samba and posix accounts are unified by issuing a specialized ldap query. The parameter to activate this ldapsam behaviour is ldapsam:trusted = yes Volker
* r3566: Completely replace the queryuseraliases call. The previous ↵Volker Lendecke2004-11-051-3/+5
| | | | | | | | | | | | | | implementation does not exactly match what you would expect. XP workstations during login actually do this, so we should better become a bit more correct. The LDAP query issued is not really fully optimal, but it is a lot faster and more correct than what was there before. The change in passdb.h makes it possible that queryuseraliases is done with a single ldap query. Volker
* r1388: Adding password history code for ldap backend, based on a patch fromJeremy Allison2004-07-071-3/+5
| | | | | | | | | "Jianliang Lu" <j.lu@tiesse.com>. Multi-string attribute changed to linearised pstring due to ordering issues. A few other changes to fix race conditions. I will add the tdb backend code next. This code compiles but has not yet been tested with password history policy set to greater than zero. Targeted for 3.0.6. Jeremy.
* r116: volker's patch for local group and group nestingGerald Carter2004-04-071-1/+80
|
* r4: merge in the SAMBA_3_0 branch from cvsCVS Import User2004-04-041-223/+2
| | | | | | | | to checkout try this: svn co svn+ssh://svn.samba.org/home/svn/samba/branches/SAMBA_3_0 samba-3_0-work metze
* r2: import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunkCVS Import User2004-04-041-0/+573
metze