please i need you'r help .. we are designing a web site and we need a critical code in php for security , we have to read users permissions on files in the local network ,to give them the real access and permissions also in their homes(on website) not just in thier work place (by local network security)so we have to read ldap file system ,but we can't find the code required ........
22 2761
thanks alot!!!
iam exploring you'r link for php.net , but till i find my important code ,please if any one has acode that he tried and worked with him about reading ldap entries by php give me a help!!!
cause we need it as soon as possible..
Motoma 3,237
Recognized Expert Specialist
thanks alot!!!
iam exploring you'r link for php.net , but till i find my important code ,please if any one has acode that he tried and worked with him about reading ldap entries by php give me a help!!!
cause we need it as soon as possible..
There are code samples in the link I gave you.
i tried to execute some of the codes but the functions used was'nt defined in my php , i don't know if ihave to do some configurations , or install some thing so that php can connect with ldap ,or these functions are defined for use on unix only i really do'nt know...
i read alot about ldap there was functions , but they are defined in unix and you have to include aclass in you'r php , i tried to download the class but there was an error .. i'll continue my search ..
thanks alot
ronnil 134
Recognized Expert New Member
Take a look at Motoma's link under "Installati on", there you'll find information on how to enable it :)
Motoma 3,237
Recognized Expert Specialist
Take a look at Motoma's link under "Installati on", there you'll find information on how to enable it :)
ronnil is entirely right. The page I sent you to contains all the information for installing and configuring LDAP on PHP. Once you have followed those instructions, scroll further down in the page and you will see a bunch of working code samples posted by people who are using LDAP.
thank you all..
my php now sees ldap functions all you have to do is to uncomment the line :
extension=php_l dap.dll
in the php.ini file .
but now the problem that i'am facing and searching on the net is that i can't bind to ldap , the function returns false..
Motoma 3,237
Recognized Expert Specialist
thank you all..
my php now sees ldap functions all you have to do is to uncomment the line :
extension=php_l dap.dll
in the php.ini file .
but now the problem that i'am facing and searching on the net is that i can't bind to ldap , the function returns false..
Perhaps, using the information here, you could post your error message, as well as the relevant code.
Thanks,
Motoma
the following was displayed:
Warning: mysql_query(): supplied resource is not a valid MySQL-Link resource in C:\AppServ\www\ test.php on line 23
--------------------------------------------------------------------------------
MySQL Error: and my php code[apiece of it] : -
if(!($ldap=ldap_connect("aham@bir.edu"))){
-
die("ldap server can not be reached");
-
}
-
else{
-
$oudc="ou=birzeit,dc=bzu";
-
$dn2="cn=aham,".$oudc;
-
$password="all";
-
-
-
if(!($res=@ldap_bind($ldap,$dn2,$password))){
-
mysql_query($res, $ldap) or die('<hr />MySQL Error: ' .mysql_error(). '<hr />');
-
print(ldap_error($ldap)."<br>");
-
die("could not bind to $dn2");
-
-
}
-
the function mysql_query requires aquery identifier ididn't do anything till now, all i did just bind so i gave the function $res which is the bind return value, i really don't know if this is the problem .
the problem i'am facing is that its the first time i deal with ldap !!!...
Also, if i put any thing in the ldap_connect function it returns true..
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: TechBoy |
last post by:
RE: Access 2002 SP3
I have an app "App1.mdb" that has internal security built-in via a
table: tblSecurity. In this table a match is obtained to see if they
are authorized to use the app.
This application has no Jet security being used ("Users/Groups", etc.)
One of the requirements was to hide the DBWindow completely from the
users, which works fine and the DBwindow is secure from all users.
Another requirement for App1.mdb: the users...
|
by: Mark |
last post by:
Hello,
in a simple console application I try to create a file with some code like:
FileStream file = new FileStream("test.txt", FileMode.OpenOrCreate,
FileAccess.Write);
StreamWriter sw = new StreamWriter(file);
sw.Write("Hello");
sw.Close();
file.Close();
|
by: Rick Strahl [MVP] |
last post by:
I'm having problems with installation of a Web app on my Win 2003 server.
I copy up the app configure the virtual. But when I access any ASPX pages I
now get:
CS0016: Could not write to output file
'd:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\company_mywebapp\e792bb5e\ed91474e\nupdhhtj.dll' -- 'Access is denied.
'
|
by: Michal Valent |
last post by:
Hello,
if I try to read a file on the mapped network drive,
this error apears:
Logon failure: unknown user name or bad password.
How to set up permissions for IUSR_MACHINENAME
on the mapped network drive?
Thaks
|
by: Mitchell S. Honnert |
last post by:
Is there a way, given the full path of a folder on a network, that one can
programatically tell if you have Read access to that folder?
I have an application where the user is able to select a number of search
folders using the standard dialog control. There shouldn't be an issue with
the search folder being on a local drive or a network drive. But if you
don't have Read access to the folder, there's trouble. The user can see the...
| |
by: James Maeding |
last post by:
I am familiar with using My.Computer.FileSystem.GetDirectoryInfo to get folder attributes, see code below...
This does not work though for network drives on my companies system.
We use windows as our server, nothing exotic.
I looked at the security permissions and the "write" box for domain users was grey, but not checked.
This means read-only to me and sure enough, I cannot change the files.
Is there a different way to deal with...
|
by: Bill Fallon |
last post by:
I have a VS2005 VB.Net windows form application deployed to a share drive.
The windows explorer security permissions for this application (.exe) file
is set for Everyone with List Folder/Read Data not allowed. This is done so
that users cannot take away a copy of the .exe file. When I execute the
..exe from the client computer I get .Net Framework Initialization Error,
Unable to find a version of the runtime to run this application. The...
|
by: paquer |
last post by:
Database Users need to have Read/Write etc... permissions to the
folder where the Database resides in order to create the lock file.
I have read only users.
I have set up the Shortcut that links to the 'Workgroup Info File'
with permissions for said database.
Within this 'WIF' File I have "Read Only" user's who are only provided
access to the DB only so they can view the data.
Now if I give them full permissions to the folder where...
|
by: =?Utf-8?B?SmVmZkRvdE5ldA==?= |
last post by:
I have an asp.net application using a multi-page wizard control that grabs
user selected files from a database and allows the user to configure
parameters using controls on the wizard pages. The resultant files are then
submitted for simulations.
When I attempt to navigate through the wizard an exception is thrown because
I am not permitted to overwrite a file in a read-only directory. When I
uncheck the read-only on the folder...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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: 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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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: 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 we have to send another system
| |