Commit Graph

54 Commits

Author SHA1 Message Date
Assar Westerlund
986d4dc7a8 (main): only fetch stuff from krb5.conf when no option has been given
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8919 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-09 19:52:22 +00:00
Assar Westerlund
b227547119 (doit): loop until we create an error socket of an supported socket
family


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8881 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-01 21:10:52 +00:00
Assar Westerlund
1a831dae4a make trying to use encryption and bsd authentication a crime
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8424 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-21 02:10:41 +00:00
Assar Westerlund
b494b7cebb (main): work-around for setuid and capabilities bug fixed in Linux
2.2.16


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8367 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-09 10:08:30 +00:00
Johan Danielsson
6b2825f188 nuke long option from -z
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8325 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-06 09:38:47 +00:00
Johan Danielsson
118ec61bb0 don't try to encrypt if auth is broken (Daniel Kouril)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8324 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-06 09:37:32 +00:00
Assar Westerlund
8611ebf5de (proto): select on the normal socket when waiting for the daemon to
connect back to the stderr port, so that we discover when data arrives
there before.  when that happens, we assume that the daemon did not
manage to connect (because of NAT/whatever) and continue as if `-e'
was given


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8286 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-22 22:53:15 +00:00
Assar Westerlund
919dd3528a only have des stuff if KRB4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-06 05:58:56 +00:00
Assar Westerlund
9f9827aa6d htons should really be ntohs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7612 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-16 11:53:50 +00:00
Assar Westerlund
9630ea929b (doit): addrinfo returned from getaddrinfo() is not usable directly as
hints.  copy it and set AI_PASSIVE.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7598 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-16 10:26:22 +00:00
Assar Westerlund
90dea3f7a7 use getaddrinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7498 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-04 18:06:43 +00:00
Johan Danielsson
c5b916ca6f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
0d50f8f7e2 (main): remember to close the priviledged sockets before calling
rlogin


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7417 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-20 20:50:07 +00:00
Assar Westerlund
ac5267f34c (main): redo the v4/v5 selection for consistency.
-4 -> try only v4
-5 -> try only v5
none, -45 -> try v5, v4


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7297 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-02 22:45:10 +00:00
Assar Westerlund
6fb65024a7 (proto): be more careful and don't print errno when read() returns 0
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7141 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-14 08:04:20 +00:00
Assar Westerlund
538358295d call freehostent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6756 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-05 12:22:09 +00:00
Assar Westerlund
d2120e0670 remove some dead code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6750 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-05 10:17:15 +00:00
Assar Westerlund
5bbde2428f add -z' and -G' options
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6713 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-04 17:03:54 +00:00
Assar Westerlund
fb65910df2 (loop): shutdown one side of the TCP connection on EOF. From Brian A
May <bmay@dgs.monash.edu.au>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6700 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-04 06:35:50 +00:00
Assar Westerlund
f4802366f1 const fixes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6672 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-31 22:57:06 +00:00
Assar Westerlund
dcf1fc5166 v6-ify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6661 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-28 22:01:49 +00:00
Assar Westerlund
6953eeeb25 merge in ruda improvements
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6505 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-23 22:44:45 +00:00
Assar Westerlund
d0378afc05 (construct_command): handle argc == 0 for generality
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6389 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-03 02:20:50 +00:00
Assar Westerlund
12fe2d3582 new option `-e' for not trying to open an stderr socket
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6338 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 04:09:22 +00:00
Assar Westerlund
74d12332e3 use get_default_username and resulting const pollution
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6311 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 02:44:31 +00:00
Assar Westerlund
1c0c301a88 (main): try $USERNAME
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6264 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-21 09:25:28 +00:00
Assar Westerlund
0b971e1c5d (main): add fallback to rlogin
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6209 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-11 19:01:39 +00:00
Assar Westerlund
819f74720a (send_krb5_auth): call krb5_sendmail with ccache == NULL. check
return value from krb5_crypto_init


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6195 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-10 03:50:56 +00:00
Assar Westerlund
21f9540e2f (doit, proto): take a function pointer to the auth function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6178 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-09 12:44:03 +00:00
Assar Westerlund
0f15e127e3 make sure it tries with all other authentication methods after one has
failed


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6177 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-09 12:31:21 +00:00
Assar Westerlund
489626c62e (main): detect the case of no command given.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6176 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-09 11:43:44 +00:00
Assar Westerlund
24abaad83b new option --forwardable
use print_version


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5921 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-10 23:47:06 +00:00
Assar Westerlund
f91baf6b28 (krb5_forward_cred): zero out creds
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5919 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-10 22:18:56 +00:00
Assar Westerlund
1bc24be4d4 (loop): more braces to make gcc happy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5724 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-24 02:59:39 +00:00
Johan Danielsson
aaae186ab9 merge new-crypto branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5332 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-11 21:03:59 +00:00
Assar Westerlund
1e3ca44412 (main): initialize host
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5179 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-02 00:15:22 +00:00
Assar Westerlund
fc1956b05f new arg_printusage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5130 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-18 21:17:01 +00:00
Assar Westerlund
2faac49878 kludges for parsing `rsh hostname -l user'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5105 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-07-30 16:14:12 +00:00
Johan Danielsson
613f9d20a4 Don't try v5 if (only) `-4' is specified.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4773 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-18 19:12:56 +00:00
Assar Westerlund
2217cbd614 (send_krb5_auth): swap the order of the `local_user' and the
`remote_user'


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4210 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-17 01:31:27 +00:00
Assar Westerlund
dce96a31c3 changed struct fd_set' to fd_set'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4074 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-29 06:17:18 +00:00
Assar Westerlund
30ab742f48 implemented BSD-style reserved port `authentication'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3976 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-12 01:35:46 +00:00
Assar Westerlund
f5fc784fff use roken_*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3693 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-29 01:25:14 +00:00
Johan Danielsson
023d1960b0 context to krb5_getportbyname
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3315 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-31 17:54:35 +00:00
Assar Westerlund
894632e17a fix call to `krb5_sname_to_principal'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2785 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-08 03:48:00 +00:00
Assar Westerlund
5962efedfa Use getarg. Implement forwarding.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2628 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-25 15:32:09 +00:00
Johan Danielsson
5a32a5c8e7 Add copyright notice.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2389 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 21:40:05 +00:00
Assar Westerlund
e686a72a20 support conditional KRB4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2219 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-12 22:33:32 +00:00
Assar Westerlund
8db38bb682 fix argc checking
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2181 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-12 14:37:31 +00:00
Assar Westerlund
ddd70197df use the correct user for the checksum
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2109 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-09 05:30:55 +00:00