/*
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 *template,
bool case_sensitive,
struct sss_nss_homedir_ctx *homedir_ctx)
{
char *copy;
char *p;
char *n;
return NULL;
}
if (homedir_ctx == NULL) {
return NULL;
}
goto done;
}
goto done;
}
p = copy;
*n = '\0';
n++;
if ( *n == '\0' ) {
"the template.\n");
goto done;
}
switch( *n ) {
case 'u':
"Cannot expand user name template because user name "
"is empty.\n");
goto done;
}
case_sensitive, 0);
goto done;
}
break;
case 'l':
"Cannot expand first letter of user name template "
"because user name is empty.\n");
goto done;
}
case_sensitive, 0);
goto done;
}
break;
case 'U':
if (homedir_ctx->uid == 0) {
"because uid is invalid.\n");
goto done;
}
homedir_ctx->uid);
break;
case 'd':
"template because domain name "
"is empty.\n");
goto done;
}
break;
case 'f':
"name template because domain "
"or user name is empty.\n");
goto done;
}
case_sensitive, 0);
goto done;
}
break;
case 'o':
"Original home directory for %s is not available, "
orig = "";
} else {
}
break;
case 'F':
"template because domain flat "
"name is empty.\n");
goto done;
}
break;
case 'H':
"Cannot expand home directory substring template "
"substring is empty.\n");
goto done;
}
break;
case 'P':
"Cannot expand user principal name template "
"string is empty.\n");
goto done;
}
homedir_ctx->upn);
break;
case '%':
break;
default:
"[%%%c].\n", *n);
goto done;
}
goto done;
}
p = n + 1;
}
goto done;
}
done:
return res;
}