<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Runwalsoft.com</title>
	<atom:link href="http://runwalsoft.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://runwalsoft.com</link>
	<description>Custom Website, Mobile Web App, Agile Software Developemnt</description>
	<lastBuildDate>Fri, 18 May 2012 07:19:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>cerosetenta.uniandes.edu.co</title>
		<link>http://runwalsoft.com/%archives%/cerosetenta-uniandes-edu-co/</link>
		<comments>http://runwalsoft.com/%archives%/cerosetenta-uniandes-edu-co/#comments</comments>
		<pubDate>Thu, 17 May 2012 10:48:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://runwalsoft.com/?p=437</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://runwalsoft.com/%archives%/cerosetenta-uniandes-edu-co/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dhruvcars.com</title>
		<link>http://runwalsoft.com/%archives%/dhruvcars-com/</link>
		<comments>http://runwalsoft.com/%archives%/dhruvcars-com/#comments</comments>
		<pubDate>Thu, 17 May 2012 10:29:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://runwalsoft.com/?p=434</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://runwalsoft.com/%archives%/dhruvcars-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pollyandj.com.au</title>
		<link>http://runwalsoft.com/%archives%/toplinematters-com/</link>
		<comments>http://runwalsoft.com/%archives%/toplinematters-com/#comments</comments>
		<pubDate>Wed, 09 May 2012 13:43:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://runwalsoft.com/?p=428</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://runwalsoft.com/%archives%/toplinematters-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Social</title>
		<link>http://runwalsoft.com/%archives%/social/</link>
		<comments>http://runwalsoft.com/%archives%/social/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 11:08:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Services]]></category>

		<guid isPermaLink="false">http://runwalsoft.com/?p=410</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://runwalsoft.com/%archives%/social/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Development</title>
		<link>http://runwalsoft.com/%archives%/web-development/</link>
		<comments>http://runwalsoft.com/%archives%/web-development/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 11:07:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Services]]></category>

		<guid isPermaLink="false">http://runwalsoft.com/?p=407</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://runwalsoft.com/%archives%/web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CMS</title>
		<link>http://runwalsoft.com/%archives%/cms/</link>
		<comments>http://runwalsoft.com/%archives%/cms/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 11:06:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Services]]></category>

		<guid isPermaLink="false">http://runwalsoft.com/?p=404</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://runwalsoft.com/%archives%/cms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ecommerce</title>
		<link>http://runwalsoft.com/%archives%/ecommerce/</link>
		<comments>http://runwalsoft.com/%archives%/ecommerce/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 05:12:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Services]]></category>

		<guid isPermaLink="false">http://runwalsoft.com/?p=367</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://runwalsoft.com/%archives%/ecommerce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Design</title>
		<link>http://runwalsoft.com/%archives%/web-design/</link>
		<comments>http://runwalsoft.com/%archives%/web-design/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 05:51:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Services]]></category>

		<guid isPermaLink="false">http://runwalsoft.com/?p=350</guid>
		<description><![CDATA[orem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#8217;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into [...]]]></description>
			<content:encoded><![CDATA[<p><strong>orem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry&#8217;s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
<p>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
]]></content:encoded>
			<wfw:commentRss>http://runwalsoft.com/%archives%/web-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://runwalsoft.com/%archives%/hello-world/</link>
		<comments>http://runwalsoft.com/%archives%/hello-world/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 13:42:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://runwalsoft.com/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://runwalsoft.com/%archives%/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Working with LDAP details.</title>
		<link>http://runwalsoft.com/%archives%/working-with-ldap-details/</link>
		<comments>http://runwalsoft.com/%archives%/working-with-ldap-details/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 08:30:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technologies]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[openldap]]></category>
		<category><![CDATA[slapd]]></category>

		<guid isPermaLink="false">http://www.runwalsoft.com/blog/?p=145</guid>
		<description><![CDATA[Some people like to use website to be logged in with external people. Some people wants logged in for only in-house members. so they host their on server. such time of work generally to be used only Intranet. and they don&#8217;t want internet people to logged in for the application. In such case LDAP login [...]]]></description>
			<content:encoded><![CDATA[<p>Some people like to use website to be logged in with external people. Some people wants logged in for only in-house members. so they host their on server. such time of work generally to be used only Intranet. and they don&#8217;t want internet people to logged in for the application. In such case LDAP login will be one solution. most of the organization already have their ldap is configured. so web application need to use LDAP details.</p>
<p>Following are the thing which I am expecting to be installed on your machine.</p>
<ul>
<li>openldap</li>
<li>php-ldap module</li>
<li>phpldapadmin [just to cross check functionality]</li>
</ul>
<p>LDAP is having their own structure of managing and maintaining the hierarchy. each level of representation have their pre defined schemas. These schemas are written in /etc/openldap/ldap.conf &amp; /etc/openldap/slapd.conf both of these files are only accessible to root. Please note that I have made this development in linux operating system so all documentation written here are base of linux things. </p>
<p>Now As development point of view. if you want to make the working environment on your local machine you have to perform following details.</p>
<p>Now first step is to configure slapd.conf just login as root and open this file for edit and you will see first 4-5 lines which represent their schemas</p>
<p> <code>include /etc/openldap/schema/corba.schema <br />include /etc/openldap/schema/core.schema <br />include /etc/openldap/schema/cosine.schema <br />include /etc/openldap/schema/duaconf.schema </code></p>
<p>Please note that every ldap having different set have schemas. so depending upon their ldif file has to be written. Here I have considered default installation made in fedora 13. basically ldap stores in details in light weight database structure bdb (burckley DB) or ldbm. Here I have considering bdb.</p>
<p>in slapd.conf file you will find these lines.</p>
<p><code>database bdb</code><br /><code>suffix &quot;dc=runwalsoft&quot;</code> <br /><code>rootdn &quot;cn=root,dc=runwalsoft&quot;</code></p>
<p>Might be dc and cn will be different machine to machine. Note that dc is suppose to be domain name. let say if you have your server as <em>something.com </em>then dc will be dc=something,dc=com. There are few terminologies which you need to understand here.</p>
<p>dn = Distinguished Name, cn = common name, rdn = relative distinguish name, dit = directory information tree, slapd = standalone LDAP.</p>
<p>Now In the same file you will find &quot;rootpw&quot; this is main admin password for ldap. In *nix system admin is always called as root. so machine root and ldap root you can seperate it. and its password you can set with line as follow</p>
<p>rootpw {SSHA}sDH698lRKptqw6d1uFmAKifrgZnvlcGc</p>
<p>Here ssha is encryption which is used. for setting new password you can use <em>slappasswd </em>command. when you type this in terminal they will give you some encryption for it.</p>
<p>Few lines at bottom you will find word <em>directory </em>so this is directory path where the actually directory is stored. now last but not the least at the bottom you will have to give others to access this ldap. if you don&#8217;t give access to ldap rest of the things will not be possible to use it.</p>
<p><code>access to * by dn.exact=&quot;cn=root,dc=runwalsoft&quot; read by * none</code></p>
<p>With the above line we are allowing people(inhouse users) to use access ldap structure. Now this is all you have configured ldap configuration. Now its main part is to add users or information into ldap. but before that you need to be sure whether whether ldap is working properly or not.</p>
<p>on services make sure you have enabled slapd service. or you can from command prompt start slapd service</p>
<p>service slapd restart</p>
<p>Always make one thing sure that whatever you made changes in any conf file you have to restart that service.</p>
<h1 style='font-size:14px;text-align:left;color:black;margin-top:20px;padding:0;'>How to see whether ldap is properly configured or not ?</h1>
<p>Just open terminal(command prompt) and type following code</span></p>
<p><code>ldapsearch -x -b '' -s base '(objectclass=*)'</code></span></p>
<p>In that output if you see dc then it means that functionality is proper. and configuration is made proper. </span></p>
<p>Now next part is to add ldap details e.g. user and other information. Now you have to know that every information which we are going to save it has to work with schemas which is included in slapd.conf file.</span></p>
<p>Lets create one file &quot;working.ldif&quot; where we are going to add following set of code.</span></p>
<div style='padding:10px;background-color:#DCDCDC;width:350px;'># Entry 1: dc=runwalsoft <br />dn: dc=runwalsoft<br />dc: runwalsoft<br />description: This will be Hostname;<br />o: bowling<br />objectclass: dcObject<br />objectclass: organization</p>
<p># Entry 2: ou=people,dc=runwalsoft<br />dn: ou=people,dc=runwalsoft<br />description: These are peoples<br />objectclass: organizationalUnit<br />ou: people</p>
<p># Entry 3: cn=manish,ou=people,dc=runwalsoft<br />dn: cn=manish,ou=people,dc=runwalsoft<br />cn: manish<br />objectclass: inetOrgPerson<br />objectclass: top<br />ou: Developers<br />sn: manish<br />title: Manish Runwal<br />uid: manish<br />userpassword: fedora</p>
<p># Entry 4: cn=pravin,ou=people,dc=runwalsoft<br />dn: cn=pravin,ou=people,dc=runwalsoft<br />cn: pravin<br />mail: pravin@runwalsoft.com<br />objectclass: inetOrgPerson<br />objectclass: top<br />ou: Developers<br />sn: pravin<br />title: Pravin Nirmal<br />uid: pravin<br />userpassword: fedora</p>
<p># Entry 5: cn=user1,ou=people,dc=runwalsoft<br />dn: cn=user1,ou=people,dc=runwalsoft<br />cn: User1 Lastname<br />cn: user1<br />mail: user@runwalsoft.com<br />objectclass: inetOrgPerson<br />objectclass: top<br />ou: Human Resource<br />sn: user1<br />uid: ulast1<br />userpassword: user1</p>
<p></div>
<p>Now next part will be adding this working.ldif file to ldap structure for that you need to use following command.</span></p>
<p><code>ldapadd -x -D &quot;cn=root,dc=runwalsoft&quot; -w-f working.ldif </code></span></p>
<p>After that this will ask for root&#8217;s password. enter the password, and done. things are working. now&#8230;</span></p>
<p>how to see structure of our newly created ldap ?. </span></p>
<p>a) Either you can use php program or b) you can use phpldapadmin</span></p>
<p>before making the program. I hope you have installed phpldapadmin when you try to visit site http://localhost/phpldapadmin you will see it is asking for login dn and Password</span></p>
<p>Now dn is the thing which you have written in slapd.conf file so in dn box you have to write the following things.</span></p>
<p><span style=" font-family:'Dejavu Sans Mono'; color:#000000; background-color:#e9e9e8;">cn=root,dc=runwalsoft</span></p>
<p>and in password write down the password . I am expecting that this will allows you to connect and make it working. now let say if you don&#8217;t want to login with root then also you can properly use phpldapadmin. just in dn you have to write complete path.</span></p>
<p><span style=" font-family:'Dejavu Sans Mono'; color:#000000; background-color:#e9e9e8;">cn=user1,ou=people,dc=runwalsoft</span></p>
<p>and in pasword : user1 </span>
<p>this also allows you to connect to ldap. please note that phpldapadmin only allows you to view bottom childs of your hierarchy and not the parent. </span></p>
<p>Now you will notice that when we try to create child node for ldap structure we have to use their objectClass so these objectClass differs from schema to schema. Now in the next blog you will learn how to connect ldap using php. </span></p>
<p>If you have any question don&#8217;t hesitate to ask me. I will respond your comments. </span></p>
]]></content:encoded>
			<wfw:commentRss>http://runwalsoft.com/%archives%/working-with-ldap-details/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

