Lines Matching defs:principal
142 /* get the principal from afpd and import it into server_name */
146 char *fqdn, *service, *principal, *p;
163 "get_afpd_principal: could not retrieve information from afpd, using default service principal(s)");
169 /* allocate memory to hold the temporary principal string */
171 if ( NULL == (principal = (char*) malloc( principal_length)) ) {
179 * Build the principal string.
182 strlcpy( principal, service, principal_length);
183 strlcat( principal, "@", principal_length);
187 * We need to strip the port from fqdn for principal.
192 strlcat( principal, fqdn, principal_length);
196 * Import our principal into the gssapi internal representation
199 s_princ_buffer.value = principal;
200 s_princ_buffer.length = strlen( principal ) + 1;
202 LOG(log_debug, logtype_uams, "get_afpd_principal: importing principal `%s'", principal);
210 * Don't release the s_princ_buffer, we free principal instead.
212 free(principal);
215 /* Importing our service principal failed, bail out. */
400 /* import our principal name from afpd */