]> git.sur5r.net Git - openldap/commitdiff
krb5_get_init_creds_opt_init is deprecated pw-kerberos-deprecation-fix-rebase
authorJakob Haufe <sur5r@sur5r.net>
Thu, 30 May 2013 14:48:41 +0000 (16:48 +0200)
committerJakob Haufe <sur5r@sur5r.net>
Tue, 24 Nov 2015 22:15:41 +0000 (23:15 +0100)
Use krb5_get_init_creds_opt_alloc instead.

contrib/slapd-modules/passwd/kerberos.c

index ea73c9ec71b4b0f7992f3f26afd6a88946720f33..beff45b80ba0f615dc5d4122791f175fd2427e47 100644 (file)
@@ -101,7 +101,7 @@ static int chk_kerberos(
                krb5_context context;
                krb5_error_code ret;
                krb5_creds creds;
-               krb5_get_init_creds_opt get_options;
+               krb5_get_init_creds_opt *get_options;
                krb5_verify_init_creds_opt verify_options;
                krb5_principal client, server;
 #ifdef notdef
@@ -118,7 +118,7 @@ static int chk_kerberos(
                        pre_auth_types, 1);
 #endif
 
-               krb5_get_init_creds_opt_init( &get_options );
+               krb5_get_init_creds_opt_alloc( context, &get_options );
 
                krb5_verify_init_creds_opt_init( &verify_options );
        
@@ -131,7 +131,7 @@ static int chk_kerberos(
 
                ret = krb5_get_init_creds_password( context,
                        &creds, client, cred->bv_val, NULL,
-                       NULL, 0, NULL, &get_options );
+                       NULL, 0, NULL, get_options );
 
                if (ret) {
                        krb5_free_principal( context, client );