summaryrefslogtreecommitdiffstats
path: root/source/utils/pdbedit.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert pdbedit to use pdb_search_usersVolker Lendecke2007-12-261-78/+123
|
* Replace sid_string_static with sid_string_tosVolker Lendecke2007-12-151-2/+2
| | | | In utils/ I was a bit lazy...
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-2/+2
| | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy.
* Getting to the home stretch for elimination of pstrings...Jeremy Allison2007-12-031-13/+13
| | | | Jeremy.
* Fix the popt / bool issues. Some places we used BOOLJeremy Allison2007-10-191-14/+14
| | | | | | where we meant int. Fix this. Thanks to metze for pointing this out. Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-25/+25
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-testGerald (Jerry) Carter2007-10-101-2/+1
|
* r24943: Some stackframesVolker Lendecke2007-10-101-0/+3
|
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r23407: While verifying a bug I found out that for some reasonSimo Sorce2007-10-101-17/+14
| | | | | | | | | | | the code to add a machine was different then the one used to add a user, the old code led to the machine SID not being built out correctly allocationg a new RID out of the passdb but instead by using the old algorithmic method. This may easily end up in creating duplicated SID when the RID counter get close to the values built by the algorithmic method. Simo.
* r23005: If we're running on a system where time_t is 8 bytesJeremy Allison2007-10-101-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.
* r22828: Fix typo. Bugzilla #4589.James Peach2007-10-101-1/+1
|
* r21962: Make pdbedit use the configfile specified by -sVolker Lendecke2007-10-101-1/+6
|
* r21784: Replace smb_register_idle_event() with event_add_timed(). This fixes ↵Volker Lendecke2007-10-101-1/+1
| | | | | | | | winbind who did not run the idle events to drop ldap connections. Volker
* r21755: Memory leak fixes from Zack Kirsch <zack.kirsch@isilon.com>.Jeremy Allison2007-10-101-0/+1
| | | | Jeremy.
* r19978: More "net sam policy" improvements. Thanks to Karolin Seeger ↵Volker Lendecke2007-10-101-5/+11
| | | | | | <ks@sernet.de> Volker
* r19127: Fix bug 4152Volker Lendecke2007-10-101-0/+6
|
* r18748: Eliminate set of computed time valuesJim McDonough2007-10-101-76/+3
|
* r18313: Nobody said "no" (yet.... gd?), so commit it:Volker Lendecke2007-10-101-12/+0
| | | | | | | | Remove the account_policy_migrated() thingy, and make cache_account_policy_set use gencache. Account policies are now handled like groups and users are with respect to "passdb backend". Volker
* r16252: Fix Klocwork ID 1119, 1121.Volker Lendecke2007-10-101-0/+10
| | | | Volker
* r14577: BUG Fixes:Gerald Carter2007-10-101-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 Deschner2007-10-101-2/+2
| | | | Guenther
* r13679: Commiting the rm_primary_group.patch posted on samba-technicalGerald Carter2007-10-101-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 Allison2007-10-101-1/+1
| | | | | Fix from Richard Bollinger <rabollinger@gmail.com>. Jeremy.
* r13590: * replace all pdb_init_sam[_talloc]() calls with samu_new()Gerald Carter2007-10-101-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 structureGerald Carter2007-10-101-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 Carter2007-10-101-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üller2007-10-101-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üller2007-10-101-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 Lendecke2007-10-101-1/+1
|
* r13460: by popular demand....Gerald Carter2007-10-101-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 Carter2007-10-101-5/+5
| | | | Sync with trunk as off r13315
* r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman2007-10-101-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 Sorce2007-10-101-2/+4
|
* r12555: Fix more load_case_table swegfaults. Arggg.Jeremy Allison2007-10-101-0/+2
| | | | | What I'd give for a global constructor... Jeremy.
* r12398: adding Guenther's account policy migration fixGerald Carter2007-10-101-1/+50
|
* r11327: Make user domain settable by pdbeditVolker Lendecke2007-10-101-2/+9
|
* r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4Jeremy Allison2007-10-101-1/+1
| | | | | x86_64 box. Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-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. FixesTim Potter2007-10-101-6/+6
| | | | bugzilla #2984.
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2007-10-101-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 Potter2007-10-101-1/+1
|
* r5862: And some more constVolker Lendecke2007-10-101-1/+1
|
* r5790: Added ability to set account description.John Terpstra2007-10-101-2/+8
|
* r5349: After talking with Jerry, reverted the addition of account policies toGünther Deschner2007-10-101-35/+7
| | | | | | passdb in 3_0 (they are still in trunk). Guenther
* r4925: Migrate Account Policies to passdb (esp. replicating ldapsam).Günther Deschner2007-10-101-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 Allison2007-10-101-2/+2
|
* r4917: Merge some of Derrell.Lipman@UnwiredUniverse.com obvious fixes.Jeremy Allison2007-10-101-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 Deschner2007-10-101-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