diff options
author | Martin Kosek <mkosek@redhat.com> | 2013-01-25 10:10:17 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-02-11 15:38:22 +0100 |
commit | 67d8b434c5272fd47d2e168c2b97077c70c016c2 (patch) | |
tree | eba3725e946445b2f5acc5eceea2fa666a5e730b /tests/test_xmlrpc/xmlrpc_test.py | |
parent | f7e27b547547be06f511a3ddfaff8db7d0b7898f (diff) | |
download | freeipa.git-67d8b434c5272fd47d2e168c2b97077c70c016c2.tar.gz freeipa.git-67d8b434c5272fd47d2e168c2b97077c70c016c2.tar.xz freeipa.git-67d8b434c5272fd47d2e168c2b97077c70c016c2.zip |
Add trusconfig-show and trustconfig-mod commands
Global trust configuration is generated ipa-adtrust-install script
is run. Add convenience commands to show auto-generated options
like SID or GUID or options chosen by user (NetBIOS). Most of these
options are not modifiable via trustconfig-mod command as it would
break current trusts.
Unit test file covering these new commands was added.
https://fedorahosted.org/freeipa/ticket/3333
Diffstat (limited to 'tests/test_xmlrpc/xmlrpc_test.py')
-rw-r--r-- | tests/test_xmlrpc/xmlrpc_test.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_xmlrpc/xmlrpc_test.py b/tests/test_xmlrpc/xmlrpc_test.py index 7c32be0d..610fa97c 100644 --- a/tests/test_xmlrpc/xmlrpc_test.py +++ b/tests/test_xmlrpc/xmlrpc_test.py @@ -40,6 +40,16 @@ fuzzy_uuid = Fuzzy( '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$' ) +# Matches trusted domain GUID, like u'463bf2be-3456-4a57-979e-120304f2a0eb' +fuzzy_guid = fuzzy_uuid + +# Matches SID of a trusted domain +# SID syntax: http://msdn.microsoft.com/en-us/library/ff632068.aspx +_sid_identifier_authority = '(0x[0-9a-f]{1,12}|[0-9]{1,10})' +fuzzy_domain_sid = Fuzzy( + '^S-1-5-21-%(idauth)s-%(idauth)s-%(idauth)s$' % dict(idauth=_sid_identifier_authority) +) + # Matches netgroup dn. Note (?i) at the beginning of the regexp is the ingnore case flag fuzzy_netgroupdn = Fuzzy( '(?i)ipauniqueid=[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12},cn=ng,cn=alt,%s' % api.env.basedn |