#ifndef HAVE_NSS_CFGFILE
#define HAVE_NSS_CFGFILE

#define  TRUE		1
#define  FALSE		0

#define NSS_SECTION "ncp_nss"
struct nss_ncp_conf {
        int     debug;
        int     useTree;        // use Tree connection or server connection
        char *  server;         // name of server or tree
        char *  startCtx;       // start searching is this context (and below)
        char *  ctrlGroup;      // limit search to members of this NDS group for passwd and shadow
        int     defGid;         // if no primary group found in NDS use this value
        char *  defShell;       // if no shell found in NDS use this value
        int     fallbackUid;    //  if no UID found in NDS use this one (-1= skip user, NFS_NOBODY= use this UID)
        int     fallbackGid;    //  if no GID found in NDS use this one (-1= skip group, NFS_NOBODY= use this GID)
        int     doPassword;     // if  0, will return immediarly NSS_STATUS_UNAVAILABLE even if ncp is listed in /etc/nsswitch.conf
        int     doGroup;        // if  0, will return immediarly NSS_STATUS_UNAVAILABLE even if ncp is listed in /etc/nsswitch.conf
        int     doShadow;       // if  0, will return immediarly NSS_STATUS_UNAVAILABLE even if ncp is listed in /etc/nsswitch.conf
};

struct nss_ncp_conf* parse_conf(void);
void free_nss_ncp_conf(struct nss_ncp_conf *conf);

#endif
