summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index ada0ed53e1..c1285bc64b 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -636,6 +636,10 @@ static struct functable net_func[] = {
exit(1);
}
}
+
+ if (!opt_password) {
+ opt_password = getenv("PASSWD");
+ }
rc = net_run_function(argc_new-1, argv_new+1, net_func, net_help);