r23648: Allow to list a custom krb5 keytab file with:
[ira/wip.git] / source3 / libads / kerberos_keytab.c
index 95a3a37712e13501ac32de3c5949b2edb8e074a3..a1038e1f2d22c2dae935cdaeaa1d538a9b72fafe 100644 (file)
@@ -801,7 +801,7 @@ done:
  List system keytab.
 ***********************************************************************/
 
-int ads_keytab_list(void)
+int ads_keytab_list(const char *keytab_name)
 {
        krb5_error_code ret = 0;
        krb5_context context = NULL;
@@ -819,7 +819,7 @@ int ads_keytab_list(void)
                return ret;
        }
 
-       ret = smb_krb5_open_keytab(context, NULL, False, &keytab);
+       ret = smb_krb5_open_keytab(context, keytab_name, False, &keytab);
        if (ret) {
                DEBUG(1,("ads_keytab_list: smb_krb5_open_keytab failed (%s)\n", error_message(ret)));
                goto out;