LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-21-2009, 10:46 PM   #1
tuxtutorials
Member
 
Registered: Dec 2008
Location: New York
Distribution: RedHat, Solaris
Posts: 68

Rep: Reputation: 16
Inserting data into ldap via PHP


Hi!, I am trying to accomplish the following goals and I was wondering if any PHP developers can give me some leads on if this is possible. I have already finished the first piece of the script which was to query our AS400 and grab user information such as password, and user_name. I now have data in 2 rows stored in an array in PHP. I now need to somehow get this data into Active directory so they can be accounts in AD. The goal was to extract user_name and password from AS400 and then somehow inject into AD so users on the AS400 could auth via Radius using their password and username on our WiFi network. Can the LDAP injection piece of this code work? I am not sure on how to go about this? Should the user_name and password be dumped to a flat file and sent over to AD some how?

Thanks
 
Old 01-22-2009, 08:41 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by tuxtutorials View Post
Hi!, I am trying to accomplish the following goals and I was wondering if any PHP developers can give me some leads on if this is possible. I have already finished the first piece of the script which was to query our AS400 and grab user information such as password, and user_name. I now have data in 2 rows stored in an array in PHP. I now need to somehow get this data into Active directory so they can be accounts in AD. The goal was to extract user_name and password from AS400 and then somehow inject into AD so users on the AS400 could auth via Radius using their password and username on our WiFi network. Can the LDAP injection piece of this code work? I am not sure on how to go about this? Should the user_name and password be dumped to a flat file and sent over to AD some how?

Thanks
This page http://us2.php.net/manual/en/book.ldap.php can give you lots of LDAP resources for PHP. Specifically, there are LDAP add/modify/delete commands, with examples.

Reading the users from the AS400, and getting them into an array in PHP is the hard part.
 
Old 01-24-2009, 01:57 PM   #3
tuxtutorials
Member
 
Registered: Dec 2008
Location: New York
Distribution: RedHat, Solaris
Posts: 68

Original Poster
Rep: Reputation: 16
Thank you for the resources TBOne I have already got the data from the 400 into the array. This is the last part of my journey. Thanks for letting me know this is possible.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Inserting Data In A Mysql Database Using PHP Dapernia Programming 5 09-17-2007 10:05 AM
MySQL and PHP Error when inserting data JockVSJock Programming 2 10-06-2006 01:53 PM
inserting the data thru php in a text file suchi_s Programming 5 02-02-2005 03:28 AM
I need help with inserting data into mysql w/ PHP lostboy Programming 3 08-25-2003 12:08 PM
Problem Inserting MySQL data from PHP! rhuser Linux - Software 9 03-03-2003 07:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration