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($conne ct, $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=Ma nagers,OU=Secur ity,DC=www,DC=m ycompany,DC=org ",1=>"CN=Execut ives,OU=MailLis ts,DC=www,DC=my company,DC=org" )
);
ldap_add($conne ct, $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 0 2351 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 server is
on.
The following code works:
objADSite.Provider = "ADsDSOObject"
objADSite.Properties("Encrypt Password") = True
objADSite.Open "Ads Provider" 'Ads Provider
|
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 of several groups.
Can anyone see what i am doing wrong here?
public bool IsAuthenticated(string domain, string username, string pwd)
{
|
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
|
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
But I am having a problem figuring out the LDAP://
The LDAP:// that I pass looks like this (i substitued generic the
|
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
VB.NET
| |
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 starting the application. I have Google'd LDAP and ASP until my eyes hurt, looking for the correct procedure to do a user lookup from ASP.
The platforms are Server:win2000/20003, clients:win2K and winXP
I am hoping to eventually put a standard type login...
|
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 = ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3) or
die ("Could not set ldap protocol");
$bd = ldap_bind($ad, $ADuser, $ADpass) or die ("Could not
|
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 library "GetGroups" otpion for "memberOf" object.
but it's not security group filter. all users login my web site this my code
below;
using System;
|
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 to read them.
Here is my actual code, it is not the cleanest as I am learning python.
Suggestions are welcomed :)
Runnig this script on RedHat 5.x with "python zimbra2.py" returns:
{'info': '', 'desc': 'Size limit exceeded'}
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |