Lines Matching refs:repository

188 static pwu_repository_t	repository;
246 repository.type = NULL;
247 repository.scope = NULL;
248 repository.scope_len = 0;
301 auth_rep.type = repository.type;
302 auth_rep.scope = repository.scope;
303 auth_rep.scope_len = repository.scope_len;
313 retval = get_namelist(repository, &namelist, &num_user);
324 (void) get_attr(namelist[i], &repository,
334 if (get_attr(usrname, &repository, &attributes) ==
368 dprintf1("call pam_chauthtok() repository name =%s\n",
369 repository.type);
450 input = userinput(usrname, &repository, ATTR_SHELL);
457 input = userinput(usrname, &repository, ATTR_GECOS);
464 input = userinput(usrname, &repository, ATTR_HOMEDIR);
475 &repository, attributes, &updated_reps);
695 /* repository: this option should be specified first */
697 if (repository.type != NULL) {
705 repository.type = optarg;
707 repository.type = optarg;
709 repository.type = optarg;
712 gettext("invalid repository: %s\n"),
721 /* if no repository the default for -d is files */
722 if (repository.type == NULL)
723 repository = __REPFILES;
729 if (IS_FILES(repository) == FALSE &&
730 IS_LDAP(repository) == FALSE) {
733 "or ldap repository\n"));
754 /* if no repository the default for -N is files */
755 if (repository.type == NULL)
756 repository = __REPFILES;
758 if (IS_FILES(repository) == FALSE &&
759 IS_LDAP(repository) == FALSE) {
762 "repository\n"));
772 if ((IS_FILES(repository) || IS_LDAP(repository)) &&
786 /* if no repository the default for -l is files */
787 if (repository.type == NULL)
788 repository = __REPFILES;
790 if (IS_FILES(repository) == FALSE &&
791 IS_LDAP(repository) == FALSE) {
794 "repository\n"));
804 if ((IS_FILES(repository) || IS_LDAP(repository)) &&
818 /* if no repository the default for -u is files */
819 if (repository.type == NULL)
820 repository = __REPFILES;
822 if (IS_FILES(repository) == FALSE &&
823 IS_LDAP(repository) == FALSE) {
826 "repository\n"));
836 if ((IS_FILES(repository) || IS_LDAP(repository)) &&
851 /* if no repository the default for -x is files */
852 if (repository.type == NULL)
853 repository = __REPFILES;
855 if (IS_FILES(repository) == FALSE &&
856 IS_LDAP(repository) == FALSE) {
859 "repository\n"));
869 if ((IS_FILES(repository) || IS_LDAP(repository)) &&
892 /* if no repository the default for -n is files */
893 if (repository.type == NULL)
894 repository = __REPFILES;
896 if (IS_FILES(repository) == FALSE &&
897 IS_LDAP(repository) == FALSE) {
900 "repository\n"));
910 if ((IS_FILES(repository) || IS_LDAP(repository)) &&
931 /* if no repository the default for -w is files */
932 if (repository.type == NULL)
933 repository = __REPFILES;
935 if (IS_FILES(repository) == FALSE &&
936 IS_LDAP(repository) == FALSE) {
939 "repository\n"));
949 if ((IS_FILES(repository) || IS_LDAP(repository)) &&
972 /* if no repository the default for -s is files */
973 if (repository.type == NULL)
974 repository = __REPFILES;
978 if (IS_FILES(repository) == FALSE &&
979 IS_LDAP(repository) == FALSE) {
982 "repository\n"));
992 if ((IS_FILES(repository) || IS_LDAP(repository)) &&
1004 /* if no repository the default for -a is files */
1005 if (repository.type == NULL)
1006 repository = __REPFILES;
1008 if (IS_FILES(repository) == FALSE &&
1009 IS_LDAP(repository) == FALSE) {
1012 "repository\n"));
1022 if ((IS_FILES(repository) || IS_LDAP(repository)) &&
1034 /* if no repository the default for -f is files */
1035 if (repository.type == NULL)
1036 repository = __REPFILES;
1038 if (IS_FILES(repository) == FALSE &&
1039 IS_LDAP(repository) == FALSE) {
1042 "repository\n"));
1052 if ((IS_FILES(repository) || IS_LDAP(repository)) &&
1065 /* if no repository the default for -e is files */
1066 if (repository.type == NULL)
1067 repository = __REPFILES;
1078 /* if no repository the default for -g is files */
1079 if (repository.type == NULL)
1080 repository = __REPFILES;
1086 if (IS_FILES(repository) && (ckuid() != SUCCESS)) {
1099 /* if no repository the default for -h is files */
1100 if (repository.type == NULL)
1101 repository = __REPFILES;
1106 if (IS_FILES(repository) && (ckuid() != SUCCESS)) {
1110 if (IS_NIS(repository)) {
1209 get_attr(char *username, pwu_repository_t *repository, attrlist **attributes)
1219 res = __get_authtoken_attr(username, repository, *attributes);
1482 get_namelist(pwu_repository_t repository, char ***namelist, int *num_user)
1484 if (IS_LDAP(repository)) {
1487 } else if (IS_FILES(repository))