summaryrefslogtreecommitdiffstats
path: root/source/utils/smbpasswd.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix some nonempty blank linesVolker Lendecke2008-09-011-21/+21
|
* Developer doesn't cut it - need #define test for NSS_WRAPPER.Jeremy Allison2007-12-121-1/+1
| | | | | Hopefully this should fix the buildfarm. Jeremy.
* Only add the non-root escape on !developer.Jeremy Allison2007-12-121-1/+1
| | | | Jeremy.
* Fix the buildfarm until I figure out how to allowJeremy Allison2007-12-121-0/+2
| | | | | smbpasswd -L for non-root on the buildfarm only. Jeremy.
* Fix bug #3727 with patch from Steve Langasek <vorlon@debian.org>Jeremy Allison2007-12-121-0/+4
| | | | Jeremy.
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-1/+1
| | | | | | 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-4/+3
| | | | Jeremy.
* Make remote_password_change return malloced error stringsVolker Lendecke2007-11-231-2/+3
| | | | This fixes a segfault in smbpasswd -r
* Remove pstrings from pam_smbpass - make local_password_changeJeremy Allison2007-11-211-5/+7
| | | | | return malloced strings. Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-5/+5
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* r24943: Some stackframesVolker Lendecke2007-10-101-1/+5
|
* r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r22071: Make the error message for incorrect use of '-c' show the parameter ↵Andrew Bartlett2007-10-101-1/+1
| | | | | | | | | | as used. This means that smbpasswd -c user (which in htpasswd creates a new file) and smbpasswd -c /not/my/smb.conf should give errors an admin will think to chase down. Andrew Bartlett
* 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
* r16247: Fix Coverity ID 296Volker Lendecke2007-10-101-1/+1
|
* r16241: Fix Klocwork #106 and others like it.Jeremy Allison2007-10-101-8/+25
| | | | | | | | | | | | | | Make 2 important changes. pdb_get_methods() returning NULL is a *fatal* error. Don't try and cope with it just call smb_panic. This removes a *lot* of pointless "if (!pdb)" handling code. Secondly, ensure that if samu_init() fails we *always* back out of a function. That way we are never in a situation where the pdb_XXX() functions need to start with a "if (sampass)" test - this was just bad design, not defensive programming. Jeremy.
* r15906: smbpasswd help text for -W option (patch from Aruna Prabakar ↵Gerald Carter2007-10-101-0/+1
| | | | <aruna.prabakar@hp.com>
* r15311: look at the NT password (not lanman one) when determining if ↵Gerald Carter2007-10-101-1/+1
| | | | smbpasswd -e should probably for a password
* r13590: * replace all pdb_init_sam[_talloc]() calls with samu_new()Gerald Carter2007-10-101-2/+2
| | | | * 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-4/+4
| | | | | | | | | | | | | | | | | | | | | | | 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.
* r13524: Add -t|--password-from-stdin option to pdbedit as we had with Samba 2.2.Lars Müller2007-10-101-42/+0
| | | | | | | | | | 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.
* r13316: Let the carnage begin....Gerald Carter2007-10-101-10/+14
| | | | 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.)
* r13148: Fix bug: #3413Simo Sorce2007-10-101-3/+9
| | | | | | | | | Check that ldap admin dn is defined in smb.conf before setting the ldap password in secrets.tdb Based on patch by William Jojo <jojowil@hvcc.edu> Simo.
* r12840: Add -W to smbpasswd. Thanks to William Jojo <jojowil@hvcc.edu>.Volker Lendecke2007-10-101-1/+9
| | | | Volker
* r12544: Fix segfaults in winbind, smbpasswd and netVolker Lendecke2007-10-101-0/+2
|
* r6261: Tidyup message str printf. Ensure tvs struct is zeroed.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r6256: Fix fprintf errors in smbpasswd. Fix for bug #2585 Ulf Härnhammar ↵Jeremy Allison2007-10-101-3/+3
| | | | | | <metaur@telia.com> Jeremy.
* r3882: Fix bug 2069 -- thanks to jason@ncac.gwu.eduVolker Lendecke2007-10-101-1/+2
|
* r1504: Remove insane use of "user password" on the COMMAND LINE !Jeremy Allison2007-10-101-25/+6
| | | | | in smbpasswd. Use -s if you want to script this. Jeremy.
* I *hate* global variables...Andrew Bartlett2004-02-251-0/+6
| | | | | | | | | | | | | | | | | | OK, what was happening here was that we would invalidate global_sam_sid when we set the sid into secrets.tdb, to force a re-read. The problem was, we would do *two* writes into the TDB, and the second one (in the PDC/BDC case) would be of a NULL pointer. This caused smbd startups to fail, on a blank TDB. By using a local variable in the pdb_generate_sam_sid() code, we avoid this particular trap. I've also added better debugging for the case where this all matters, which is particularly for LDAP, where it finds out a domain SID from the sambaDomain object. Andrew Bartlett
* Fix "unable to initialize" bug when smbd hasn't been run withJeremy Allison2004-02-231-2/+4
| | | | | | new system and a user is being added via pdbedit/smbpasswd. Found at Connectathon setup. Jeremy.
* This should be the correct fix for the lack of a prototype forAndrew Bartlett2004-02-041-6/+0
| | | | | | | | remote_password_change(). Sorry for the original bug. Andrew Bartlett
* fix problems with proto.hGerald Carter2004-02-021-1/+1
|
* remerge andrew's cracklib patch from HEAD and fix a compile warningsGerald Carter2004-02-021-0/+7
|
* fix online helpSimo Sorce2003-09-151-1/+1
| | | | -w option need the password on the command line
* Replace the eight (!) copies of dummy become/unbecome root with a single one.Tim Potter2003-07-221-15/+0
|
* Jim, could you please look at this? smbpasswd -a <username> was brokenVolker Lendecke2003-07-151-2/+2
| | | | | | | | | for me without this patch. I'm not sure if I interpreted your patch to this code right. Thanks, Volker
* Doesn't re-prompt for password when it is specified on the cmdlineJim McDonough2003-07-111-2/+2
|
* more compile fixes for become/unbecome_root()Gerald Carter2003-07-091-0/+15
|
* Removed strupper/strlower macros that automatically map to ↵Jeremy Allison2003-07-031-1/+1
| | | | | | | strupper_m/strlower_m. I really want people to think about when they're using multibyte strings. Jeremy.
* Reverse previous patch from Stefan and me after comments by Andrew BartlettJelmer Vernooij2003-05-101-3/+0
|
* Patch from metze and me that adds dummy smb_register_*() functions soJelmer Vernooij2003-05-101-0/+3
| | | | | that is now possible to, for example, load a module which contains an auth method into a binary without the auth/ subsystem built in.
* Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-031-2/+2
| | | | | | warnings. (Adds a lot of const). Andrew Bartlett
* merge of smbpasswd segfault from SAMBA_2_2Gerald Carter2002-12-121-7/+10
|
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-121-8/+2
| | | | | | dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy.
* Merge from HEAD:Andrew Bartlett2002-11-081-1/+1
| | | | | | | | | | | | | - change auth_sam to use the initialisation flags to determine if the password attributes are set - add const to secrets.c, cliconnect.c - passdb: fix spelling in pdb_ldap, add group mapping back to smbpasswd - SAMR: add debugs to show what fails for group enum. Andrew Bartlett
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-18/+18
|