473,379 Members | 1,253 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

LDAP-Insufficient 'add' privilege to add the entry

18
Hi,
all i am writing a perl script to do a a bulk add of users from a file and load it to LDAP

Expand|Select|Wrap|Line Numbers
  1. $ldap = Net::LDAP->new("test.domain.com", port=>3394) or die "Can not 
  2. connected to LDAP \n"; 
  3.  
  4. $mesg=$ldap->bind("uid=testuser,ou=applicationstest,o=systemresourcestest,o=hainet,dc=hainet,dc=com",password=>"secret"); 
  5.  
  6. $cn="$last_name $first_name"; 
  7. #---------------------LDAP CONNECTION------------------ 
  8. #----------------------------------------------------- 
  9.  
  10. $dn="uid=$e_number,ou=applicationstest,o=systemresourcestest,o=hainet,dc=hainet,dc=com"; 
  11.  
  12. #$dn="uid=testuser,dc=hainet,dc=com"; 
  13.  
  14. if($action eq "A"){ 
  15. $result = $ldap->add($dn, 
  16. attr => [ 
  17. 'uid'=>'$e_number', 
  18. 'cn' =>'$cn', 
  19. 'sn' => '$first_name', 
  20. 'objectclass' => ['person','organizationalPerson', 
  21. 'inetOrgPerson' ], 
  22.  
  23. ]); 
  24.  
  25. $result->code && warn "error: ", $result->error; 
  26.  
  27. #$ldap->unbind; 
  28.  
  29.  
When i run this code i am getting an" Insufficient 'add' privilege to add"

is this an error related to my code or is it an error related to the factb that i don't have the rights to add user. I am very new to LDAP so your help would greatly be appreciated.
Sep 9 '07 #1
2 4159
numberwhun
3,509 Expert Mod 2GB
Hi,
all i am writing a perl script to do a a bulk add of users from a file and load it to LDAP

Expand|Select|Wrap|Line Numbers
  1. $ldap = Net::LDAP->new("test.domain.com", port=>3394) or die "Can not 
  2. connected to LDAP \n"; 
  3.  
  4. $mesg=$ldap->bind("uid=testuser,ou=applicationstest,o=systemresourcestest,o=hainet,dc=hainet,dc=com",password=>"secret"); 
  5.  
  6. $cn="$last_name $first_name"; 
  7. #---------------------LDAP CONNECTION------------------ 
  8. #----------------------------------------------------- 
  9.  
  10. $dn="uid=$e_number,ou=applicationstest,o=systemresourcestest,o=hainet,dc=hainet,dc=com"; 
  11.  
  12. #$dn="uid=testuser,dc=hainet,dc=com"; 
  13.  
  14. if($action eq "A"){ 
  15. $result = $ldap->add($dn, 
  16. attr => [ 
  17. 'uid'=>'$e_number', 
  18. 'cn' =>'$cn', 
  19. 'sn' => '$first_name', 
  20. 'objectclass' => ['person','organizationalPerson', 
  21. 'inetOrgPerson' ], 
  22.  
  23. ]); 
  24.  
  25. $result->code && warn "error: ", $result->error; 
  26.  
  27. #$ldap->unbind; 
  28.  
  29.  
When i run this code i am getting an" Insufficient 'add' privilege to add"

is this an error related to my code or is it an error related to the factb that i don't have the rights to add user. I am very new to LDAP so your help would greatly be appreciated.
Well, that is not a Perl error. I would definitely say that you do not have permissions to add users to your LDAP. You may want to contact your administrator about this issue.

Regards,

Jeff
Sep 9 '07 #2
jjeanj1
18
Well, that is not a Perl error. I would definitely say that you do not have permissions to add users to your LDAP. You may want to contact your administrator about this issue.

Regards,

Jeff

thanks Jeff for your prompt reply.
Sep 9 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: dmcconkey | last post by:
Hi folks, I've been searching for a while and haven't found my specific question anywhere else. If this has already been asked, please accept my appologies and point me to the appropriate...
2
by: Micha³ Kurowski | last post by:
Hi, I'd like to ask you whether anyone have built python-ldap against Sun ONE Directory v5.2 on a Solaris 9. Seems developers do not support such config, but many places on the web suggest it...
7
by: Amar | last post by:
I am trying to connect to my college LDAP directory using ASP.NET. This LDap does not have security as it returns only user demographic information. i do not need to bind with a username or...
1
by: Angel | last post by:
Hello all - I have a LDAP service running on a NT4 box (not a mbr of my AD domain), I'd like to extract the users/attributes from that LDAP service and populate my AD domain with those users and...
4
by: Terry Miller | last post by:
I have DB2 V8.2 loaded on a Redhat Enterprise Linux version 3 (RHEL 3) box. RHEL is configured to talk to LDAP for authenticaton besides the local passwd file. I can verify this by executing an su...
2
by: duncan beaumont | last post by:
Hi, - SQLserver 2000 - Yellowfin 2.4 - Windows 2003 server I have been asked to investigate seting up LDAP authentication to access our Yellowfin reporting.
5
by: Jed Parsons | last post by:
Hi, authenticates a user against our ldap server.: User types in name and password, and module sees if name and password check out right with the ldap server. I see that it's pretty...
0
by: sbartz | last post by:
Greetings, My ldap application relies on user input for a ldap server uri, so I am looking for a way to use the ldap api to determine whether the ldap server is up or not. All the docs have to...
3
by: sallas | last post by:
Hi, I have a simple LDAPS script: #!/usr/bin/python2.3 import sys import ldap if __name__ == '__main__': ldap.set_option(ldap.OPT_DEBUG_LEVEL,255)
0
by: Sells, Fred | last post by:
I'm running python 2.5 (or 2.4) in an XP environment. I downloaded and installed the .dll's from OpenLDAP-2.4.8+OpenSSL-0.9.8g-Win32.zip and copied the .dll's in c:/windows/system32 as instructed...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.