How to integrate LDAP in Perl?
来源:互联网 发布:安安软件站官网 编辑:程序博客网 时间:2024/05/14 23:37
If you try to use LDAP by adding "use Net::LDAP;"in your Perl script by you didn't have LDAP installed, you may probably get the following similar errors:
C:\Rebecca\script\perl>perl status.pl
Can't locate Net/LDAP.pm in @INC (you may need to installtheNet::LDAP module) (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) atstatus.plline 4.
How to to do here? ---- You need to install the LDAP module.
Step1: Download "perl-ldap-0.64.tar" from http://ldap.perl.org/
Step2: check @INC by "perl –v", you may get like in the end of the result:
@INC:
C:/Perl64/site/lib
C:/Perl64/lib
Step3: Copy the folders in perl-ldap-0.64\lib to either of the folder mentioned in @INC
Step4: Check if you already have it:
C:\Rebecca\script\perl>perldoc Net::LDAP
(if the following usage is shown, it means you already haveit installed)
NAME
Net::LDAP-Lightweight Directory Access Protocol
SYNOPSIS
use Net::LDAP;
after installing LDAP, run the script again, you can see thereare also some errors:
C:\Rebecca\script\perl>perl status.pl
Can't locate Convert/ASN1.pm in @INC (you may need toinstall the Convert::ASN1
BEGIN failed--compilation aborted atC:/Perl64/site/lib/Net/LDAP.pm line 12.
Compilation failed in require at status.pl line 4.
BEGIN failed--compilation aborted at status.pl line 4.
So you need to install Convert module as well
Step5: Download “Convert-ASN1-0.27.tar” from http://search.cpan.org/~gbarr/Convert-ASN1-0.27/lib/Convert/ASN1.pod
Step6: Copy the folder under Convert-ASN1-0.27\lib to C:/Perl64/site/libas well.
For more information, could be got from https://metacpan.org/pod/Net::LDAP::FAQ
- How to integrate LDAP in Perl?
- How to get all the members in user group by using LDAP in Perl?
- How to Integrate jVectorMap
- How to integrate Google Calendar in Linux desktop
- How to debug in Perl ?
- how to integrate Facebook SDK
- How to integrate struts i18n to displaytag
- how to integrate OPENH264 to webrtc sdk
- Socket Programming : How to Integrate Socket.io java Client in your Android App without Maven
- How to setup Git http authentication using LDAP in Apache
- How to unblock an LDAP blocked user in Gitlab
- HOW TO INTEGRATE TOMACAT AND APACHE
- How to integrate svn into ant
- How to integrate Asymptote with Beamer
- How to Convert gb2312 to utf8 in Perl!
- How to use next and last in Perl
- How to connect Access2007 by DBI in Perl
- How to integrate XBAP application into Java applet container?
- 让程序崩溃时生成dump文件以供调试
- StarWind使用说明
- 5.description
- 安卓开发工具汇总,开发人员必备利器
- The Tourist Guide - UVa 10099 Floyd
- How to integrate LDAP in Perl?
- 6.SEL
- Android Fragment 全面详解+Fragment应用实例
- cocos2d-x-3.3-006-核心概念和相关类-导演
- 目标检测级联分类器训练
- 7.引用计数器的基本操作
- adb debug
- 和大神们学习每天一题(leetcode)-4Sum
- eclipse的版本号与对应名称