[Freeipa-devel] [PATCH] 485 fix ipa-compat-manage and ipa-nis-manage
Rob Crittenden
rcritten at redhat.com
Wed Jul 14 21:44:05 UTC 2010
Adam Young wrote:
> On 07/14/2010 03:40 PM, Rob Crittenden wrote:
>> The commands ipa-compat-manage and ipa-nis-manage didn't really work
>> properly. I think some backend changes caused at least some of the
>> problems. I fixed a few errors causing backtraces as well as some
>> corner cases.
>>
>> Enabling nis added a new compat location. So disabling compat would
>> fail because it wasn't handling this new nis location.
>>
>> I also ran pylint against both and fixed a few problems/warnings it
>> raised.
>>
>> rob
>>
>>
>> _______________________________________________
>> Freeipa-devel mailing list
>> Freeipa-devel at redhat.com
>> https://www.redhat.com/mailman/listinfo/freeipa-devel
> NACK:
>
> [root at ipa ~]# ipa-compat-manage enable
> Directory Manager password:
>
> Enabling plugin
> This setting will not take effect until you restart Directory Server.
>
> [root at ipa ~]# ipa-nis-manage enable
> Directory Manager password:
>
> Enabling plugin
> Traceback (most recent call last):
> File "/usr/sbin/ipa-nis-manage", line 201, in <module>
> sys.exit(main())
> File "/usr/sbin/ipa-nis-manage", line 150, in main
> conn.update_entry(nis_config_dn, mod, normalize=False)
> File "/usr/lib/python2.6/site-packages/ipalib/encoder.py", line 188,
> in new_f
> return f(*new_args, **kwargs)
> File "/usr/lib/python2.6/site-packages/ipaserver/plugins/ldap2.py",
> line 687, in update_entry
> raise errors.EmptyModlist()
> ipalib.errors.EmptyModlist: no modifications to be performed
The problem was we ship with the plugin enabled and we were trying to do
an LDAP mod to enable it, so literally nothing to do.
I also made ipa-nis-manage require that the schema compat plugin already
be enabled.
rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-485-2-compat.patch
Type: application/mbox
Size: 12423 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20100714/c94a6add/attachment.mbox>
More information about the Freeipa-devel
mailing list