diff options
Diffstat (limited to 'src/defs-nis.c')
-rw-r--r-- | src/defs-nis.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/defs-nis.c b/src/defs-nis.c index 9059248..99dd3db 100644 --- a/src/defs-nis.c +++ b/src/defs-nis.c @@ -25,6 +25,7 @@ #include <rpc/xdr.h> #include <fnmatch.h> +#include <paths.h> #include <string.h> #include "defs-nis.h" @@ -46,12 +47,12 @@ static struct configuration { {"passwd.byname", config_exact, FALSE, "(objectClass=posixAccount)", "%{uid}", NULL, - "%{uid}:%regsub(\"userPassword\",\"^\\\\{CRYPT\\\\}(..*)\",\"%1\",\"*\"):%{uidNumber}:%{gidNumber}:%{gecos:-%{cn:-}}:%{homeDirectory:-/}:%{loginShell}", + "%{uid}:%regsub(\"userPassword\",\"^\\\\{CRYPT\\\\}(..*)\",\"%1\",\"*\"):%{uidNumber}:%{gidNumber}:%{gecos:-%{cn:-}}:%{homeDirectory:-/}:%{loginShell:-" _PATH_BSHELL "}", ":"}, {"passwd.byuid", config_exact, FALSE, "(objectClass=posixAccount)", "%{uidNumber}", NULL, - "%{uid}:%regsub(\"userPassword\",\"^\\\\{CRYPT\\\\}(..*)\",\"%1\",\"*\"):%{uidNumber}:%{gidNumber}:%{gecos:-%{cn:-}}:%{homeDirectory:-/}:%{loginShell}", + "%{uid}:%regsub(\"userPassword\",\"^\\\\{CRYPT\\\\}(..*)\",\"%1\",\"*\"):%{uidNumber}:%{gidNumber}:%{gecos:-%{cn:-}}:%{homeDirectory:-/}:%{loginShell:-" _PATH_BSHELL "}", ":"}, {"group.byname", config_exact, FALSE, "(objectClass=posixGroup)", @@ -240,7 +241,7 @@ main(int argc, char **argv) unsigned int i; int c; const char *domain, *suffix; - domain = "@example.com@"; + domain = "@domain@"; suffix = "@suffix@"; while ((c = getopt(argc, argv, "d:s:")) != -1) { switch (c) { |