summaryrefslogtreecommitdiffstats
path: root/source/passdb/passdb.c
Commit message (Collapse)AuthorAgeFilesLines
* r22138: * Sync up with the SAMBA_3_0_25 as of svn r22132.Gerald Carter2007-04-091-1/+1
| | | | | * Set VERSION to 3.0.25rc1 * Update release notes.
* r21585: Start syncing the monster that will become 3.0.25pre1Gerald Carter2007-02-281-18/+27
| | | | | | | | Still todo: * release notes * few minor outstanding patches * additional idmap man pages
* r17917: don't set primary group sid fixGerald Carter2006-08-291-1/+7
|
* r17727: Start pulling in changes for 3.0.23cGerald Carter2006-08-231-1/+1
|
* r16674: After removing each individual post-3.0.23rc3 change:Gerald Carter2006-06-291-0/+1
| | | | | | | | | | | | | | This pulls is what I considered safe fixes from SAMBA_3_0. This boiled down to either Klocwork fixes or obvious compiler warning fixes. I did not include any changes to fnuction signatures not the version change to the passdb API. Also pulled in the 3 nmbd fixes requested by Jeremy and the wildcard delete fix. This code will sit for a few days in the cooker and then become 3.0.23 if nothing blows up. I don't care how many more compile warning fixes people throw into SAMBA_3_0.
* r16254: pulling klocwork fixes for 3.0.23rc3 (current up to r16251)Gerald Carter2006-06-151-25/+16
|
* r16104: Set version to 3.0.23rc2Gerald Carter2006-06-081-0/+1
| | | | | Bring release tree up to current 3.0 tree (svn merge -r15845:16103 $SVNURL/branches/SAMBA_3_0)
* r15837: starting sync up for 3.0.23rc1 (in sync with SAMBA_3_0 r15822)Gerald Carter2006-05-231-0/+3
|
* r14457: Add a few more special cases for RID 513 in the samr code.Gerald Carter2006-03-151-0/+12
| | | | | | Now that I know what all the requirements for this group are I can generalize the code some more and make it cleaner. But at least this is working with lusrmgr.msc on XP and 2k now.
* r13776: Merge in the editposix ldapsam optimizationSimo Sorce2006-03-011-1/+1
|
* r13711: * Correctly handle acb_info/acct_flags as uint32 not as uint16. Günther Deschner2006-02-271-24/+25
| | | | | | | | * Fix a couple of related parsing issues. * in the info3 reply in a samlogon, return the ACB-flags (instead of returning zero) Guenther
* r13679: Commiting the rm_primary_group.patch posted on samba-technicalGerald Carter2006-02-241-251/+125
| | | | | | | | | | * ignore the primary group SID attribute from struct samu* * generate the primary group SID strictlky from the Unix primary group when dealing with passdb users * Fix memory leak in original patch caused by failing to free a talloc * * add wrapper around samu_set_unix() to prevent exposing the create BOOL to callers. Wrappers are samu_set_unix() and samu-allic_rid_unix()
* r13601: * Remove unused code from pdb_ldap.cGerald Carter2006-02-211-1/+6
| | | | | | | | | * Add a 'struct passwd *' to the struct samu for later reference (I know this may be controversial but its easily reverted which is is why I'm checking this is as a seaparate patch before I get too deep). * Remove unix_homedir from struct samu {} and update the pdb wrapper functions associated with it.
* r13600: Move functions local to tdbsam to pdb_tdb.cGerald Carter2006-02-211-384/+9
|
* r13593: consolidate pdb_set_sam_sids() into samu_set_unix() whichGerald Carter2006-02-211-116/+84
| | | | was the only place it was called from.
* r13590: * replace all pdb_init_sam[_talloc]() calls with samu_new()Gerald Carter2006-02-211-92/+28
| | | | * replace all pdb_{init,fill}_sam_pw() calls with samu_set_unix()
* r13576: This is the beginnings of moving the SAM_ACCOUNT data structure Gerald Carter2006-02-201-209/+134
| | | | | | | | | | | | | | | | | | | | | | | to make full use of the new talloc() interface. Discussed with Volker and Jeremy. * remove the internal mem_ctx and simply use the talloc() structure as the context. * replace the internal free_fn() with a talloc_destructor() function * remove the unnecessary private nested structure * rename SAM_ACCOUNT to 'struct samu' to indicate the current an upcoming changes. Groups will most likely be replaced with a 'struct samg' in the future. Note that there are now passbd API changes. And for the most part, the wrapper functions remain the same. While this code has been tested on tdb and ldap based Samba PDC's as well as Samba member servers, there are probably still some bugs. The code also needs more testing under valgrind to ensure it's not leaking memory. But it's a start......
* r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2006-02-201-1/+1
| | | | macro which sets the freed pointer to NULL.
* r13545: A patch which I think it's time has come. VOlker, we can talk aboutGerald Carter2006-02-171-7/+15
| | | | | | | | | | | | | | | | this more but it gets around the primary group issue. * don't map a SID to a name from the group mapping code if the map doesn't have a valid gid. This is only an issue in a tdb setup * Always allow S-1-$DOMAIN-513 to resolve (just like Windows) * if we cannot resolve a users primary GID to a SID, then set it to S-1-$DOMAIN-513 * Ignore the primary group SID inside pdb_enum_group_memberships(). Only look at the Unix group membersip. Jeremy, this fixes a fresh install startup for smbd as far as my tests are concerned.
* r13494: Merge the stuff I've done in head the last days.Volker Lendecke2006-02-131-83/+43
| | | | Volker
* r13460: by popular demand....Gerald Carter2006-02-111-1/+5
| | | | | | | | | * remove pdb_context data structure * set default group for DOMAIN_RID_GUEST user as RID 513 (just like Windows) * Allow RID 513 to resolve to always resolve to a name * Remove auto mapping of guest account primary group given the previous 2 changes
* r13316: Let the carnage begin....Gerald Carter2006-02-031-443/+178
| | | | Sync with trunk as off r13315
* r12913: missed merge to fix BUG 3391; ensure we can lookup account policiesGerald Carter2006-01-131-2/+5
|
* r12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")Jeremy Allison2005-12-271-4/+4
| | | | | | and replace calls to isupper/islower/toupper/tolower with ASCII equivalents (mapping into _w variants). Jeremy.
* r12163: Change lookup_sid and lookup_name to return const char * instead of ↵Volker Lendecke2005-12-101-1/+1
| | | | | | | | char *, use a temporary talloc_ctx for clarity. Volker
* r12051: Merge across the lookup_name and lookup_sid work. Lets see how the ↵Volker Lendecke2005-12-031-59/+76
| | | | | | | | build farm reacts :-) Volker
* r11999: Re-add "passdb expand explicit".Volker Lendecke2005-12-011-3/+13
| | | | | | | We came to the conclusion that changing the default is something that has to wait one or two more releases, but it will happen one way or the other. Volker
* r11947: Back out passdb:expand_explicit until we find consensus. I'll file ↵Volker Lendecke2005-11-281-14/+3
| | | | | | | | this as a bugzilla entry. Volker
* r11920: Rename local_lookup_rid to lookup_global_sam_rid, add ↵Volker Lendecke2005-11-261-15/+21
| | | | | | lookup_builtin_rid. Volker
* r11919: The generic mappings in srv_samr_nt.c are only used there -- make themVolker Lendecke2005-11-261-25/+14
| | | | | | | | | static. One long overdue simplification: Change local_lookup_sid to local_lookup_rid its responsible for "our" domain only, in fact it checked for it. Volker
* r11914: After talking to Jeremy, implement passdb:expand_explicit with a ↵Volker Lendecke2005-11-261-3/+14
| | | | | | | | | | | | default of no. This changes our default behaviour. Sorry, Ingo, this *is* a bug that needs fixing. Jerry, you might want to put a marker into the WHATSNEW.txt when this is due. Volker
* r10656: BIG merge from trunk. Features not copied overGerald Carter2005-09-301-8/+8
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2005-06-241-38/+38
| | | | | | safe for using our headers and linking with C++ modules. Stops us from using C++ reserved keywords in our code. Jeremy
* r7730: Some mergesVolker Lendecke2005-06-181-22/+4
|
* r6774: Fix 2 memleaksVolker Lendecke2005-05-131-1/+2
|
* r5951: gotta love that SGI compiler :-) (thanks Jason)Gerald Carter2005-03-221-1/+1
|
* r5421: Fix a memleakVolker Lendecke2005-02-161-1/+3
|
* r5349: After talking with Jerry, reverted the addition of account policies toGünther Deschner2005-02-121-8/+8
| | | | | | passdb in 3_0 (they are still in trunk). Guenther
* r5337: BUG 1439: make sure to initialize pointer to prevent invalide ↵Gerald Carter2005-02-111-42/+42
| | | | free()'s on exit
* r5058: Due to the fragileness how windows reacts on unmapped sids sometimes,Günther Deschner2005-01-281-0/+6
| | | | | | don't leave administator-sid unmapped. Simply return "Administrator" Guenther
* r4988: After speaking with Jerry, remove old lp_admin_users toGünther Deschner2005-01-251-14/+0
| | | | | | administrator-sid mapping completely. Guenther
* r4964: Fix our lsa lookupsid $OURDOMAINSID-500.Günther Deschner2005-01-241-14/+15
| | | | | | | | Give the admin-user (rid 500) a chance to be found in passdb, not returning the (possibly obscure) first entry of "admin users" before that. Guenther
* r4925: Migrate Account Policies to passdb (esp. replicating ldapsam).Günther Deschner2005-01-221-8/+8
| | | | | | | | 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
* r4860: fix silly limitation in ldapsam and tdbsam. Expand variables in the ↵Gerald Carter2005-01-191-10/+16
| | | | profile path, logon home and logon script values
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2004-12-071-3/+3
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r3875: Allow to look up at least or own sid in _lsa_lookup_sids.Günther Deschner2004-11-191-0/+8
| | | | | | | This fixes Bugzilla #1076 and Exchange 5.5 SP4 can then be finally installed on NT4 in a samba-controlled domain. Guenther
* r3563: During a typical logon a modern workstation makes a lot of anonymous ↵Volker Lendecke2004-11-051-0/+22
| | | | | | | | | | | session setups on its way to open a pipe. This gets rid of many round-trips to the LDAP server during logon by setting up the server_info_guest once and not asking the LDAP server and nss every time. Make sure that the ldap connection is reopened in the child. (I did not look at the sql backends.) Volker
* r1906: Revert lukeh's change for primary uid/gid change. This creates a ↵Volker Lendecke2004-08-191-19/+7
| | | | | | | | | recursion loop between uid_to_sid -> getsampwnam -> uid_to_sid. It needs further inspection. Volker
* r1871: Patch from Luke Howard <lukeh@PADL.COM> to correctly use Jeremy Allison2004-08-171-7/+19
| | | | | uid_to_sid() and gid_to_sid() in pdb_set_sam_sids(). Jeremy.
* r1869: Rename "fallback_XXXX" mapping to "algorithmic_XXX" asJeremy Allison2004-08-171-33/+26
| | | | | | that's what it actually does, and "fallback_" is just confusing. Jeremy.