summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* reply.c: Added code to not overwrite sesssetup_user when in share level securityJeremy Allison1998-05-112-2/+9
| | | | | | | and null session setup done. smbpasswd.c: Fix from Gerald Carter <cartegw@Eng.Auburn.EDU> to fix incorrect use of pointer. Jeremy.
* add lp_domain_workstations() parameter. this is a list of workstation namesLuke Leighton1998-05-112-0/+6
| | | | | | from which an NT user can log in from. empty (default) indicates no restrictions. exactly how this is enforced is unknown. from past experience it's likely that the enforcement is left to the client to carry out...
* ldap back-end database developmentLuke Leighton1998-05-1110-604/+725
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makefile: created PASSBD_OBJ group includes.h: added #ifdef USE_LDAP to #include <ldap> headers ldap.c: - renamed "_machine" to "_trust" everywhere. - added sam_passwd support routines - removed get_ldappwd_entry function: replaced with get_sampwd_entry - removed getldappwnam/uid: replaced with getsampwnam/uid - other messing about bits which are probably going to annoy the hell out of jean-francois (sorry!) mkproto.awk: - added stuff to wrap ldap.c protos with #ifdef USE_LDAP - added uid_t and gid_t return results to the prototype generation passdb.c: - created getsam21pwent, add_sam21pwd_entry, mod_sam21pwd_entry. - modified getsampwnam/uid and created getsam21pwnam/rid functions to replace the local get_smbpwd_entry() and get_ldappwd_entry() functions, which jeremy didn't like anyway because they were dual-purpose. - added utility routines which are or may be useful to all the password database routines. password.c: - renamed "machine_" to "trust_" everywhere. smbpass.c: - removed get_smbpwd_entry function: replaced it with get_sampwd_entry functions in passdb.c - moved code that decoded acct_ctrl into passdb.c - moved encode_acct_ctrl into passdb.c - removed getsmbpwnam/uid: replaced with getsampwnam/uid - renamed "machine_" to "trust_" everywhere. smbpasswd.c: - renamed "machine_" to "trust_" everywhere. util.c: - moved gethexpwd function into passdb.c lib/rpc/server/srv_util.c: - moved user_rid_to_uid, group_rid_to_rid etc etc into passdb.c
* don't use system functions as arguments to qsort() as otherwise youAndrew Tridgell1998-05-111-1/+1
| | | | | get stuck on systems with broken headers (like SunOS4). In this case use StrCaseCmp instead of strcasecmp
* include includes.h in all the ubiqx files. I know Chris won't likeAndrew Tridgell1998-05-115-4/+6
| | | | | | | this but it really is necessary (sorry Chris!) ubiqx code didn't compile on SunOS4 otherwise as stdlib didn't define NULL.
* changed to use slprintf() instead of sprintf() just aboutAndrew Tridgell1998-05-1133-94/+207
| | | | | | | everywhere. I've implemented slprintf() as a bounds checked sprintf() using mprotect() and a non-writeable page. This should prevent any sprintf based security holes.
* changed to use slprintf() instead of sprintf() just aboutAndrew Tridgell1998-05-111-1/+1
| | | | | | | everywhere. I've implemented slprintf() as a bounds checked sprintf() using mprotect() and a non-writeable page. This should prevent any sprintf based security holes.
* Updated OSF1_ENH_SEC mode password handling.John Terpstra1998-05-101-1/+8
| | | | | | This now tries Enhanced passwords first and if this fails trys Basic mode (ie: Unix /etc/passwd) authentication. This only happens when OSF1_ENH_SEC is defined at compilation.
* added sam_passwd structure: don't want smb_passwd to be "polluted".Luke Leighton1998-05-081-6/+50
|
* move things around to get rid of make clean warning messagesHerb Lewis1998-05-081-4/+12
|
* removed proto.h from cvsignoreLuke Leighton1998-05-081-1/+0
|
* clitar.c: #ifdef'ed out all the bits that were giving 'defined but not used'Jeremy Allison1998-05-084-48/+35
| | | | | | | | | messages. nttrans.c: More updates. smb.h: Removed stuff that didn't belong in the smb_passwd struct. Persuaded Luke to use a new structure. web/swat.c: Fixed gcc complaints about shadowing global 'string'. Jeremy.
* Ho hum, someone deleted proto.h from cvs... re-adding.Jeremy Allison1998-05-081-0/+2070
| | | | Jeremy.
* proto.h was being a pain. use "make proto" instead. check release andLuke Leighton1998-05-081-2070/+0
| | | | | release-alpha scripts operate correctly when it comes to generating a release or alpha release.
* added proto.h to .cvsignoreLuke Leighton1998-05-081-0/+1
|
* added smb_grpid to smb_passwd structLuke Leighton1998-05-081-0/+1
|
* Se-submitting clitar.c/Richard Sharpe1998-05-082-58/+436
| | | | | | | | I now only have one warning in my code which is the result of some code I have started working on but am not yet using in the code, along with a warning that is caused by one of the include files (a nested comment). I used -Wall -Wshadow -Wstrict-prototypes
* renamed last_change_time to pass_must_change_time. removed "if (bool==True)"Luke Leighton1998-05-082-21/+20
| | | | | | and "if (bool==False)" code from ldap.c - a boolean test may not necessarily return exactly True or exactly False: True may be defined to be -1: you never know...
* added extra fields to struct smb_passwdLuke Leighton1998-05-081-7/+37
| | | | | | | | | the smbpw functions are expected to fill in the blanks by reading the appropriate smb.conf parameters. the ldappw functions are expected to fill in the fields from the ldap database. a separate utility can be written to fill in the ldap database fields from the smb.conf parameters, at a later date.
* The globals section now shows non-default variables (like theHerb Lewis1998-05-082-23/+125
| | | | | | | | | | | view config section does) in the basic view. There is also a reset button to undo all changes you have made (that haven't been committed). In addition each field now has a "Set Default" button. Multi-choice fields are now select fields instead of a set of radio buttons. On the status screen I added a "restart" option for stopping then starting smbd and nmbd.
* added FLAG_BASIC to some browse options for swat.Herb Lewis1998-05-081-4/+4
|
* smb.h: Supporting defines for NT trans calls.Jeremy Allison1998-05-082-4/+33
| | | | | trans2.c: Paranoia bugfixes added when studying nttrans.c. Jeremy.
* Initial cut at the code that will do NT SMB calls. Not linked in, notJeremy Allison1998-05-081-0/+225
| | | | | compiled yet, just checked in for safe keeping :-). Jeremy.
* added first pass at start/get/end-ldappwent functions. unfortunately, lotsLuke Leighton1998-05-071-10/+65
| | | | | of information will be lost as these functions currently return struct smb_passwd not SAM_USER_INFO_21 or any other type of structure...
* remove unused ldap functions: add stub start/get/endldappwent routines.Luke Leighton1998-05-072-146/+97
|
* moving gethexpwd into util.c, because it's used in both smbpass.c and ldap.cLuke Leighton1998-05-075-67/+38
|
* This should (hopefully :-) be the final fix for the %U %G substitutionJeremy Allison1998-05-079-52/+57
| | | | | | | problem.... smbpass.c: Removed Luke's dire warning - as some of the functions in here *need* to be called externally :-). Jeremy.
* created "passdb.c" which is an interface point to (at present) eitherLuke Leighton1998-05-0712-140/+334
| | | | | | | | | smbpasswd or ldap passwd, at compile-time (-DUSE_LDAP). _none_ of the functions in ldap.c or smbpass.c should be called directly: only those in passdb.c should be used. -DUSE_LDAP is unlikely to compile at the moment.
* Fixed changed calls to machine password locking code.Jeremy Allison1998-05-071-5/+4
| | | | Jeremy.
* Andrew redefines the free() function to do some memory management testing.Christopher R. Hertel1998-05-061-1/+19
| | | | | | | He also suggested that some systems may implement free() as a macro (but I think he was looking for an excuse ;). Anyway, I've added a function to mangle.c that calls free(). Chris -)-----
* smbpass.c: Fixed machine_passwd_lock() problems.Jeremy Allison1998-05-064-37/+33
| | | | | | password.c: Fixed machine_passwd_lock() problems. lib/rpc/server/srv_ldap_helpers.c: Oops - broke proto.h with dummy function. Fixed now. Jeremy.
* loadparm.c: Added #ifdef USE_LDAP around ldap code.Jeremy Allison1998-05-066-38/+43
| | | | | | | | | | | | | server.c: Moved %U, %G and %N into standard_sub() from standard_sub_basic() as only smbd knows about usernames. Also fixes problem with calling standard_sub_basic() from loadparm.c. smbpass.c: Partial tidyup of machine_password_lock() code - not finished yet. util.c: Moved %U, %G and %N into standard_sub() from standard_sub_basic() as only smbd knows about usernames. Also fixes problem with calling standard_sub_basic() from loadparm.c. lib/rpc/server/srv_ldap_helpers.c: Added #ifdef USE_LDAP around ldap code. lib/rpc/server/srv_samr.c: Added #ifdef USE_LDAP around ldap code. Jeremy.
* Rolling back again to the equivalent of revision 1.22, as the currentJeremy Allison1998-05-061-382/+25
| | | | | CVS head branch will not compile. Jeremy.
* jean-francois micouleau's well-alpha code for ldap password database stuff!Luke Leighton1998-05-067-55/+859
| | | | he's going to hate me for checking this in so early, but...
* Added mksmbpasswd.sh to binary packageVolker Lendecke1998-05-062-8/+10
|
* compiler warning for unimportant uninitialised variableLuke Leighton1998-05-061-4/+4
|
* Real fix for clitar.c problems. Have now made all the rightRichard Sharpe1998-05-062-28/+385
| | | | | | | | things static, and have done a 'make proto; make clean; make'. Still get 54 compiler warnings under Digital UNIX cc. Honest. :-)
* much faster pstrcpy() and fstrcpy()Andrew Tridgell1998-05-061-16/+24
| | | | | also print out the first 50 chars of an overflowing string so we have some chance of working out what is causng them.
* Fixes for the %U and %G problems people have reported.Jeremy Allison1998-05-069-25/+38
| | | | | | | | | | | | | | | | | | Essentially, multiple session_setup_and_X's may be done to an smbd. As there is only one global variable containing the requested connection name (sessionsetup_user), then any subsequent sessionsetups overwrite this name (causing %U and %G to get the wrong name). This is particularly common when an NT client does a null session setup to get a browse list after the user has connected, but before a share has been mounted. These changes store the requested_name in the vuid structure (so this only really works for user level and above security) and copies this name back into the global variable before the standard_sub call. Jeremy.
* genrand.c: SGI compile warning fix.Jeremy Allison1998-05-0511-26/+28
| | | | | | | | | | | | | | ipc.c: Fix for duplicate printer names being long. loadparm.c: Set bNetWkstaUserLogon to false by default - new code in password.c protects us. nmbd_logonnames.c: nmbd_namequery.c: nmbd_namerelease.c: Debug messages fix. password.c: SGI compile warning fix, fix for tcon() with bNetWkstaUserLogon call. reply.c: SGI compile warning fix. server.c Debug messages fix. smbpass.c: Fix for incorrect pointer. Jeremy.
* added definitions for "password chat debug" and "unix password sync"Herb Lewis1998-05-051-1/+40
| | | | from the 1.9.18 tree
* Rolling clitar.c back to the previous rev 1.22 as the current oneJeremy Allison1998-05-051-382/+25
| | | | | needs fixing (sorry). Jeremy.
* Added bug fixes to clitar to ensure proper longfile name restoresRichard Sharpe1998-05-051-25/+382
| | | | | | occur. Also getting ready for setting directory dates correctly
* patches from jean francois: couple of minor bugsLuke Leighton1998-05-052-3/+2
|
* here is a first cut at a "fixed up" help fileHerb Lewis1998-05-011-3336/+2189
|
* mkman - add argument for making html versions of man pagesHerb Lewis1998-04-302-17/+27
| | | | idb.pl - minor fixups for sorting of output file.
* Added patch from Bruce Tenison <btenison@dibbs.net> to allow encryptedJeremy Allison1998-04-309-12/+56
| | | | | | | | passwords to be stored over time, allowing a smbpasswd file migration. Adds new parameter "update encrypted". Will also add to 1.9.18 branch. Docs update to follow. Jeremy.
* Makefile: Added files to smbpasswd.c.Jeremy Allison1998-04-297-47/+343
| | | | | | | | | | loadparm.c: Patch from tim@quiknet.com for static string problems. server.c: Setup global_myname. smbpass.c: Fix up locking. Add machine_password_delete() call. smbpasswd.c: Added provisional code to add to a domain. lib/rpc/client/cli_login.c: Fixed incorrect cred_hash3 call when setting machine password. lib/rpc/server/srv_netlog.c: Fixed incorrect cred_hash3 call when setting machine password. Jeremy.
* clientgen.c: Fixed null session setup bug.Jeremy Allison1998-04-298-33/+66
| | | | | | | | | | | password.c: Stopped cli_nt_logout call (we don't have it correct yet). Added Luke object-orientation fix :-). smb.h: Added clnt_name_slash to cli_state. lib/rpc/client/cli_login.c: Changed global_myname to clnt_name_slash where needed. lib/rpc/client/cli_netlogon.c: Fixed debug messages, don't check creds on error. lib/rpc/client/cli_pipe.c: Fixed debug messages, Added Luke object-orientation fix. lib/rpc/parse/parse_misc.c: Fixed STRING2 linearization bug that was adding 1. Jeremy.
* add clean optionHerb Lewis1998-04-291-0/+8
|