summaryrefslogtreecommitdiffstats
path: root/source/smbd/chgpasswd.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug 5398Volker Lendecke2008-04-191-3/+3
| | | | | | Thanks to Jason Mader for sending the compiler output :-) Volker
* Fix bug 5366Volker Lendecke2008-04-111-1/+6
|
* read_socket_with_timeout_ntstatus->read_socket_with_timeoutVolker Lendecke2008-02-021-1/+1
|
* Get rid of read_socket_with_timeoutVolker Lendecke2008-02-021-5/+14
|
* Finally enable pidl generated SAMR & NETLOGON headers and clients.Günther Deschner2008-01-171-6/+6
| | | | Guenther
* Remove Get_Pwnam and its associated static variableVolker Lendecke2007-12-191-1/+5
| | | | All callers are replaced by Get_Pwnam_alloc
* Fix bug #5121 (unix passwd sync not working on a streams basedJeremy Allison2007-12-171-7/+7
| | | | | system). Jeremy.
* Remove a static fstring.Jeremy Allison2007-12-161-20/+30
| | | | Jeremy.
* More work on bug #5082, use LC_ALL as this takesJeremy Allison2007-12-151-2/+2
| | | | | precedence. Jeremy.
* Fix for bug #5082 from Mathias Gug <mathiaz@ubuntu.com>, Steve Langasek ↵Jeremy Allison2007-12-141-1/+9
| | | | | | | | | | <vorlon@debian.org>. Recent versions of Linux-PAM support localization of user prompts, so Samba must use the C locale when invoking PAM (directly or via /usr/bin/passwd) to ensure that password chat values match the prompts in a locale-invariant fashion. Jeremy.
* Remove next_token - all uses must now be next_token_talloc.Jeremy Allison2007-12-071-13/+29
| | | | | No more temptations to use static length strings. Jeremy.
* Remove all pstrings from smbd/chgpasswd.c.Jeremy Allison2007-11-121-67/+90
| | | | Jeremy.
* Three more pstring removals.Jeremy Allison2007-11-111-3/+7
| | | | Jeremy.
* Remove the horror that was the global smb_rw_error.Jeremy Allison2007-11-051-1/+1
| | | | | | | | | | Each cli struct has it's own local copy of this variable, so use that in client code. In the smbd server, add one static to smbd/proccess.c and use that inside smbd. Fix a bunch of places where smb_rw_error could be set by calling read_data() in places where we weren't reading from the SMB client socket (ie. winbindd). Jeremy.
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-20/+20
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* 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.
* r23682: Old patch I forgot in one of my 3.0.25 trees.Simo Sorce2007-10-101-0/+16
| | | | Make sure we honour the directive not to allow machine password changes.
* r22001: change prototype of dump_data(), so that it takes unsigned char * now,Stefan Metzmacher2007-10-101-2/+2
| | | | | | | | which matches what samba4 has. also fix all the callers to prevent compiler warnings metze
* r19094: Fix debug statement.Günther Deschner2007-10-101-1/+1
| | | | Guenther
* r19058: Implement "user cannot change password", and complete "user must changeJim McDonough2007-10-101-26/+19
| | | | | | | | | | | | password at next logon" code. The "password last set time" of zero now means "user must change password", because that's how windows seems to use it. The "can change" and "must change" times are now calculated based on the "last set" time and policies. We use the "can change" field now to indicate that a user cannot change a password by putting MAX_TIME_T in it (so long as "last set" time isn't zero). Based on this, we set the password-can-change bit in the faked secdesc.
* r16248: Fix Coverity ID 297Volker Lendecke2007-10-101-0/+5
|
* r15887: Ensure we use sys_write so we're not interrupted.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r14668: Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-basedJames Peach2007-10-101-1/+2
| | | | HSM is interested in. Tested on both IRIX and SLES9.
* r14600: Refactor capability interface from being IRIX-specific to using onlyJames Peach2007-10-101-1/+1
| | | | | the POSIX interface. Note that this removes support for inherited capabilities. This wasn't used, and probably should not be.
* r13711: * Correctly handle acb_info/acct_flags as uint32 not as uint16.Günther Deschner2007-10-101-3/+3
| | | | | | | | * Fix a couple of related parsing issues. * in the info3 reply in a samlogon, return the ACB-flags (instead of returning zero) Guenther
* r13590: * replace all pdb_init_sam[_talloc]() calls with samu_new()Gerald Carter2007-10-101-1/+3
| | | | * 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......
* r13494: Merge the stuff I've done in head the last days.Volker Lendecke2007-10-101-1/+1
| | | | Volker
* r13444: Add REJECT_REASON_OTHER for samr_chgpasswd_user3Günther Deschner2007-10-101-0/+10
| | | | Guenther
* r13442: Implement samr_chgpasswd_user3 server-side.Günther Deschner2007-10-101-3/+13
| | | | Guenther
* r13316: Let the carnage begin....Gerald Carter2007-10-101-10/+3
| | | | Sync with trunk as off r13315
* r13291: NT checks the minimum password age dynamically. That means we have ↵Volker Lendecke2007-10-101-5/+21
| | | | | | | | | to ignore the sambapwdmustchange field if we can access the corresponding account policy and calculate it dynamically based on the pwdlastset field. Volker
* r12938: Fix for #3408 (change password fails) from William Jojo ↵Jeremy Allison2007-10-101-3/+7
| | | | | | <jojowil@hvcc.edu>. Jeremy.
* r12279: unix_mask_match has been broken for *ever*... (How).Jeremy Allison2007-10-101-1/+1
| | | | | | | | Ensure it returns a BOOL. Jerry (and anyone else) please check this, I think all uses are now correct but could do with another set of eyes. Essential for 3.0.21 release. Jeremy.
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-2/+2
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r9545: (Hopefully the last) fixes for DIR -> SMB_STRUCT_DIR.Jeremy Allison2007-10-101-4/+4
| | | | Jeremy.
* r8454: Fix Bug #2502Günther Deschner2007-10-101-11/+0
| | | | | | | | | | | | Removing deprecated lp_min_password_length (the same functionality is provided by the account policy). Note that we now allow to set passwords less then 5 chars (if the admins decides to do so by setting the account policy). Thanks to Daniel Beschorner <db@unit-netz.de> Guenther
* 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
* r5961: final round of compiler warning fixes based on feedback from Jason MaderGerald Carter2007-10-101-2/+2
|
* r5905: Fix two warnings found by AIX. They might actually be bugs on 64-bitVolker Lendecke2007-10-101-1/+2
| | | | | | platforms. Volker
* r5349: After talking with Jerry, reverted the addition of account policies toGünther Deschner2007-10-101-2/+2
| | | | | | passdb in 3_0 (they are still in trunk). Guenther
* r4925: Migrate Account Policies to passdb (esp. replicating ldapsam).Günther Deschner2007-10-101-2/+2
| | | | | | | | 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
* r4337: Produce a slightly different error message is lanman authentication isAndrew Bartlett2007-10-101-3/+8
| | | | | | disabled, rather than simply unavailable. Andrew Bartlett
* r3954: bring Samba3 into line with the Samba4 password change codeAndrew Tridgell2007-10-101-18/+11
|
* r2899: Change some #if DEBUG_PASSWORD's to #ifdef DEBUG_PASSWORD.Tim Potter2007-10-101-1/+1
| | | | Bugzilla #1903.
* r2772: Check correct string length when verifying password-policies. Do notGünther Deschner2007-10-101-2/+3
| | | | | | | | | | allow e.g. two umlauts and one ascii char to comply with account-policy "min password length" of 5. Thanks to Uwe Morgenroth from CC Compunet and Volker. TODO: we do check the length against AP_MIN_PASSWORD_LEN *and* lp_min_passwd_length() - both can have differing values.
* r2333: check the script is not a 0 lenght stringSimo Sorce2007-10-101-1/+1
|
* r2331: check password script code and example from trunkSimo Sorce2007-10-101-0/+13
|
* r2013: BUG 1658: little bit of const (patch from : Helmut ↵Gerald Carter2007-10-101-1/+1
| | | | Heinreichsberger <helmut.heinreichsberger@chello.at>)