summaryrefslogtreecommitdiffstats
path: root/source/passdb/smbpasschange.c
Commit message (Collapse)AuthorAgeFilesLines
* Update last changed time for new password entry.Jeremy Allison2000-03-021-0/+1
| | | | Jeremy.
* client/client.c:Jeremy Allison2000-02-251-28/+42
| | | | | | | libsmb/clientgen.c: Fixes for Win2k smbclient browsing. Other fixes implement smbpasswd -x user to delete users. Also allows swat to do the same. Jeremy.
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-83/+93
|
* Moved code that changes the pw_passwd entry (i.e shadow password andTim Potter1999-06-131-1/+1
| | | | | | | | weird unixware stuff) into _Get_Pwnam() to fix a memory allocation bug. Note that the Get_Pwnam() function now returns a const struct passwd * as a hint to other developers not to change entries in the struct passwd.
* fixed issues with "Welcome to SAMBA Domain" for when admin user/pass isLuke Leighton1999-03-251-1/+1
| | | | | used to add workstation to domain. unix account db not modified: only SAM password db is used.
* static password space needed.Luke Leighton1999-03-101-3/+3
|
* mods to allow inter-domain trust accounts to be added to SAM databaseLuke Leighton1999-03-091-42/+57
| | | | using smbpasswd command.
* Matthew Chapman spotted that smbpasschange was assuming the existenceLuke Leighton1998-12-071-29/+0
| | | | | | of a private/smbpasswd file, this will not be the case for other database APIs. removed startsmbdb and endsmbpwdb calls because add_smbpwd_entry() and mod_smbpwd_entry() don't need them.
* passdb.c now calls getpwnam() which returns results in a static buffer.Luke Leighton1998-11-301-7/+21
| | | | | a call _outside_ of this was _also_ calling getpwnam. the calls to getsmbpwnam() were therefore overwriting the static buffer.
* weekend work. user / group database API.Luke Leighton1998-11-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - split sam_passwd and smb_passwd into separate higher-order function tables - renamed struct smb_passwd's "smb_user" to "unix_user". added "nt_user" plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd password databases to fill in the blank entries that are not obtained from whatever password database API instance is being used. NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c for the only example outside of the password database APIs i could find. - added query_useraliases code to rpcclient. - dealt with some nasty interdependencies involving non-smbd programs and the password database API. this is still not satisfactorily resolved completelely, but it's the best i can do for now. - #ifdef'd out some password database options so that people don't mistakenly set them unless they recompile to _use_ those options. lots of debugging done, it's still not finished. the unix/NT uid/gid and user-rid/group-rid issues are better, but not perfect. the "BUILTIN" domain is still missing: users cannot be added to "BUILTIN" groups yet, as we only have an "alias" db API and a "group" db API but not "builtin-alias" db API...
* Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1998-11-171-1/+1
| | | | | | | | | | Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy.
* Removed code that used printf/fprintf in password changin libraries.Herb Lewis1998-11-121-11/+18
| | | | Now passes strings instead.
* extracted the password change code from smbpasswd and used it in swatAndrew Tridgell1998-11-121-0/+162
instead of opening pipes and other horrible stuff.