summaryrefslogtreecommitdiffstats
path: root/source/utils/pdbedit.c
Commit message (Collapse)AuthorAgeFilesLines
* r23198: cherry pick more patches from SAMBA_3_0Gerald Carter2007-05-291-0/+4
|
* r23005: If we're running on a system where time_t is 8 bytesJeremy Allison2007-05-181-2/+2
| | | | | | | | we have to take care to preserve the "special" values for Windows of 0x80000000 and 0x7FFFFFFF when casting between time_t and uint32. Add conversion functions (and use them). Jeremy.
* r22861: Janitor for James Peach for rev. 22828.Jeremy Allison2007-05-141-1/+1
| | | | | | "Fix typo. Bugzilla #4589." Please keep all branches in order. Jeremy.
* r21755: Memory leak fixes from Zack Kirsch <zack.kirsch@isilon.com>.Jeremy Allison2007-03-071-0/+1
| | | | Jeremy.
* r19978: More "net sam policy" improvements. Thanks to Karolin Seeger ↵Volker Lendecke2006-12-011-5/+11
| | | | | | <ks@sernet.de> Volker
* r19798: reducing some diffs...bringing over ntlm_auth changesGerald Carter2006-11-191-88/+9
|
* r19057: backout 18726, 18748, 18754, 18758 from 3.0.23 until further testing inJim McDonough2006-10-031-3/+76
| | | | SAMBA_3_0. password times go back to previous functionality, for now.
* r18748: Eliminate set of computed time valuesJim McDonough2006-09-201-76/+3
|
* r16256: sync up to r16255 from SAMBA_3_0Gerald Carter2006-06-151-0/+10
|
* r14577: BUG Fixes:Gerald Carter2006-03-201-13/+199
| | | | | | * Add back in the import/export support to pdbedit * Fix segv in pam_smbpass * Cleanup some error paths in pdb_tdb and pdb_interface
* r14062: Forgot those in the uint16/32 acb_info switch.Günther Deschner2006-03-091-2/+2
| | | | Guenther
* r13679: Commiting the rm_primary_group.patch posted on samba-technicalGerald Carter2006-02-241-59/+24
| | | | | | | | | | * 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()
* r13607: Fix compile - don't ref auto variable in a structure initialization.Jeremy Allison2006-02-221-1/+1
| | | | | Fix from Richard Bollinger <rabollinger@gmail.com>. Jeremy.
* r13590: * replace all pdb_init_sam[_talloc]() calls with samu_new()Gerald Carter2006-02-211-12/+33
| | | | * 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-25/+25
| | | | | | | | | | | | | | | | | | | | | | | 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-2/+2
| | | | macro which sets the freed pointer to NULL.
* r13525: This is only a cleanup to have the memset() and SAFE_FREE() only oneLars Müller2006-02-161-8/+9
| | | | | | | time in the code. Even if we now have an additional if statement after the free I prefer this solution in opposite to the duplicated code we had before.
* r13524: Add -t|--password-from-stdin option to pdbedit as we had with Samba 2.2.Lars Müller2006-02-161-10/+10
| | | | | | | | | | This fixes bug #1386. The initial changes had been made by Carsten Höger <choeger at open-xhange dot com> for Samba 2.2 while being at SuSE. *sigh* To not duplicate code from smbpasswd in pdbedit stdin_new_passwd() and get_pass() are moved from smbpasswd to utils/passwd_util.c.
* r13517: Fix typo -- thanks to Karolin Seeger <ks@sernet.de>Volker Lendecke2006-02-151-1/+1
|
* r13460: by popular demand....Gerald Carter2006-02-111-159/+26
| | | | | | | | | * 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-5/+5
| | | | Sync with trunk as off r13315
* r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman2006-01-281-1/+1
| | | | | | | | | | | | lp_load() could not be called multiple times to modify parameter settings based on reading from multiple configuration settings. Each time, it initialized all of the settings back to their defaults before reading the specified configuration file. This patch adds a parameter to lp_load() specifying whether the settings should be initialized. It does, however, still force the settings to be initialized the first time, even if the request was to not initialize them. (Not doing so could wreak havoc due to uninitialized values.)
* r13136: Fix handling user sid and user gidSimo Sorce2006-01-251-2/+4
|
* r12555: Fix more load_case_table swegfaults. Arggg.Jeremy Allison2005-12-281-0/+2
| | | | | What I'd give for a global constructor... Jeremy.
* r12398: adding Guenther's account policy migration fixGerald Carter2005-12-201-1/+50
|
* r11327: Make user domain settable by pdbeditVolker Lendecke2005-10-271-2/+9
|
* r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4Jeremy Allison2005-10-181-1/+1
| | | | | x86_64 box. Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2005-09-301-9/+37
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r9272: Patch for fixing unused variables warning from Jason Mader. Fixes Tim Potter2005-08-121-6/+6
| | | | bugzilla #2984.
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2005-06-241-2/+2
| | | | | | safe for using our headers and linking with C++ modules. Stops us from using C++ reserved keywords in our code. Jeremy
* r5909: Remove some unecessary casts. Patch from Jason Mader for bugzill #2468.Tim Potter2005-03-201-1/+1
|
* r5862: And some more constVolker Lendecke2005-03-171-1/+1
|
* r5790: Added ability to set account description.John Terpstra2005-03-151-2/+8
|
* r5349: After talking with Jerry, reverted the addition of account policies toGünther Deschner2005-02-121-35/+7
| | | | | | passdb in 3_0 (they are still in trunk). Guenther
* r4925: Migrate Account Policies to passdb (esp. replicating ldapsam).Günther Deschner2005-01-221-7/+35
| | | | | | | | 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
* r4921: Typo.Jeremy Allison2005-01-221-2/+2
|
* r4917: Merge some of Derrell.Lipman@UnwiredUniverse.com obvious fixes.Jeremy Allison2005-01-221-2/+2
| | | | | Added text explaining units in pdbedit time fields. Jeremy.
* 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
* r4153: port from trunk of pdbedit changesSimo Sorce2004-12-111-7/+82
|
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2004-12-071-2/+2
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r1812: Fix from Richard Renard <rrenard@idealx.com> to be able to resetJeremy Allison2004-08-131-3/+30
| | | | | a users logon hours restrictions. Jeremy.
* r1537: Fix to stop printing accounts from resetting the bas passwordJeremy Allison2004-07-171-15/+10
| | | | | | and account lockout flags. This is set when an account is updated only from smbd or pdbedit. Bug found by "Dunn, Drew A." <Drew.Dunn@jhuapl.edu>. Jeremy.
* r1478: Useful patch from Tom Alsberg <alsbergt@cs.huji.ac.il>, to export a ↵Simo Sorce2004-07-131-8/+24
| | | | single user from a backend.
* r1412: Fix password history list in tdbsam. Fix some memory leaks. AddJeremy Allison2004-07-081-0/+5
| | | | | my (C) to a header file that was at least 50% mine :-). Jeremy.
* r4: merge in the SAMBA_3_0 branch from cvsCVS Import User2004-04-041-320/+4
| | | | | | | | 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/+1179
metze