Skip to content

Commit

Permalink
Move keytab_copy to krb5samba lib
Browse files Browse the repository at this point in the history
This is a helper fucntion that uses purely krb5 code, so it belongs to
krb5samba which is the krb5 wrapper for samba.
  • Loading branch information
simo5 committed May 4, 2012
1 parent 94b9af6 commit c2f6632
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
*/

#include "includes.h"
#include "system/kerberos.h"
#include "auth/kerberos/kerberos.h"
#include "krb5_samba.h"

static krb5_boolean
compare_keyblock(const krb5_keyblock *a, const krb5_keyblock *b)
Expand Down
11 changes: 11 additions & 0 deletions lib/krb5_wrap/krb5_samba.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,17 @@ bool unwrap_edata_ntstatus(TALLOC_CTX *mem_ctx,
DATA_BLOB *edata,
DATA_BLOB *edata_out);


krb5_error_code kt_copy(krb5_context context,
const char *from,
const char *to);
krb5_error_code kt_copy_one_principal(krb5_context context,
const char *from,
const char *to,
const char *principal,
krb5_kvno kvno,
krb5_enctype *enctypes);

#endif /* HAVE_KRB5 */

int cli_krb5_get_ticket(TALLOC_CTX *mem_ctx,
Expand Down
2 changes: 1 addition & 1 deletion lib/krb5_wrap/wscript_build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python

bld.SAMBA_LIBRARY('krb5samba',
source='krb5_samba.c',
source='krb5_samba.c keytab_util.c',
deps='samba-util asn1util talloc krb5 com_err',
private_library=True
)
2 changes: 1 addition & 1 deletion source4/auth/kerberos/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ bld.SAMBA_SUBSYSTEM('KRB_INIT_CTX',
)

bld.SAMBA_LIBRARY('authkrb5',
source='kerberos_pac.c keytab_copy.c',
source='kerberos_pac.c',
autoproto='proto.h',
public_deps='ndr-krb5pac krb5samba samba_socket LIBCLI_RESOLVE asn1',
deps='auth_sam_reply tevent LIBPACKET ndr ldb krb5samba KRB_INIT_CTX KRB5_PAC errors',
Expand Down

0 comments on commit c2f6632

Please sign in to comment.