summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorAlexander Wuerstlein <arw@arw.name>2012-09-30 04:32:01 +0200
committerAndrew Bartlett <abartlet@samba.org>2012-10-18 09:51:35 +0200
commit64886e312fe76145c2c4bc900b794274594368aa (patch)
treeba879867fb7372741c3a1b8ec953eb04fa8acb36 /source4/scripting
parent071047e8953f36a4c71c30d9540323578a4204f2 (diff)
downloadsamba-64886e312fe76145c2c4bc900b794274594368aa.tar.gz
samba-64886e312fe76145c2c4bc900b794274594368aa.tar.bz2
samba-64886e312fe76145c2c4bc900b794274594368aa.zip
Warn when setting UID/GID without idmap_ldb:use rfc2307 = Yes
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Oct 18 09:51:35 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/netcmd/user.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/netcmd/user.py b/source4/scripting/python/samba/netcmd/user.py
index 9472cd1d14..9bb232b550 100644
--- a/source4/scripting/python/samba/netcmd/user.py
+++ b/source4/scripting/python/samba/netcmd/user.py
@@ -160,6 +160,10 @@ Example4 shows how to create a new user with Unix UID, GID and login-shell set f
lp = sambaopts.get_loadparm()
creds = credopts.get_credentials(lp)
+ if uid_number or gid_number:
+ if not lp.get("idmap_ldb:use rfc2307"):
+ self.outf.write("You are setting a Unix/RFC2307 UID or GID. You may want to set 'idmap_ldb:use rfc2307 = Yes' to use those attributes for XID/SID-mapping.\n")
+
try:
samdb = SamDB(url=H, session_info=system_session(),
credentials=creds, lp=lp)