summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2013-02-07 14:59:00 +0100
committerMartin Kosek <mkosek@redhat.com>2013-02-12 10:43:47 +0100
commitc04a348a5efad8978266e794a6125fb05c0ea98c (patch)
treee6313296141a4ac0351d375c3d349283ae244ad1 /ipaserver
parent677e53ec839c8e81508ee11bd194255c5db42ed1 (diff)
downloadfreeipa.git-c04a348a5efad8978266e794a6125fb05c0ea98c.tar.gz
freeipa.git-c04a348a5efad8978266e794a6125fb05c0ea98c.tar.xz
freeipa.git-c04a348a5efad8978266e794a6125fb05c0ea98c.zip
Add SID blacklist attributes
Update our LDAP schema and add 2 new attributes for SID blacklist definition. These new attributes can now be set per-trust with trustconfig command. https://fedorahosted.org/freeipa/ticket/3289
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/dcerpc.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipaserver/dcerpc.py b/ipaserver/dcerpc.py
index 54a70def..bff435f7 100644
--- a/ipaserver/dcerpc.py
+++ b/ipaserver/dcerpc.py
@@ -60,6 +60,14 @@ The code in this module relies heavily on samba4-python package
and Samba4 python bindings.
""")
+def is_sid_valid(sid):
+ try:
+ security.dom_sid(sid)
+ except TypeError:
+ return False
+ else:
+ return True
+
access_denied_error = errors.ACIError(info=_('CIFS server denied your credentials'))
dcerpc_error_codes = {
-1073741823: