Bug 120589 - New Port: net/p5-Net-LDAP-LDAPhash This module generates a hash out of the return of Net::LDAP::Search.
Summary: New Port: net/p5-Net-LDAP-LDAPhash This module generates a hash out of the r...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-13 02:10 UTC by Zane C. Bowers-Hadley
Modified: 2008-02-17 11:20 UTC (History)
0 users

See Also:


Attachments
p5-Net-LDAP-LDAPhash.shar (2.27 KB, text/plain)
2008-02-13 02:10 UTC, Zane C. Bowers-Hadley
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zane C. Bowers-Hadley 2008-02-13 02:10:01 UTC

LDAPhash ( mesg )

This takes from a search and turns it into a hash.

The returned has is in the following format.

        {DN}{ldap}{attribute}[array of values for this attribute]

The reason for the {ldap} is to allow for other values and the like to be tagged onto a hash for a DN that are unrelated to LDAP.

This function does not make any attempt to check if the search succedded or not.






        use Net::LDAP::LDAPhash;

        my $ldapconnection = Net::LDAP->new( "127.0.0.1" )

        my $bindMessage->bind( "cn=admin,dc=someBase", password=>"password", version=>3 );

        my $mesg = $ldapconnection->search(scope=>"sub","dc=someBase", filter=>"(objectClass=*)");

        my %foo = LDAPhash($mesg);

How-To-Repeat: 

1: unshar
2:
3: enjoy
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2008-02-17 11:12:00 UTC
State Changed
From-To: open->closed

New port added. Thanks!
Comment 2 dfilter service freebsd_committer freebsd_triage 2008-02-17 11:12:15 UTC
miwi        2008-02-17 11:12:05 UTC

  FreeBSD ports repository

  Modified files:
    net                  Makefile 
  Added files:
    net/p5-Net-LDAP-LDAPhash Makefile distinfo pkg-descr pkg-plist 
  Log:
  This takes from a search and turns it into a hash.
  
  The returned has is in the following format.
  
  {DN}{ldap}{attribute}[array of values for this attribute]
  
  The reason for the {ldap} is to allow for other values and
  the like to be tagged onto a hash for a DN that are unrelated to LDAP.
  
  This function does not make any attempt to check if the search succedded
  or not.
  
  WWW: http://search.cpan.org/dist/Net-LDAP-LDAPhash/
  
  PR:             ports/120589
  Submitted by:   Zane C, Bowers <vvelox at vvelox.net>
  
  Revision  Changes    Path
  1.1966    +1 -0      ports/net/Makefile
  1.1       +21 -0     ports/net/p5-Net-LDAP-LDAPhash/Makefile (new)
  1.1       +3 -0      ports/net/p5-Net-LDAP-LDAPhash/distinfo (new)
  1.1       +13 -0     ports/net/p5-Net-LDAP-LDAPhash/pkg-descr (new)
  1.1       +7 -0      ports/net/p5-Net-LDAP-LDAPhash/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"