Re: [Freeipa-users] memberof plugin?

2014-08-01 Thread Martin Kosek
On 08/01/2014 12:40 AM, Kat wrote:
 Hi,
 
 I must be missing something obvious in getting memberof plugin to work.. Any
 ideas?
 
 Thanks in advance...
 ~K
 
 --
 
 ./fixup-memberof.pl  -D 'cn=Directory Manager' -b 'dc=red,dc=lemon,dc=com' -w 
 - -v
 ldap_initialize( ldap://localhost:7389 )
 add objectclass:
 top
 extensibleObject
 add cn:
 memberOf_fixup_2014_7_26_22_33_31
 add basedn:
 dc=red,dc=lemon,dc=com
 adding new entry cn=memberOf_fixup_2014_7_26_22_33_31, cn=memberOf task,
 cn=tasks, cn=config
 ldap_add: No such object (32)
 

Are you using FreeIPA or just standalone 389-ds-base instance?

Does the memberOf task object exist?

$ ldapsearch -x -D cn=Directory Manager -w Secret123 -b cn=memberOf task,
cn=tasks, cn=config

Is the MemberOf plugin enabled? (cn=MemberOf Plugin,cn=plugins,cn=config)

Are there any /var/log/dirsrv/slapd-YOUR-REALM/errors?

HTH,

Martin

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project


[Freeipa-users] memberof plugin?

2014-07-31 Thread Kat

Hi,

I must be missing something obvious in getting memberof plugin to work.. 
Any ideas?


Thanks in advance...
~K

--

./fixup-memberof.pl  -D 'cn=Directory Manager' -b 
'dc=red,dc=lemon,dc=com' -w - -v

ldap_initialize( ldap://localhost:7389 )
add objectclass:
top
extensibleObject
add cn:
memberOf_fixup_2014_7_26_22_33_31
add basedn:
dc=red,dc=lemon,dc=com
adding new entry cn=memberOf_fixup_2014_7_26_22_33_31, cn=memberOf 
task, cn=tasks, cn=config

ldap_add: No such object (32)

--
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project


[Freeipa-users] MemberOf plugin and LDAP filter

2012-09-18 Thread James James
Hi everybody,

can somebody help me with the memberof plugin ? Is there a way to add the
memberof attribute like it was in 389-ds ?
For my mailing list program, I want to have the email of the emails of all
the person belongings to a group. Is there a filter to do that ?

Thanks.
___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] MemberOf plugin and LDAP filter

2012-09-18 Thread Rob Crittenden

James James wrote:

Hi everybody,

can somebody help me with the memberof plugin ? Is there a way to add
the memberof attribute like it was in 389-ds ?
For my mailing list program, I want to have the email of the emails of
all the person belongings to a group. Is there a filter to do that ?


To find all e-mail address of users in group mygroup use:

$ ldapsearch -Y GSSAPI -b 'cn=users,cn=accounts,dc=example,dc=com' 
'(memberOf=cn=mygroup,cn=groups,cn=accounts,dc=example,dc=com)' mail


This will include nested users who are in groups that are members of 
mygroup.


rob

___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users


Re: [Freeipa-users] MemberOf plugin and LDAP filter

2012-09-18 Thread James James
Thanks for your answer.
In my group I have to users but when I use this command :

 $ ldapsearch -Y GSSAPI -b 'cn=users,cn=accounts,dc=example,dc=com'
'(memberOf=cn=mygroup,cn=groups,cn=accounts,dc=example,dc=com)' mail

the result is:

# search result
search: 2
result: 0 Success

How can I check my memberOf plugin ?


2012/9/18 Rob Crittenden rcrit...@redhat.com

 James James wrote:

 Hi everybody,

 can somebody help me with the memberof plugin ? Is there a way to add
 the memberof attribute like it was in 389-ds ?
 For my mailing list program, I want to have the email of the emails of
 all the person belongings to a group. Is there a filter to do that ?


 To find all e-mail address of users in group mygroup use:

 $ ldapsearch -Y GSSAPI -b 'cn=users,cn=accounts,dc=**example,dc=com'
 '(memberOf=cn=mygroup,cn=**groups,cn=accounts,dc=example,**dc=com)' mail

 This will include nested users who are in groups that are members of
 mygroup.

 rob

___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users

Re: [Freeipa-users] MemberOf plugin and LDAP filter

2012-09-18 Thread Rob Crittenden

James James wrote:

Oups in the first message I should write :
I want to have the email of the emails of all the person belonging to a
group.

and not
I want to have the email of the emails of all the person belongingS to a
group.

:0)


I'd pick a user you know is in the group and start there:

ldapsearch -Y GSSAPI -b 'cn=users,cn=accounts,dc=example,dc=com' 
uid=someuser memberof


Confirm that there is a memberof for that user.

This is all pre-configured, there shouldn't be the need to do anything.

rob




2012/9/18 James James jre...@gmail.com mailto:jre...@gmail.com

Thanks for your answer.
In my group I have to users but when I use this command :


  $ ldapsearch -Y GSSAPI -b 'cn=users,cn=accounts,dc=example,dc=com'
'(memberOf=cn=mygroup,cn=groups,cn=accounts,dc=example,dc=com)' mail

the result is:

# search result
search: 2
result: 0 Success

How can I check my memberOf plugin ?



2012/9/18 Rob Crittenden rcrit...@redhat.com
mailto:rcrit...@redhat.com

James James wrote:

Hi everybody,

can somebody help me with the memberof plugin ? Is there a
way to add
the memberof attribute like it was in 389-ds ?
For my mailing list program, I want to have the email of the
emails of
all the person belongings to a group. Is there a filter to
do that ?


To find all e-mail address of users in group mygroup use:

$ ldapsearch -Y GSSAPI -b
'cn=users,cn=accounts,dc=__example,dc=com'
'(memberOf=cn=mygroup,cn=__groups,cn=accounts,dc=example,__dc=com)'
mail

This will include nested users who are in groups that are
members of mygroup.

rob





___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users


Re: [Freeipa-users] MemberOf plugin keeps disabling account

2010-03-18 Thread James Roman
Just for posterity. The issue ended up being that the AD and FreeIPA 
were out of sync. One of the sub-containers in the Active Directory 
containing disabled accounts was moved outside of the scope of the sync 
agreement. We never ran a replica init, so a number of scheduled syncs 
were pending.



On 03/17/2010 04:00 PM, James Roman wrote:



The memberof plugin does not change group memberships it only updates
the memberof attribute to keep it in sync with the member ones.

Simo.

I made a mistake interpreting the audit log initially.  I realized 
after I created the subject that the MemberOf changes reflect the 
changes being made in the background to the individual record to 
populate the memberOf attributes for the change I initiated. Since the 
audit records don't actually say what the MemberOf plugins are 
changing in the record (they only report updating the modifiersname), 
I thought it was actually what was changing the group membership back.


Something else was changing the group membership back (or rolling back 
the initial change), but it is not being recorded in the audit logs.


I still can't get my head around why the audit log reports both 
plugins making changes to the record, even though the 389 MemberOf 
plugin is disabled.


time: 20100317111527
dn: uid=afflicted.user,cn=users,cn=accounts,dc=domain,dc=com
changetype: modify
replace: modifiersName
modifiersName: cn=ipa-memberof,cn=plugins,cn=config
-
replace: modifyTimestamp
modifyTimestamp: 20100317151502Z
-

time: 20100317111529
dn: uid=afflicted.user,cn=users,cn=accounts,dc=domain,dc=com
changetype: modify
replace: modifiersName
modifiersName: cn=MemberOf Plugin,cn=plugins,cn=config

___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users


___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users


Re: [Freeipa-users] MemberOf plugin keeps disabling account

2010-03-18 Thread Rob Crittenden

James Roman wrote:
Just for posterity. The issue ended up being that the AD and FreeIPA 
were out of sync. One of the sub-containers in the Active Directory 
containing disabled accounts was moved outside of the scope of the sync 
agreement. We never ran a replica init, so a number of scheduled syncs 
were pending.


Glad you figured it out. Thanks for closing the loop :-)

cheers

rob

___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users


Re: [Freeipa-users] MemberOf plugin keeps disabling account

2010-03-17 Thread James Roman


Well, the current 389 memberOf is a bit more advanced than the 
ipa-memberOf. We did the initial development of the plugin, then it 
got moved into mainline 389-ds. The ipa plugin should work fine 
though, I don't know of any reason to switch.


rob
Any idea why both are being executed? Even when the MemberOf Plugin is 
disabled?


# ipa-memberof, plugins, config
dn: cn=ipa-memberof,cn=plugins,cn=config
..
nsslapd-pluginEnabled: on


# MemberOf Plugin, plugins, config
dn: cn=MemberOf Plugin,cn=plugins,cn=config
..
nsslapd-pluginEnabled: off

Is it possible that the DS upgrade steps on the ipa-memberof libraries 
in some way, causing both to be executed? I would imagine that having 
two plugins making the same update to the directory could be 
problematic.  Maybe its the way the audit logging is occurring.


___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users


Re: [Freeipa-users] MemberOf plugin keeps disabling account

2010-03-17 Thread James Roman



To actually disable the plugin you need a restart after you change the
config, but please *do not* do that unless you want trouble :)

The memberof plugin does not change group memberships it only updates
the memberof attribute to keep it in sync with the member ones.

Simo.

   
Just to clarify, we never disabled the 389 MemberOf plugin. My original 
ldif dump after the upgrade to 1.2.5 had the 389 DS memberOf plugin 
disabled. So it never was enabled. This probably meant little to us from 
a functional standpoint because we already had the FreeIPA ipa_memberof 
plugin installed and enabled.


Do I need both of them enabled? Or will that cause additional misery? Of 
the two, ipa-memberof and 389's memberOf plugin, which should I enable?


___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users


Re: [Freeipa-users] MemberOf plugin keeps disabling account

2010-03-17 Thread Simo Sorce
On Wed, 17 Mar 2010 15:24:18 -0400
James Roman james.ro...@ssaihq.com wrote:

 
  To actually disable the plugin you need a restart after you change
  the config, but please *do not* do that unless you want trouble :)
 
  The memberof plugin does not change group memberships it only
  updates the memberof attribute to keep it in sync with the member
  ones.
 
  Simo.
 
 
 Just to clarify, we never disabled the 389 MemberOf plugin. My
 original ldif dump after the upgrade to 1.2.5 had the 389 DS memberOf
 plugin disabled. So it never was enabled. This probably meant little
 to us from a functional standpoint because we already had the FreeIPA
 ipa_memberof plugin installed and enabled.
 
 Do I need both of them enabled? Or will that cause additional misery?
 Of the two, ipa-memberof and 389's memberOf plugin, which should I
 enable?
 

Oh sorry, no I misunderstood. You can't have both enabled they would
interfere, only one or the other.
The 389 memberof plugin is probably better now, as we merge all the
code we developed for ipa in there. But unless you have specific
problems you can just leave it as it is.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York

___
Freeipa-users mailing list
Freeipa-users@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-users