summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Same infinite loop bug as I fixed in SAMBA_2_0, but I just spent halfMatthew Chapman1999-03-231-4/+4
| | | | an hour tracking it down in HEAD so I'm going to commit it here as well.
* 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.
* Stefan Walter: spotted *p_group == NULL which should be p_group == ↵Luke Leighton1999-03-121-2/+14
| | | | NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.Stefan Walter: spotted *p_group == NULL which should be p_group == NULL.
* mods to allow inter-domain trust accounts to be added to SAM databaseLuke Leighton1999-03-091-30/+36
| | | | using smbpasswd command.
* added jeremy's new c++-like code for parsing of security descriptors.Luke Leighton1999-02-231-0/+20
|
* bitmap to stringsLuke Leighton1999-02-161-0/+70
|
* Always null-terminate strings.Matthew Chapman1999-02-151-16/+33
|
* const cast issues. [p.s - tidy work, matt!]Luke Leighton1999-02-121-16/+31
|
* UNICODE cleanup (see lib/util_unistr.c).Matthew Chapman1999-02-121-196/+114
| | | | | | No more ugly static library buffers and all functions take a destination string length (especially unistrcpy was rather dangerous; we were only saved by the fact that datagrams are limited in size).
* UNICODE issues.Luke Leighton1999-02-111-7/+7
|
* the UNICODE issue...Luke Leighton1999-02-111-1/+27
|
* use jeremy's versions of the UNICODE routines.Luke Leighton1999-02-101-38/+50
|
* 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.
* removal of the use of unistrn2 function: replace it with unistr2_to_strLuke Leighton1999-02-091-1/+1
| | | | which is more appropriate.
* UNICODE byte ordering issue: typecast to uint16* replaced with SSVAL()Luke Leighton1999-02-081-6/+6
|
* cache unix groups so that two-level getgrent calls don't occur.Luke Leighton1999-02-032-0/+72
|
* Added init_nt_time function which initialises an NTTIME to -1.Matthew Chapman1999-02-011-7/+9
|
* fixed an uninitialized variable in lookupsmbgrpgid() andGerald Carter1999-01-132-1/+3
| | | | lookupsmbpwuid that was causing a SEGFAULT in smbd.
* adding start of remote lookup for domain member role.Luke Leighton1998-12-201-29/+125
|
* A while back, Andrew and I talked about making the debug parsing code aChristopher R. Hertel1998-12-161-1/+159
| | | | | | | | | | | | | | better "fit" with other Samba code. This is a small first step toward doing what (I think) we agreed to do. I've moved the key function from ubiqx/debugparse.c into lib/debug.c. I have also moved the enum from ubiqx/debugparse.h into the debug section in smb.h. The next thing to do is to get debug2html added into the Makefile.in so that it is always produced when compiling the suite. Chris -)-----
* added sid_name_use array argument to lsa_lookup_names and lsa_lookup_sids.Luke Leighton1998-12-141-5/+40
|
* trying to track down issues in get_home_dir().Luke Leighton1998-12-141-4/+8
|
* oops, util_pwdb.c appears to be included in PASSDB_OBJ not LIB_OBJ.Luke Leighton1998-12-092-16/+15
|
* need to initialise global_myworkgroupLuke Leighton1998-12-091-1/+14
|
* Adding George's Mac extension code.Jeremy Allison1998-12-081-0/+140
| | | | Jeremy.
* fixed warnings (and potential errors) due to integer overflow whenAndrew Tridgell1998-12-071-2/+3
| | | | creating locking masks
* first attempt at making unix setuid/setgid code that is independent ofLuke Leighton1998-12-071-0/+303
| | | | cnums and snums.
* removed nt_pipe_fnum from struct cli_state. need to be able to callLuke Leighton1998-12-071-6/+7
| | | | | | LsaLookupSids etc from within SamrQueryAliasMembers, for example. fnum is now a parameter to client functions. thanks to mike black for starting the ball rolling.
* oops - lock test was the wrong way aroundAndrew Tridgell1998-12-051-1/+1
|
* fixed pidfile handling to check for a lock on the file, so we can beAndrew Tridgell1998-12-051-16/+33
| | | | sure it is a samba process that is running.
* - renamed do_samr_xxx to samr_xxxLuke Leighton1998-12-042-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | - renamed do_lsa_xxx to lsa_xxx - added "enumgroups [-m]" command, enumerates groups, shows members. - added cmd_sam_add_groupmem(), need to call these in rpcclient.c - added cmd_sam_add_aliasmem(), need to call these in rpcclient.c - modified "enumaliases [-m]" command - improved "enumgroups" and "enumaliases" to display names not just RIDS/SIDs. - renamed "samr_unknown_12" to "samr_lookup_rids". - added the following client-side functions: get_samr_query_groupmem() get_samr_query_aliasmem() get_samr_query_groupinfo() samr_enum_dom_groups() samr_enum_dom_aliases() samr_add_aliasmem() samr_add_groupmem() - improved display output (display.c)
* moved get_unixgroups it will be needed by the unix instance of the groupLuke Leighton1998-12-031-0/+49
| | | | DB API
* jean-f spotted bug in test for existence of MACHINE.SID and SAM_NAME.SID.Luke Leighton1998-12-031-1/+1
|
* removed check on name of domain having to be right, etc etc.Luke Leighton1998-12-021-8/+0
|
* issues spotted by andrej: %s\\%s not %s\%sLuke Leighton1998-12-021-2/+2
|
* string_to_sid was using next_token() this is bad as it stops you fromLuke Leighton1998-12-021-43/+44
| | | | | being able to use next_token() outside of string_to_sid calls. use strchr instead
* fixing smbpasswd to link to smbd to obtain domain sidLuke Leighton1998-12-012-4/+7
|
* rpc_samr.h parse_samr.c srv_samr.c :Luke Leighton1998-12-012-40/+69
| | | | | | | | | | 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.
* fix to domain_namemap (domain, ntname wrong way round oops)Luke Leighton1998-12-013-7/+7
| | | | stupid compile errors with file_rename() call just created.
* adding some samr parsing calls (group / alias adding / deleting)Luke Leighton1998-12-013-9/+36
| | | | added code that moves MACHINE.SID to DOMAIN_NAME.SID if it exists.
* attempting to fix "domain user map" up, but it's a bit complicated.Luke Leighton1998-11-303-39/+61
| | | | | | | | | | | | | | | | | 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-303-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | - 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-293-0/+2184
| | | | added their replacements, added sam password database API modules
* weekend work. user / group database API.Luke Leighton1998-11-292-49/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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...
* Makefile.in: Added maintainer mode fixes.Jeremy Allison1998-11-257-408/+574
| | | | | | | | | | | | | | | | | | | | | | | | aclocal.m4: Added AC_LIBTESTFUNC. configure.in: Fixed -lsecurity -lsec problems. client.c: dos_ fixes. groupdb/aliasunix.c: Dead code removal. include/includes.h: Added default PRINTCAP_NAME. lib/genrand.c: dos_ fixes. lib/replace.c: Added strtoul. lib/system.c: dos_ fixes. lib/util.c: dos_ fixes. lib/util_sid.c: Signed/unsigned fixes. lib/util_str.c: removed bad const. locking/locking_slow.c: dos_ fixes. printing/printing.c: dos_ fixes. rpc_server/srv_samr.c: Dead code removal. rpc_server/srv_sid.c: global_myworkgroup defined with wrong size AGAIN ! smbd/dir.c: dos_ fixes. smbd/open.c: dos_ fixes. smbd/oplock.c: dos_ fixes. smbd/reply.c smbd/server.c smbd/service.c smbd/uid.c: dos_ fixes. Jeremy.
* sorting out difference between aliases and groups in the cases whereLuke Leighton1998-11-241-1/+4
| | | | | | | | | | | | | | | unix groups are not explicitly mapped. i.e as a PDC or BDC you can have domain groups, as a member of a domain you cannot. as a member of a domain, unmapped unix groups are assumed to be aliases, and as a PDC or BDC, unmapped unix groups are assumed to be unix groups. there is _one_ other check needed with aliases to be added: unmapped unix groups that have the same name as an NT group on the PDC (for which i will need to write an LsaLookupNames call) should be assumed to be domain groups on the PDC.
* unused variable removedLuke Leighton1998-11-231-1/+1
|
* unix instance of group database APILuke Leighton1998-11-232-6/+22
|
* replace ' with _ as wellAndrew Tridgell1998-11-231-1/+2
|
* changed string_sub() to replace " ; and ` in the inserted string with _Andrew Tridgell1998-11-231-19/+52
| | | | use all_string_sub() if you don't want this.