summaryrefslogtreecommitdiffstats
path: root/source3/utils/pdbedit.c
Commit message (Collapse)AuthorAgeFilesLines
* Call TALLOC_FREE() before we return otherwise we will never free sam_accountMichele Baldessari2012-09-101-1/+1
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* Correctly check for errors in strlower_m() returns.Jeremy Allison2012-08-091-2/+9
|
* s3-group-mapping: Remove fstrings from GROUP_MAP.Simo Sorce2011-10-121-3/+3
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Oct 12 19:28:12 CEST 2011 on sn-devel-104
* s3-passdb: Replace SMB_MALLOC_ARRAY()/SAFE_FREE() with talloc equivalents.Amitay Isaacs2011-08-191-2/+2
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3:pdbedit: use lp_load_global()Michael Adam2011-07-281-1/+1
|
* s3-param Remove lp_set_passdb_backend()Andrew Bartlett2011-07-081-1/+1
|
* s3-passdb: add passdb.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: Add "len" to pdb_set_hoursVolker Lendecke2011-02-191-1/+1
|
* s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett2010-11-021-1/+1
| | | | | | | | This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-0/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* s3-passdb: include samr.h where needed.Günther Deschner2010-08-061-0/+1
| | | | Guenther
* s3-popt: Only include popt-common.h when needed.Andreas Schneider2010-08-051-0/+1
|
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-8/+8
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3:passdb Remove use of uint8 uint16 and uint32 in favour of C99 typesAndrew Bartlett2010-05-211-6/+6
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Replace most calls to sid_append_rid() by sid_compose()Volker Lendecke2010-01-101-2/+1
|
* s3-pdbedit: allow to call "pdbedit -N description -u user" without ↵Günther Deschner2009-12-161-2/+4
| | | | | | specifiyng "-r". Guenther
* s3: pdbedit: add option --kickoff-time/-K to set the user's kickoff timeMichael Adam2009-10-271-4/+28
| | | | | | Use "never" as argument to set this to unlimited. Michael
* s3: fix build of pdbedit and net_sam. Guenther, please check. Signed-off-by: ↵Bo Yang2009-07-151-1/+1
| | | | Bo Yang <boyang@samba.org>
* Fix coverity #920. Possible NULL deref.Jeremy Allison2009-06-191-0/+4
| | | | Jeremy.
* Make it possible to change machine account sidsSimo Sorce2009-05-301-40/+171
| | | | Fixes bug #6081
* Remove trailing whitespacesSimo Sorce2009-05-301-20/+20
|
* s3:pdbedit: fix "format not a string literal and no format arguments" warningsMichael Adam2009-05-291-2/+2
| | | | Michael
* Consolidate create/delete account paths in pdbeditSimo Sorce2009-05-291-257/+319
| | | | | | | | | Use common paths like for smbpasswd, so that all utilities behave the same way. As for smbpasswd this changes the behavior of pdbedit to create/delete unix users is the add/delete user scripts are provided, or ldapsam:editposix is configured. Signed-off-by: Günther Deschner <gd@samba.org>
* Remove a silly checkVolker Lendecke2009-04-051-7/+0
| | | | | This does not increase security, and if later error messages suck, we have to fix those.
* Shape up pdb_search a bit by making it a talloc ctx with a destructorVolker Lendecke2009-03-071-10/+10
|
* Make us clean under valgrind --leak-check=full by using ↵Jeremy Allison2008-11-061-2/+2
| | | | | | | | | | talloc_autofree_context() instead of NULL. Remove the code in memcache that does a TALLOC_FREE on stored pointers. That's a disaster waiting to happen. If you're storing talloc'ed pointers, you can't know their lifecycle and they should be deleted when their parent context is deleted, so freeing them at some arbitrary point later will be a double-free. Jeremy.
* [s3]pdbedit: remove unused variable.Michael Adam2008-10-271-4/+0
| | | | | | | | | Note: The change of commit r21962 (or fe962d2e48, aka f540c18b2) that was partly lost in the SVN->git glue commit e5a951325a6 (aka 5c6c8e1fe93f34) is not needed any more since the handler for option "-s" calls set_dyn_CONFIGFILE(). Michael
* Cope with changed signature of http_timestring().Jelmer Vernooij2008-10-111-8/+15
|
* Convert pdbedit to use pdb_search_usersVolker Lendecke2007-12-261-78/+123
| | | | (This used to be commit 8a8f2583b8bda22f65c7483dea54ac823ed1c0c3)
* Replace sid_string_static with sid_string_tosVolker Lendecke2007-12-151-2/+2
| | | | | In utils/ I was a bit lazy... (This used to be commit 60e830b0f4571bd5d9039f2edd199534f2a4c341)
* 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. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
* Getting to the home stretch for elimination of pstrings...Jeremy Allison2007-12-031-13/+13
| | | | | Jeremy. (This used to be commit 041163551194102ca67fef52c57d87020a1d09bc)
* 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. (This used to be commit 793a9d24a163cb6cf5a3a0aa5ae30e9f8cf4744a)
* 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. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter2007-10-101-2/+1
| | | | (This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
* r24943: Some stackframesVolker Lendecke2007-10-101-0/+3
| | | | (This used to be commit cddb9f11d5fafcd3797cb242775c37f0c04d4f15)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* 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. (This used to be commit e077142aa39ad927a16e0d04874857bbc171ce07)
* 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. (This used to be commit 4e1a0b2549f7c11326deed2801de19564af0f16a)
* r22828: Fix typo. Bugzilla #4589.James Peach2007-10-101-1/+1
| | | | (This used to be commit b8959b172090eef6b40ff1fb012d6ff0d3d732ef)
* r21962: Make pdbedit use the configfile specified by -sVolker Lendecke2007-10-101-1/+6
| | | | (This used to be commit f540c18b2bbf1d3138aea6938c5313ca2e100215)
* 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 (This used to be commit af3308ce5a21220ff4c510de356dbaa6cf9ff997)
* r21755: Memory leak fixes from Zack Kirsch <zack.kirsch@isilon.com>.Jeremy Allison2007-10-101-0/+1
| | | | | Jeremy. (This used to be commit 02d08ca0be8c374e30c3c0e665853fa9e57f043a)
* r19978: More "net sam policy" improvements. Thanks to Karolin Seeger ↵Volker Lendecke2007-10-101-5/+11
| | | | | | | <ks@sernet.de> Volker (This used to be commit fde042f29e9e9ac19ed3380e8fbe45fa8441e705)
* r19127: Fix bug 4152Volker Lendecke2007-10-101-0/+6
| | | | (This used to be commit 70038e8f7b3042c2732e7f8267cab0499972a819)
* r18748: Eliminate set of computed time valuesJim McDonough2007-10-101-76/+3
| | | | (This used to be commit c53d4a8151f3105efa4c0bc340f35ee5c9c97aaf)
* 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 (This used to be commit fa8b2e2a585ab0c00a5fbde7aa790043261caf2e)
* r16252: Fix Klocwork ID 1119, 1121.Volker Lendecke2007-10-101-0/+10
| | | | | Volker (This used to be commit 678bbcf06109b276d3e4514c3788a9fb31348de0)
* 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 (This used to be commit df53d64910fbb96eb810102e986b3c337d54c463)