sss_nss.c revision 6fc4702a3037d9bb5b27bcb58f70edf1802b7b19
/*
SSSD
Utility functions related to ID information
Copyright (C) Jan Zeleny <jzeleny@redhat.com> 2012
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/>.
*/
const char *flatname)
{
char *copy;
char *p;
char *n;
return NULL;
}
goto done;
}
goto done;
}
p = copy;
*n = '\0';
n++;
if ( *n == '\0' ) {
"the template.\n"));
goto done;
}
switch( *n ) {
case 'u':
"because user name is empty.\n"));
goto done;
}
username);
break;
case 'U':
if (uid == 0) {
"because uid is invalid.\n"));
goto done;
}
uid);
break;
case 'd':
"template because domain name "
"is empty.\n"));
goto done;
}
domain);
break;
case 'f':
"name template because domain "
"or user name is empty.\n"));
goto done;
}
break;
case 'o':
("Original home directory for %s is not available, "
"using empty string\n", username));
orig = "";
} else {
}
break;
case 'F':
"template because domain flat "
"name is empty.\n"));
goto done;
}
break;
case '%':
break;
default:
"[%%%c].\n", *n));
goto done;
}
goto done;
}
p = n + 1;
}
goto done;
}
done:
return res;
}