473,508 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Altering LDAP memberof attribute

I have been using PHP's LDAP protocal to access Active Directory in my
company. Authentication, search, and attribute editing have been
working great for some time. Recently, I've been assigned to update our
online AD manager to include membership altering - the "memberof"
attribute.

The user I use for working with LDAP is an admin, so it has full
permissions.

Adding a user with with ldap_add() an array like this work fine:
---
$profile = array(
"givenname" => "Bob",
"sn" => "Smith"
);

ldap_add($connect, $dn, $profile);
---

But, when I try to add the "memberof" attribute, which supports
multiple entries, in a structure like this, it doesn't work.
---
$profile = array(
"givenname" => "Bob",
"sn" => "Smith",
"memberof" =>
array(0=>"CN=Managers,OU=Security,DC=www,DC=mycomp any,DC=org",1=>"CN=Executives,OU=MailLists,DC=www, DC=mycompany,DC=org")
);

ldap_add($connect, $dn, $profile);
---

When I try this LDAP returns the following error:
Warning: ldap_add(): Add: DSA is unwilling to perform
I am good with PHP and comfortable with LDAP, but don't know enough to
really troubleshoot why this isn't working because I am following the
array format required as doc'ed by PHP.

Any thoughts or exmaples is greatly appreciated
Thanks,
~Brian
Columbus, OH

Dec 9 '05 #1
0 2343

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1785
by: RygelX | last post by:
Im using IIS and ASP and am forcing user authentication. I have the webserver in the same forest as the LDAP server, but the domain that the LDAP server is on doesnt trust the domain that the web...
1
25348
by: Henrik | last post by:
Hi, I am trying to autheticate a user in ldap and get a list of all the groups the the use is a member of. My problem is that i only get one groups from the request, although i know i am memeber...
2
11890
by: ffmelo | last post by:
Hi, I have a user object (Directory Entry). How do I to get the groups which this user is member. I am using the LDAP. thanks. Posted Via Usenet.com Premium Usenet Newsgroup Services
3
16423
by: mrwoopey | last post by:
Hi, I am using the example "Authenticate against the Active Directory by Using Forms Authentication and Visual Basic .NET": http://support.microsoft.com/default.aspx?scid=KB;EN-US;326340 ...
1
11582
by: websupport | last post by:
My problem is that I can find the user using the CN='Full Name' I only have User.Identity.Name ='username\domain' I need find out what groups the user is in. Using: ISS 6 on Windows 2003...
0
2137
williak
by: williak | last post by:
Hi I am new to this forum so if I make a mistake in protocol let me know. OK I have been asked to convert my existing ASP application to make users authenticate with our LDAP servers before...
0
1933
by: rumich | last post by:
Hi, I have the following problem when trying to retrieve Windows 2003 AD entry (objectclass=person). <?php $ad = ldap_connect($ADhost,$ADldap_port) or die( "Could not connect!" ); $set =...
0
2453
by: =?Utf-8?B?TXV0bHVPemVs?= | last post by:
Hi All, I planned the Form authenticaon with ldap i assigned to code and works fine, but i want to Filter security group member, only sign in "Messenger" group in my web site, i used msdn...
1
5423
by: Erick Perez - Quadrian Enterprises, S.A. | last post by:
Hi, I have a MS Windows AD domain, and have one OU with more tan 1000 users objects. When I try to read it, I hit the 1000 limit of AD while returning objects, so I'm asking for advice as to how...
0
7224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7120
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1553
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.