<?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>renemoser.net &#187; ldap</title>
	<atom:link href="http://www.renemoser.net/tag/ldap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.renemoser.net</link>
	<description>more or less a tech blog</description>
	<lastBuildDate>Mon, 02 Aug 2010 08:39:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Zivios: Consolidated management portal</title>
		<link>http://www.renemoser.net/2008/09/zivios-consolidated-management-portal/</link>
		<comments>http://www.renemoser.net/2008/09/zivios-consolidated-management-portal/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 11:54:14 +0000</pubDate>
		<dc:creator>resmo</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[ca]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[kerberos]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[ntp]]></category>

		<guid isPermaLink="false">http://www.renemoser.net/?p=307</guid>
		<description><![CDATA[Zivios [1] aims to be a consolidated management portal for providing core infrastructure services using opensource technologies. The long term goals of Zivios are:

 Identity Management
 Single Sign-on and Certificate authority
 Package and Patch Management
 Service Management
 Network Monitoring
 Backup provisioning
 Core Infrastructure Services (NTP,DNS, etc)

Zivios is an n-tiered PHP-5 application. It uses MySQL and [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Zivios [1] aims to be a consolidated management portal for providing core infrastructure services using opensource technologies. The long term goals of Zivios are:</p>
<ul>
<li> Identity Management</li>
<li> Single Sign-on and Certificate authority</li>
<li> Package and Patch Management</li>
<li> Service Management</li>
<li> Network Monitoring</li>
<li> Backup provisioning</li>
<li> Core Infrastructure Services (NTP,DNS, etc)</li>
</ul>
<p>Zivios is an n-tiered PHP-5 application. It uses <a href="http://www.mysql.com/">MySQL</a> and <a href="http://www.openldap.org/">OpenLDAP</a> as it&#8217;s datastore, with OpenLdap being the primary backend for identity management and application integration and MySQL being used for panel specific data.</p>
<p><a href="http://framework.zend.com/">Zend Framework</a> is our framework of choice and Zivios implements its MVC design pattern.</p>
<p><a href="http://www.renemoser.net/wp-content/uploads/2008/09/technical-backend-small1.png"><img class="alignnone size-full wp-image-309" title="technical-backend-small1" src="http://www.renemoser.net/wp-content/uploads/2008/09/technical-backend-small1.png" alt="" width="451" height="211" /></a></p></blockquote>
<p>[1] <a href="http://www.zivios.org/">http://www.zivios.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.renemoser.net/2008/09/zivios-consolidated-management-portal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LDAP Authentication using Java</title>
		<link>http://www.renemoser.net/2008/01/ldap-authentication-using-java/</link>
		<comments>http://www.renemoser.net/2008/01/ldap-authentication-using-java/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 14:29:14 +0000</pubDate>
		<dc:creator>resmo</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[ldap]]></category>

		<guid isPermaLink="false">http://www.renemoser.net/archives/210</guid>
		<description><![CDATA[Hier ist ein Stück Javacode mit dem man eine LDAP Authentifizierung realisieren kann:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import javax.naming.*;
import javax.naming.directory.*;
import java.util.Hashtable;
&#160;
/**
 * Demonstrates how to create an initial context to an LDAP server
 * using simple authentication.
 */
&#160;
class Simple &#123;
    public static void main&#40;String&#91;&#93; args&#41; &#123;
    	Hashtable authEnv = new Hashtable&#40;11&#41;;
    [...]]]></description>
			<content:encoded><![CDATA[<p>Hier ist ein Stück Javacode mit dem man eine LDAP Authentifizierung realisieren kann:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.naming.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.naming.directory.*</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.Hashtable</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #008000; font-style: italic; font-weight: bold;">/**
 * Demonstrates how to create an initial context to an LDAP server
 * using simple authentication.
 */</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">class</span> Simple <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    	<span style="color: #003399;">Hashtable</span> authEnv <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">Hashtable</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">11</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #003399;">String</span> userName <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;johnlennon&quot;</span><span style="color: #339933;">;</span>
    	<span style="color: #003399;">String</span> passWord <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;sushi974&quot;</span><span style="color: #339933;">;</span>
    	<span style="color: #003399;">String</span> base <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;ou=People,dc=example,dc=com&quot;</span><span style="color: #339933;">;</span>
    	<span style="color: #003399;">String</span> dn <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;uid=&quot;</span> <span style="color: #339933;">+</span> userName <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;,&quot;</span> <span style="color: #339933;">+</span> base<span style="color: #339933;">;</span>
    	<span style="color: #003399;">String</span> ldapURL <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;ldap://ldap.example.com:389&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    	authEnv.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Context</span>.<span style="color: #006633;">INITIAL_CONTEXT_FACTORY</span>,<span style="color: #0000ff;">&quot;com.sun.jndi.ldap.LdapCtxFactory&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   		authEnv.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Context</span>.<span style="color: #006633;">PROVIDER_URL</span>, ldapURL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   		authEnv.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Context</span>.<span style="color: #006633;">SECURITY_AUTHENTICATION</span>, <span style="color: #0000ff;">&quot;simple&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   		authEnv.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Context</span>.<span style="color: #006633;">SECURITY_PRINCIPAL</span>, dn<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   		authEnv.<span style="color: #006633;">put</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Context</span>.<span style="color: #006633;">SECURITY_CREDENTIALS</span>, passWord<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    	<span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
    		<span style="color: #003399;">DirContext</span> authContext <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">InitialDirContext</span><span style="color: #009900;">&#40;</span>authEnv<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Authentication Success!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">AuthenticationException</span> authEx<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Authentication failed!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    	<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">NamingException</span> namEx<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Something went wrong!&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    		namEx.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    	<span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.renemoser.net/2008/01/ldap-authentication-using-java/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
