526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek/*
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek SSSD
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek Utility functions related to ID information
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek Copyright (C) Jan Zeleny <jzeleny@redhat.com> 2012
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek This program is free software; you can redistribute it and/or modify
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek it under the terms of the GNU General Public License as published by
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek the Free Software Foundation; either version 3 of the License, or
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek (at your option) any later version.
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek This program is distributed in the hope that it will be useful,
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek but WITHOUT ANY WARRANTY; without even the implied warranty of
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek GNU General Public License for more details.
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek You should have received a copy of the GNU General Public License
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek along with this program. If not, see <http://www.gnu.org/licenses/>.
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek*/
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek#ifndef __SSS_NSS_H__
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek#define __SSS_NSS_H__
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek#include <stdbool.h>
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek#include <sys/types.h>
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek#include <talloc.h>
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozekstruct sss_nss_homedir_ctx {
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek const char *username;
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek uint32_t uid;
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek const char *original;
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek const char *domain;
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek const char *flatname;
50c9d542e8bf641412debaa82a4dcf67ddb72258Lukas Slebodnik const char *config_homedir_substr;
526a15438525417cd701f837d7085b7f8c8a6325Jakub Hrozek const char *upn;
b50baee36c9ba9e1dd3f6b9c1356482aecd08128Jakub Hrozek};
b50baee36c9ba9e1dd3f6b9c1356482aecd08128Jakub Hrozek
b50baee36c9ba9e1dd3f6b9c1356482aecd08128Jakub Hrozekchar *expand_homedir_template(TALLOC_CTX *mem_ctx, const char *template,
b50baee36c9ba9e1dd3f6b9c1356482aecd08128Jakub Hrozek bool case_sensitive,
b50baee36c9ba9e1dd3f6b9c1356482aecd08128Jakub Hrozek struct sss_nss_homedir_ctx *homedir_ctx);
b50baee36c9ba9e1dd3f6b9c1356482aecd08128Jakub Hrozek#endif
b50baee36c9ba9e1dd3f6b9c1356482aecd08128Jakub Hrozek