krb5_utils.c revision 29f1ec57d0329cefd5797a10736528d0b2b326b5
/*
SSSD
Kerberos 5 Backend Module -- Utilities
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2009 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <string.h>
#include <stdlib.h>
#include "providers/krb5/krb5_utils.h"
#include "providers/krb5/krb5_auth.h"
const char *template)
{
char *copy;
char *p;
char *n;
const char *dummy;
return NULL;
}
return NULL;
}
return NULL;
}
p = copy;
*n = '\0';
n++;
if ( *n == '\0' ) {
return NULL;
}
switch( *n ) {
case 'u':
"because user name is empty.\n"));
return NULL;
}
break;
case 'U':
"because uid is invalid.\n"));
return NULL;
}
break;
case 'p':
"because upn is empty.\n"));
return NULL;
}
break;
case '%':
break;
case 'r':
return NULL;
}
break;
case 'h':
"because the path is not available.\n"));
return NULL;
}
break;
case 'd':
return NULL;
}
break;
case 'P':
"because PID is not available.\n"));
return NULL;
}
break;
default:
return NULL;
}
return NULL;
}
p = n + 1;
}
return result;
}