GSS API error while connecting to the admin server

gregorio@le.infn.it gregorio at le.infn.it
Wed Sep 17 09:32:03 EDT 2008


Hello everyone.

I need to connect to the admin server to do some operations, so I started to
write a little program that tries to connect to the server.

Here is the code:

#include <stdio.h>
#include <string.h>
#include <krb5.h>

int main (int argc, const char* argv[]) {
        krb5_context context;
        int err;
        char *svcname = NULL;
        void *handle = NULL;
        long retval;

        err = kadm5_init_krb5_context(&context);
        printf("init context: %d\n", err);

        printf("trying init...\n");

        retval = kadm5_init_with_password("admin/admin", "password",
"service_name",  "REALM", 0x12345600|0x01, 0x12345700|0x01, &handle);
        printf("result: %d\n\n", retval);

        return 0;
}


When I execute it, I have this result for the kadm5_init_with_password function:

result: 43787566

and I find these in the kadmind log file:

kadmind[10779](Notice): Authentication attempt failed: 192.84.152.159, GSS-API
error strings are:
kadmind[10779](Notice):     Unspecified GSS failure.  Minor code may provide
more information
kadmind[10779](Notice):     Unknown code krb5 144
kadmind[10779](Notice):    GSS-API error strings complete.

Any suggestion on how to solve this?

Thanks everyone from now!




More information about the krbdev mailing list