well , i've again checked acl_users -> plugins -> plugin types and activated my Ldap object , wherever, possible., but problem still persist.

Neither its showing LDAP users in acl_users > source_users listing, nor through my script.

Do you think problem coming only becoz of Ldap not activated in some of these plugins ??

Any other pointers !!

Thanks


Yuri wrote:
Il 29/06/2010 12:34, Mayank Mathur ha scritto:
  
hi
can you brief , what you mean by "other sections" ? couldn't understand !
    

acl_users -> plugins -> plugin types

you can enable ldap in most of this section, maybe you miss some of them.


  
BTW, my LDAP authentication is working fine , as i can authenticate 
from those users, onto my Portal.

Thanks


Yuri wrote:
    
Il 29/06/2010 12:18, Mayank Mathur ha scritto:
   
      
hi
I'm trying to fetch list of  users present in my portal, through this
Page Template Code for performing some custom action :

/ *<div metal:define-macro="portlet"
      tal:define="results context/search_myusers"
      tal:condition="results">
*/
where, *search_myusers, *is a Python script , whose code is as below :

*/from Products.CMFCore.utils import getToolByName
     from DateTime import DateTime

     portal_membership = getToolByName(context, 'portal_membership')

     cur_day = DateTime().day()
     cur_month = DateTime().month()

     list=[]

     for i in portal_membership.listMemberIds():
         member = portal_membership.getMemberById(i)
         name = membro.getProperty('fullname', '')
         dateofbirth = membro.getProperty('dateofbirth', '')

         if dateofbirth:
             day = DateTime(data).day()
             month = DateTime(data).month()

         if cur_day == day and cur_month == month:
             list.append(name)

     return list
/*
I've also configured *LDAP*, and authentication will be performed from
here.
I can see all Users (including those on LDAP) , in plone_control_panel
->  List All Users, *but not inside acl_users (dont know why).
acl_users/source_users *only shows internal users.
*
*Now My problem/scenario is that , the above script is working fine
for all users, created inside portal itself. But, not working for LDAP
users.

ie, if i've 50 users on my Plone site, out of which, 20 were created
thru plone portal itself&  rest 30 users were present on LDAP server,
then, my above script is working fine&  fetching those 20 users, but
not doing anything for rest 30 LDAP users.

I hope my scenario is now clear.
Is there any functionality (in script), which is not working for LDAP
users ?

*Version Info :*

     * Plone 3.3.2
     * CMF 2.1.2
     * Zope (Zope 2.10.9-final, python 2.4.6, linux2)
     * Python 2.4.6 (#1, Jun 23 2010, 11:05:39) [GCC 4.1.2 20070925
       (Red Hat 4.1.2-27)]
     * PIL 1.1.6

Any help is appreciated !!
     
        
did you activate the ldap plugin in the various plugin sections? I think
to the *enumerate* ones, for example.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first --http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Plone-Users mailing list
Plone-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users
   
      


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Plone-Users mailing list
Plone-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users