Coverage for ipalib/plugins/range : 89%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# Authors: # Sumit Bose <sbose@redhat.com> # # Copyright (C) 2012 Red Hat # see file 'COPYING' for use and warranty information # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>.
Manage ID ranges """)
""" Range object. """
'ipasecondarybaserid', 'ipanttrusteddomainsid', 'iparangetype']
Str('cn', cli_name='name', label=_('Range name'), primary_key=True, ), Int('ipabaseid', cli_name='base_id', label=_("First Posix ID of the range"), ), Int('ipaidrangesize', cli_name='range_size', label=_("Number of IDs in the range"), ), Int('ipabaserid', cli_name='rid_base', label=_('First RID of the corresponding RID range'), ), Int('ipasecondarybaserid?', cli_name='secondary_rid_base', label=_('First RID of the secondary RID range'), ), Str('ipanttrusteddomainsid?', cli_name='dom_sid', label=_('Domain SID of the trusted domain'), ), Str('iparangetype?', label=_('Range type'), flags=['no_option'], ) )
entry_attrs['iparangetype'] = [unicode(_('Active Directory domain range'))] else:
'ipasecondarybaserid' not in options): raise errors.ValidationError(name=_('Range setup'), error=_('Ranges for local domain ' \ 'must have a secondary RID base'))
entry_attrs['objectclass'].append('ipatrustedaddomainrange') else:
'%(count)d range matched', '%(count)d ranges matched', 0 )
# Since all range types are stored within separate containers under # 'cn=ranges,cn=etc' search can be done on a one-level scope attrs_list.append('objectclass') return (filters, base_dn, ldap.SCOPE_ONELEVEL)
for dn,entry in entries: self.obj.handle_iparangetype(entry, options) return truncated
|