summaryrefslogtreecommitdiffstats
path: root/src/appl
Commit message (Collapse)AuthorAgeFilesLines
* Removed extern global of krb5_kdc_req_sumtype, which wasn't being usedTheodore Tso1996-01-112-1/+5
| | | | | | anyway. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7292 dc483132-0cff-0310-8789-dd5450dbe970
* forward.c (get_for_creds): Removed no longer used functionTheodore Tso1996-01-103-165/+55
| | | | | | | | kerberos5.c (kerberos5_forward): Convert from using get_for_creds() from forward.c to using the official library routine, krb5_fwd_tgt_creds(). Misc. lint cleanups. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7285 dc483132-0cff-0310-8789-dd5450dbe970
* forward.c (get_for_creds): Removed no longer used functionTheodore Tso1996-01-103-158/+10
| | | | | | | kcmd.c (kcmd): Convert from using get_for_creds() from forward.c to using the official library routine, krb5_fwd_tgt_creds(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7284 dc483132-0cff-0310-8789-dd5450dbe970
* Removed sys/fcntl.h checking (always use fcntl.h instead)Richard Basch1996-01-044-8/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7268 dc483132-0cff-0310-8789-dd5450dbe970
* * gss-client.c (main, client_establish_context): If the -d flag isTheodore Tso1996-01-043-6/+25
| | | | | | | given to the client, then try to delegate credentials when establishing the context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7265 dc483132-0cff-0310-8789-dd5450dbe970
* If HAVE_SHADOW is defined, and no shadow password entry is availble,Theodore Tso1995-12-222-2/+7
| | | | | | try using the password entry in the password file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7249 dc483132-0cff-0310-8789-dd5450dbe970
* Also include unistd.h, if it's availableTheodore Tso1995-12-192-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7236 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Use krb5util libraryEzra Peisach1995-12-063-1/+9
| | | | | | | * login.c (main): Change two-argument call to syslog to three arguments to handle screw cases in hostnames. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7178 dc483132-0cff-0310-8789-dd5450dbe970
* The BSD application suite only understands using 1-DES as a session key typeRichard Basch1995-12-051-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7163 dc483132-0cff-0310-8789-dd5450dbe970
* Applied patch from Scott Schwartz <schwartz@galapagos.cse.psu.edu>Theodore Tso1995-12-012-0/+67
| | | | | | | | | | | | | | | | | | | | | | Under SunOS, and maybe other systems, there is a a problem with krlogind.c and a similar problem with login.c as distributed with K5.5. The bug is that rlogind forks a child but retains a controlling tty. If the child is in the same process group as the parent, which is will if you don't use a job control shell (chsh /bin/rc), keyboard signals will kill the daemon. telnetd dissociates itself properly, but then login.krb5 waits for the shell to finish, but login.krb5 has the same ctty as the shell and is in the same process group, so it has the same problem. In BSD you used to be able to give up your ctty at will, but SunOS seems to have setsid as the only mechanism to perform that action, and setsid can only succeed in limited circumstances. Rlogind ought to be fixed to behave more like telnetd, but independent of that, login.krb5 needs to be patched if kerberos is to work properly under SunOS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7154 dc483132-0cff-0310-8789-dd5450dbe970
* * state.c: use P properly so it won't break non-ansi compilersTom Yu1995-11-272-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7126 dc483132-0cff-0310-8789-dd5450dbe970
* Add IEXTEN to lflagsSam Hartman1995-11-173-2/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7111 dc483132-0cff-0310-8789-dd5450dbe970
* * *.c (*): initialize lock_arg to a copy of a staticMark Eichin1995-11-163-0/+15
| | | | | | | | | | | | | | (thus zero) struct flock, to avoid panic'ing sunos 4.1.4. If you call fcntl F_SETLKW with l_type == F_UNLCK and l_xxx == 15 (GRANT_LOCK_FLAG) you'll panic sunos 4.1.4 with assertion failed: ld->l_xxx != GRANT_LOCK_FLAG, file: ../../ufs/ufs_lockf.c, line: 995 Since automatic structs like these have random values in uninitialized fields, we initialize from a static struct (since using memset in this case is abhorrent, and naming l_xxx is non POSIX.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7109 dc483132-0cff-0310-8789-dd5450dbe970
* * telnetd.8: source tmac.doc for correct parsingMark Eichin1995-11-132-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7092 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c: initialize line (to avoid splitting up forward.c.)Mark Eichin1995-11-132-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7091 dc483132-0cff-0310-8789-dd5450dbe970
* * forward.c: set KRB5_DEFAULT_LIFE to 10 hours, not 8.Mark Eichin1995-11-133-3/+19
| | | | | | | | | | * forward.c (rd_and_store_for_creds): construct correct cache name for forwarded tickets (based on tty name if available) and drop it into the environment so login notices it. also, fix typo in comment in kerberos5.c git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7090 dc483132-0cff-0310-8789-dd5450dbe970
* * krshd.c (doit): drag TZ= from parent environment into envinit toMark Eichin1995-11-132-2/+21
| | | | | | | pass to child. (envinit, TZENV): add one more slot for optional TZ, and mark it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7089 dc483132-0cff-0310-8789-dd5450dbe970
* sim_client.c (main): Use krb5_get_server_rcache instead of duplicatingEzra Peisach1995-11-092-21/+12
| | | | | | code. Remove use of krb5_clockskew variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7074 dc483132-0cff-0310-8789-dd5450dbe970
* remove rcs keyword cruft which doesn't make much sense in CVS.Mark Eichin1995-11-036-17/+7
| | | | | | | | removal simplifies merging. I left in the RCSID's that are in actual error table values (*_RCSID typically) but comments had them elided (Source keywords replaced with a literal pathname, Id totally removed.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7014 dc483132-0cff-0310-8789-dd5450dbe970
* If invoked with the -D port option, do not die if proper entry is missingEzra Peisach1995-11-024-42/+65
| | | | | | | | | from /etc/services... This is for the dejagnu suite running on a machine following the installation instructions - i.e. make, make check. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7010 dc483132-0cff-0310-8789-dd5450dbe970
* Disallow changes to AOUT_LD_* environment variablesRichard Basch1995-10-251-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6995 dc483132-0cff-0310-8789-dd5450dbe970
* Reversed the check for strchr(). If strchr(varp, '=') is true then weRichard Basch1995-10-241-1/+1
| | | | | | reject the bad environment variable as it contains an =. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6993 dc483132-0cff-0310-8789-dd5450dbe970
* 1. Do not end syslog messages with \n (it messes up the logs).Richard Basch1995-10-231-24/+21
| | | | | | | | 2. Prototyped envvarok() to ensure proper usage. 3. Prohibit the change of ELF_LD_* environment variables (Linux) 4. Syslog attempts to pass bad environment variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6987 dc483132-0cff-0310-8789-dd5450dbe970
* Print messages using \r\n so that the display in binary mode will be correct.Richard Basch1995-10-231-129/+129
| | | | | | Additionally, perror should not be using \n as it appends the error message. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6986 dc483132-0cff-0310-8789-dd5450dbe970
* Print all statements using \r\n so that they will be properly formattedRichard Basch1995-10-232-7/+7
| | | | | | when binary mode is being used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6985 dc483132-0cff-0310-8789-dd5450dbe970
* syslog statements should not be called with \nRichard Basch1995-10-232-5/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6984 dc483132-0cff-0310-8789-dd5450dbe970
* Minor fix to last commitSam Hartman1995-10-222-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6980 dc483132-0cff-0310-8789-dd5450dbe970
* Integrate patch including functionality from David Borman's latestSam Hartman1995-10-212-0/+29
| | | | | | telnet, adapted for krb5. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6978 dc483132-0cff-0310-8789-dd5450dbe970
* ----------------------------------------------------------------------Sam Hartman1995-10-162-1/+6
| | | | | | | | | | | automatically CVS: CVS: Committing in . CVS: CVS: Modified Files: ---------------------------------------------------------------------- login.krb5: Don't display warning about no tickets being obtained if -F, -f or -k specified. CVS: git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6971 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed location where usage() wasn't being called with an argumentTheodore Tso1995-10-152-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6967 dc483132-0cff-0310-8789-dd5450dbe970
* * gss-misc.c (recv_token): When continuing partial read, decreaseEzra Peisach1995-10-122-1/+7
| | | | | | number of bytes to read. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6966 dc483132-0cff-0310-8789-dd5450dbe970
* Fix handling of session key for Kerberos5. I don't think this shouldSam Hartman1995-10-103-0/+10
| | | | | | | | | | | | | | fix the mutual authentication bug with beta 4, but this should help forwarding credentials and should also help if someone actually defines ENCRYPTION. If user defines ENCRYPTION, telnetd has the nasty behavior of encrypting one side of the conversation, without telling the user; in particular, only server output is encrypted. Fixed by sending a do encrypt if encryption defined; fix taken from Athena telnetd. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6955 dc483132-0cff-0310-8789-dd5450dbe970
* Fix handling of session key for Kerberos5. I don't think this shouldSam Hartman1995-10-102-30/+44
| | | | | | | | fix the mutual authentication bug with beta 4, but this should help forwarding credentials and should also help if someone actually defines ENCRYPTION. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6954 dc483132-0cff-0310-8789-dd5450dbe970
* (recv_token): When continuning a partial read over the network, putEzra Peisach1995-10-082-1/+6
| | | | | | | | | | | the incomming data into the middle of the token - not back at the start. Now, can someone explain why under NetBSD, in one direction 400+ bytes could be sent at one time, but in the reverse, 102 had to be broken down into 100 + 2? Anyways, this fixes the NetBSD problem with the tests. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6948 dc483132-0cff-0310-8789-dd5450dbe970
* gss-client.c (main): Set display_file to be stdoutTheodore Tso1995-09-294-24/+37
| | | | | | | | | | | gss-server.c (main): Set display_file to 0 if using inetd; otherwise, set it to be stdout. gss-misc.c (send_token, recv_token, display_status): If display_file is null, don't set it to stderr; just don't print the log message instead. Needed for inetd operation. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6892 dc483132-0cff-0310-8789-dd5450dbe970
* Initialize the service name to SAMPLE_SERVICE instead of leaving as NULLEzra Peisach1995-09-182-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6808 dc483132-0cff-0310-8789-dd5450dbe970
* Fix optional host parsing so that host is recognized as an argumentTheodore Tso1995-09-162-2/+12
| | | | | | | without the -h option. Free the context and auth_context structures before exiting. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6803 dc483132-0cff-0310-8789-dd5450dbe970
* Free the context and auth_context before exitingTheodore Tso1995-09-162-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6802 dc483132-0cff-0310-8789-dd5450dbe970
* Add an optional third argument which allows the user to set theTheodore Tso1995-09-162-6/+14
| | | | | | Kerberos service name to be used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6801 dc483132-0cff-0310-8789-dd5450dbe970
* Allow the user to specify the service instance using the -s option.Theodore Tso1995-09-162-26/+44
| | | | | | | Use SO_REUSEEADDR so that the port can be immediately reused. Free the context and auth_context before exiting. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6800 dc483132-0cff-0310-8789-dd5450dbe970
* (sign_server): Only try using gss_export_context andTheodore Tso1995-09-162-24/+58
| | | | | | | | | | | | gss_import_context if the dov2 flag has been set. (server_establish_context): Make sure the client gss_name_t is released. (main): Add a -once option which causes the gss-server to exit after processing one client. Allows purify to report memory leaks. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6799 dc483132-0cff-0310-8789-dd5450dbe970
* Improved (and changed) input argument handling, to make sim_serverTheodore Tso1995-09-152-21/+81
| | | | | | | more flexible. This should make it possible to run sim_server from a DejaGnu test suite. Fixed -Wall nits. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6795 dc483132-0cff-0310-8789-dd5450dbe970
* Use separate definitions for the Kerberos instance name and the UDPTheodore Tso1995-09-152-1/+7
| | | | | | port name. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6794 dc483132-0cff-0310-8789-dd5450dbe970
* sim_client.c (main): Added better options parsing for more flexibilityTheodore Tso1995-09-153-53/+140
| | | | | | | | | | | in calling this program. Worked around breakage in the Solaris Streams Sockets emulation where getsockname() can not be used to find out the address of a network interface. configure.in: If we are including both -lsocket and -lnsl, #define BROKEN_STREAMS_SOCKETS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6791 dc483132-0cff-0310-8789-dd5450dbe970
* * encrypt.h, kerberos5.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/gChris Provenzano1995-09-063-2/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6700 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_stash.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/gChris Provenzano1995-09-066-7/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6699 dc483132-0cff-0310-8789-dd5450dbe970
* * kerberos5.c : Remove krb5_enctype references, and replace withChris Provenzano1995-09-062-11/+10
| | | | | | krb5_keytype where appropriate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6664 dc483132-0cff-0310-8789-dd5450dbe970
* gss-misc.c: Either include stdlib.h or declare mallocEzra Peisach1995-09-043-2/+13
| | | | | | configure.in: Check for stdlib.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6658 dc483132-0cff-0310-8789-dd5450dbe970
* Update for GSSAPI-V2. Add -v2 switch to use some of these featuresPaul Park1995-08-315-23/+193
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6639 dc483132-0cff-0310-8789-dd5450dbe970
* Use new gss_{im,ex}port_sec_contextPaul Park1995-08-293-2/+44
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6630 dc483132-0cff-0310-8789-dd5450dbe970