summaryrefslogtreecommitdiffstats
path: root/source/lib/util_pwdb.c
Commit message (Collapse)AuthorAgeFilesLines
* code from bertl to allow remap of default built-in names to anything.Luke Leighton1999-07-141-20/+215
| | | | | parameter is "builtin rid file". Copyright 1999 Bertl <bp@vpnet.at>
* SAM database "set user info".Luke Leighton1999-03-251-2/+19
| | | | | | | | | | | | | | | | | | | | | | | ---------------------------- - removed DOM_RID4 - removed SAMR_UNKNOWN_32 - added SAMR_SET_USERINFO (opcode 0x32) - added level 0x1 to SAMR_QUERY_DOM_INFO (needed for create user) - fixed pwdb_gethexpwd() it was failing on XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - added mod_sam21pwd_entry() - preparing to call mod_sam21pwd_entry() - added "user session key" to user_struct.dc. this is md4(nt#) and is needed to decode user's clear-text passwords in SAMR_SET_USERINFO. - split code out in chgpasswd.c to decode 516 byte password buffers.
* Beau Kuiper: provided patch so that passwords could only be changed byLuke Leighton1999-03-191-0/+2
| | | | | | root if the ACB_PWLOCK bit is set (on a per-user basis). he also added an extra smbpasswd option so that this bit can be modified from command-line.
* Having Well-known Domain Groups ("Domain Admins/Guests/Users") returnedLuke Leighton1999-02-091-1/+1
| | | | | under SID_NAME_ENUM 0x5 instead of 0x2 (Well-known group instead of Domain Group) was making it impossible to view these groups from USRMGR.EXE.
* fixed an uninitialized variable in lookupsmbgrpgid() andGerald Carter1999-01-131-1/+1
| | | | lookupsmbpwuid that was causing a SEGFAULT in smbd.
* oops, util_pwdb.c appears to be included in PASSDB_OBJ not LIB_OBJ.Luke Leighton1998-12-091-16/+1
|
* need to initialise global_myworkgroupLuke Leighton1998-12-091-1/+14
|
* fixing smbpasswd to link to smbd to obtain domain sidLuke Leighton1998-12-011-1/+4
|
* rpc_samr.h parse_samr.c srv_samr.c :Luke Leighton1998-12-011-10/+19
| | | | | | | | | | samr_query_aliasmembers (cool!) util_pwdb.c sids.c nmbd.c server.c smbpasswd.c swat.c : pwdb_initialise(BOOL is_server) now creates / reads DOMAIN_NAME.SID if is_server is True, and does LsaQueryInfoPolicy(levels 3 and 5) to obtain member and pdc sids.
* attempting to fix "domain user map" up, but it's a bit complicated.Luke Leighton1998-11-301-1/+0
| | | | | | | | | | | | | | | | | i may simply go for a response in the NetSamLogon returning the unix username, forcing the NT user to appear to be a unix user, however even that is fraught with implications. might just have to go the whole hog and do this tuple thing, "unix_name + nt_name" always associated together... issue with api_net_sam_logon, getsam21pwent() being called twice, the second time overwriting static buffer data (argh) so had to make a copy. noticed a nested "become_root()"/"unbecome_root()" which will have to be tracked down...
* - adding builtin[alias]db.Luke Leighton1998-11-301-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | - lib/sids.c: generate_sam_sid() modified to take a domain name: it now generates "DOMAIN_NAME.SID". reasons: 1) if you run multiple samba servers on the same machine under different netbios names as members of a domain, they won't all use the same SID, which is a _big_ mistake but it would happen _by default_. 2) we have (had) a problem with sid_to_string() and string_to_sid() which cause SIDs to be incorrectly read. one of the major reasons for *NOT* making this change was so as not to disrupt existing users. but as they will be anyway by this bug, we might as well go ahead. - passdb/smbpass.c: wanted to change the meaning of the name in the smbpasswd file to an "nt" name not a "unix" name. this is probably not a good idea: reverted this. - output formatting / bug-fixing in rpcclient query_useraliases code.
* "retired" two modules to preserve their cvs history.Luke Leighton1998-11-291-0/+444
added their replacements, added sam password database API modules