diff options
author | Günther Deschner <gd@samba.org> | 2008-06-17 16:20:29 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-06-17 19:54:09 +0200 |
commit | 0447e6a0a7f1b16f986f0fe5304cd65ee691277c (patch) | |
tree | 76bac74981eb3967686a152f87e8f3c1f3885d6e /source3/libads/kerberos_keytab.c | |
parent | fd288b4110a988ef37f153dfee95381f6675a7ef (diff) | |
download | samba-0447e6a0a7f1b16f986f0fe5304cd65ee691277c.tar.gz samba-0447e6a0a7f1b16f986f0fe5304cd65ee691277c.tar.bz2 samba-0447e6a0a7f1b16f986f0fe5304cd65ee691277c.zip |
libads: add ads_get_machine_kvno() to make ads_get_kvno() a bit more generic.
Guenther
(This used to be commit cb7ace209c2051ae02647188715fa6ee324c2bf6)
Diffstat (limited to 'source3/libads/kerberos_keytab.c')
-rw-r--r-- | source3/libads/kerberos_keytab.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/libads/kerberos_keytab.c b/source3/libads/kerberos_keytab.c index d0161ada01..8e6983897f 100644 --- a/source3/libads/kerberos_keytab.c +++ b/source3/libads/kerberos_keytab.c @@ -312,9 +312,9 @@ int ads_keytab_add_entry(ADS_STRUCT *ads, const char *srvPrinc) } } - kvno = (krb5_kvno) ads_get_kvno(ads, global_myname()); + kvno = (krb5_kvno) ads_get_machine_kvno(ads, global_myname()); if (kvno == -1) { /* -1 indicates failure, everything else is OK */ - DEBUG(1,("ads_keytab_add_entry: ads_get_kvno failed to determine the system's kvno.\n")); + DEBUG(1,("ads_keytab_add_entry: ads_get_machine_kvno failed to determine the system's kvno.\n")); ret = -1; goto out; } @@ -380,7 +380,7 @@ int ads_keytab_flush(ADS_STRUCT *ads) goto out; } - kvno = (krb5_kvno) ads_get_kvno(ads, global_myname()); + kvno = (krb5_kvno) ads_get_machine_kvno(ads, global_myname()); if (kvno == -1) { /* -1 indicates a failure */ DEBUG(1,("ads_keytab_flush: Error determining the system's kvno.\n")); goto out; @@ -527,9 +527,9 @@ int ads_keytab_create_default(ADS_STRUCT *ads) /* Now loop through the keytab and update any other existing entries... */ - kvno = (krb5_kvno) ads_get_kvno(ads, machine_name); + kvno = (krb5_kvno) ads_get_machine_kvno(ads, machine_name); if (kvno == -1) { - DEBUG(1,("ads_keytab_create_default: ads_get_kvno failed to determine the system's kvno.\n")); + DEBUG(1,("ads_keytab_create_default: ads_get_machine_kvno failed to determine the system's kvno.\n")); return -1; } |