• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/pam_modules-140/modules/pam_mount/

Lines Matching refs:homedir

80 	char *homedir = NULL;
115 /* get the server_URL, path and homedir from OD */
116 if (PAM_SUCCESS != (retval = od_extract_home(pamh, username, &server_URL, &path, &homedir))) {
124 openpam_log(PAM_LOG_DEBUG, " homedir: %s", homedir);
130 if (0 == access(homedir, F_OK) || EACCES == errno) {
144 homedir,
164 /* cache the homedir and path for close_session */
165 pam_set_data(pamh, "homedir", homedir, openpam_free_data);
167 homedir = NULL;
172 if (NULL == path && NULL != homedir) {
176 CFStringRef mountpoint = CFStringCreateWithCString(NULL, homedir, kCFStringEncodingUTF8);
202 free(homedir);
218 char *homedir = NULL;
263 /* try to retrieve the cached homedir */
264 if (PAM_SUCCESS != pam_get_data(pamh, "homedir", (void *)&homedir)) {
265 openpam_log(PAM_LOG_DEBUG, "No cached homedir in the PAM context.");
267 if (NULL != homedir) {
268 if (NULL == (homedir = strdup(homedir))) {
269 openpam_log(PAM_LOG_ERROR, "Failed to duplicate the homedir.");
293 /* get the homedir and path or devicepath if needed */
294 if ((NULL == homedir || NULL == path) && NULL == devicepath) {
295 if (PAM_SUCCESS != (retval = od_extract_home(pamh, username, &server_URL, &path, &homedir))) {
299 if (NULL != server_URL && NULL == path && NULL != homedir) {
301 if ((NULL == (cfhomedir = CFStringCreateWithCString(kCFAllocatorDefault, homedir, kCFStringEncodingUTF8))) ||
315 if (NULL == devicepath && NULL != homedir && NULL != path) {
322 if (0 != NetFSUnmountHomeDirectory(homedir, path, pwd->pw_uid, 0)) {
330 else if (NULL != devicepath && NULL != homedir && NULL == path) {
349 free(homedir);