Does anyone have a more extensive Wiki plug-in example?

 

I’m needing to do an LDAP directory application, and I’m lazy, so I don’t want to do the whole UI.  So I figure I can create an LDAP search plug-in that does:

 

            $results = $xwiki.ldapsearch.search(“ldap://ldap.example.com:389/o=Top??sub?(cn=${text})”)

            Foreach ($result in $results)

                        $record = $xwiki.ldapsearch.get($result)

                        {$record.get(“cn”)}

            End

 

… or something like that – anyhow.  The idea is to create a list of names, phone numbers, etc. that match the search criteria.

 

Unfortunately, the example “hello world” plug-in does not show off a collection, so if anyone has any pointers, I’d like to hear them.

 

Of course, if anyone has already done this, I’d definitely like to hear that too.

 

 

Adrian Hall

Sr. Product Line Manager

Technology Partnerships

ahall@mirapoint.com

Ph: (408) 667-4977

MSN: ahall@mirapoint.com

Skype: adrianhall