summaryrefslogtreecommitdiffstats
path: root/source/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-11-24 14:16:41 +0000
committerAndrew Tridgell <tridge@samba.org>2001-11-24 14:16:41 +0000
commit058a5aee901e6609969ef7e1d482a720a84a4a12 (patch)
tree64dec5228fbdc2371ad88e1252fe7d52650de823 /source/libsmb
parentad7afbfdea600a62fa1550bd354996ad38807533 (diff)
downloadsamba-058a5aee901e6609969ef7e1d482a720a84a4a12.tar.gz
samba-058a5aee901e6609969ef7e1d482a720a84a4a12.tar.xz
samba-058a5aee901e6609969ef7e1d482a720a84a4a12.zip
added "net join" command
this completes the first stage of the smbd ADS support
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/clikrb5.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/libsmb/clikrb5.c b/source/libsmb/clikrb5.c
index b4ce271235e..37b92b8d99f 100644
--- a/source/libsmb/clikrb5.c
+++ b/source/libsmb/clikrb5.c
@@ -95,6 +95,7 @@ DATA_BLOB krb5_get_ticket(char *principal)
krb5_context context;
krb5_auth_context auth_context = NULL;
DATA_BLOB ret;
+ krb5_enctype enc_types[] = {ENCTYPE_DES_CBC_MD5, ENCTYPE_NULL};
retval = krb5_init_context(&context);
if (retval) {
@@ -109,6 +110,12 @@ DATA_BLOB krb5_get_ticket(char *principal)
goto failed;
}
+ if ((retval = krb5_set_default_tgs_ktypes(context, enc_types))) {
+ DEBUG(1,("krb5_set_default_tgs_ktypes failed (%s)\n",
+ error_message(retval)));
+ goto failed;
+ }
+
if ((retval = krb5_mk_req2(context,
&auth_context,
0,