<?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>OpenLDAP Archives - Vavai&#039;s Personal Notes</title>
	<atom:link href="https://www.vavai.net/tag/openldap/feed/" rel="self" type="application/rss+xml" />
	<link>https://vavai.net/tag/openldap/</link>
	<description>Life is our precious gift</description>
	<lastBuildDate>Wed, 31 Mar 2010 02:33:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>User Account Integration between Samba PDC &#038; Zimbra Mail Server on openSUSE/SLES</title>
		<link>https://www.vavai.net/user-account-integration-between-samba-pdc-zimbra-mail-server-on-opensuse-sles/</link>
					<comments>https://www.vavai.net/user-account-integration-between-samba-pdc-zimbra-mail-server-on-opensuse-sles/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Rivai]]></dc:creator>
		<pubDate>Wed, 31 Mar 2010 02:33:08 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[OpenLDAP]]></category>
		<category><![CDATA[PDC]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[SLES]]></category>
		<category><![CDATA[SUSE Family]]></category>
		<category><![CDATA[Zimbra]]></category>
		<guid isPermaLink="false">http://v2.vavai.net/?p=1172</guid>

					<description><![CDATA[<p>Note : This is part one of 2 article. I decided to split the tutorial to make it easier to read (and to write 🙂 ) This tutorial describes how you can configure Zimbra Mail Server &#38; Collaboration Suite and Samba to act as a primary domain controller (PDC) that uses Zimbra LDAP (Lightweight Directory...</p>
<p>The post <a href="https://www.vavai.net/user-account-integration-between-samba-pdc-zimbra-mail-server-on-opensuse-sles/">User Account Integration between Samba PDC &#038; Zimbra Mail Server on openSUSE/SLES</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><em>Note : This is part one of 2 article. I decided to split the tutorial to make it easier to read (and to write <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> )</em><br />
<a class="highslide" onclick="return vz.expand(this)" href="http://54.254.121.108/wp-content/uploads/2010/03/zimbra-opensuse1.jpeg"><img decoding="async" class="alignnone size-full wp-image-1195" title="zimbra-opensuse" src="http://54.254.121.108/wp-content/uploads/2010/03/zimbra-opensuse1.jpeg" alt="" width="200" height="200" /></a><br />
This tutorial describes how you can configure Zimbra Mail Server &amp; Collaboration Suite and Samba to act as a primary domain controller (PDC) that  uses Zimbra LDAP (Lightweight Directory Access Protocol) as a central password  database for authenticating users on Linux and Windows desktops. The  integration process will make it easier for administrators to manage Zimbra Mail Server and Samba PDC / Active Directory account because it  use same LDAP database. If  applied in corporate environments or institutions who have been using  Windows Server, this guide can be used to set up Linux servers to  replace the Windows Active Directory Server and Microsoft Exchange  Server.<br />
The setup described in this document is not the only possible way  to make Samba and Zimbra use the same user database for authentication.  You may also use <a href="http://v2.vavai.net/2010/03/30/zimbra-mail-server-with-external-authentication-using-samba-pdcopenldap/">Zimbra External Authentication with Samba PDC</a>. External authentication are a little bit easy to be setting up, but we must manage the mailbox profile in Zimbra and it doesn&#8217;t seamlessly integrate Zimbra into Samba PDC+OpenLDAP. It is highly recommended to get familiar with Zimbra, Samba, LDAP and  PAM, before you start the installation.<br />
This tutorial are based on Zimbra wiki article : <a title="http://wiki.zimbra.com/index.php?title=UNIX_and_Windows_Accounts_in_Zimbra_LDAP_and_Zimbra_Admin_UI_6.0" rel="nofollow" href="http://wiki.zimbra.com/index.php?title=UNIX_and_Windows_Accounts_in_Zimbra_LDAP_and_Zimbra_Admin_UI_6.0">UNIX and Windows Accounts in Zimbra LDAP and Zimbra  Admin UI 6.0</a> but has been tune up to works successfully on openSUSE/SLES environment. The original wiki using Ubuntu/RedHat environment which doesn&#8217;t automatically fit with openSUSE/SLES configuration.<br />
I&#8217;m using Zimbra Mail Server 6.0.5 64 bit with the following configuration :<br />
<strong> Domain &amp; Hostname</strong></p>
<pre>Domain   : vavai.co.id
Hostname : zcspdc.vavai.co.id</pre>
<p><strong> IP Address<br />
</strong></p>
<pre>IP Address    : 192.168.10.1
Name Server 1 : 192.168.10.1
Name Server 2 : 8.8.8.8  (Google public DNS Server)
Name Server 3 : 208.67.222.222 (OpenDNS public DNS Server)
Router        : 192.168.10.254 (ADSL Modem)</pre>
<p><strong>File /etc/hosts</strong></p>
<pre>127.0.0.1       localhost
192.168.10.1    zcspdc.vavai.co.id zcspdc</pre>
<h4>ZIMBRA INSTALLATION</h4>
<p>Please use following article to install Zimbra on SLES 11 : <a href="http://v2.vavai.net/2010/02/10/installing-zimbra-6-0-5-64-bit-on-sles-11-64-bit/">Installing Zimbra 6.0.5 64 bit on  SUSE Linux Enterprise Server (SLES) 11  64 bit</a> or use this tutorial : <a title="http://v2.vavai.net/2009/12/22/installing-zimbra-6-0-4-on-opensuse-11-1-64-bit-part-1/" rel="nofollow" href="http://v2.vavai.net/2009/12/22/installing-zimbra-6-0-4-on-opensuse-11-1-64-bit-part-1/">Installing Zimbra 6.0.4 on openSUSE 11.1 64 bit</a> for Zimbra+openSUSE version.</p>
<h4>ZIMBRA LDAP CONFIGURATION</h4>
<p>The following script will automatically configure Zimbra LDAP as below :</p>
<ul>
<li>Add Samba Schema into Zimbra LDAP</li>
<li>Add proper index into Zimbra LDAP Schema</li>
<li>Add 2 user (zmposix and zmposixroot) as Zimbra LDAP Administrative Account with  default  password : rahasia</li>
<li>Adjust Zimbra LDAP ACL to allow administrative task regarding Samba-Zimbra integration</li>
<li>Add Admin Extension Zimbra Posfix Account and Zimbra  Samba Extension</li>
</ul>
<p>Thanks to Peracchi and Lithorus on the following thread on <a href="http://www.zimbra.com/forums/administrators/33168-help-make-zimbra-samba-tutorial-ubuntu-8-04-3-server-zimbra-6-0-1-a-3.html">Zimbra Forum</a> for idea and a great script.<br />
To run the automated script, run the following commandon console/terminal :<br />
[code language=&#8217;cpp&#8217;]<br />
su<br />
cd /srv<br />
wget -c http://vavai.com/wp-content/uploads/zcs-samba.tar.gz<br />
tar -zxvf zcs-samba.tar.gz<br />
su &#8211; zimbra<br />
cd /srv/zcs-samba<br />
./zcs-samba.sh<br />
[/code]<br />
NOTE : The script will automatically use &#8216;rahasia&#8217; (Indonesian word means &#8216;secret&#8217; <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f61b.png" alt="😛" class="wp-smiley" style="height: 1em; max-height: 1em;" /> ) as default password for zmposixroot and zmposix password. Please modify script to use your own password by change the following code on /srv/zcs-samba/zcs-samba.shÂ  :<br />
[code language=&#8217;cpp&#8217;]<br />
# set password for the posix ldap accounts<br />
ZMPOSIX_LDAP_PASSWORD=`/opt/zimbra/openldap/sbin/slappasswd -s rahasia`<br />
ZMPOSIXROOT_LDAP_PASSWORD=`/opt/zimbra/openldap/sbin/slappasswd -s rahasia`<br />
echo &#8220;Domain : $DOMAIN&#8221;<br />
echo &#8220;Hostname : $HOSTNAME&#8221;<br />
echo &#8220;Zimbra LDAP Password : $ZIMBRA_LDAP_PASSWORD&#8221;<br />
echo &#8220;LDAP Prefix : $LDAP_PREFIX&#8221;<br />
echo &#8220;ZMPOSIX_LDAP_PASSWORD : rahasia&#8221;<br />
[/code]<br />
Change &#8216;rahasia&#8217; on the above line with your own password.</p>
<h4>SAMBA INSTALLATION</h4>
<ul>
<li>Open YAST | Network Service | Samba Server. YAST will automatically added Samba package if you never install it.</li>
<li>On the first  wizard, fill in the  workgroup/domain name. I&#8217;m using vavai.co.id as my domain name as shown on top of the tutorial. Click Next.</li>
<li>On  Samba Server Type, Choose Primary Domain  Controller (PDC) and then click Next</li>
<li>On  start-up, choose <strong>Service Start During Boot</strong> so  Samba will automatically be activated during boot. Don&#8217;t forget to open your Firewall port</li>
<li>Move to  LDAP Setting tab.</li>
<li>Click on <strong>Use LDAP Password Back-End </strong>option</li>
<li>Change  LDAP Server URL from default entry ldap://127.0.0.1 to be  ldap://192.168.10.1 (remember my  IP address configuration above). Use same address toÂ  IdMap Back-End</li>
<li>Change  Search Base DN to Zimbra LDAP DN, mine are  dc=vavai,dc=co,dc=id</li>
<li>Fill in Administrator DN and the password:  uid=zmposixroot,cn=appaccts,cn=zimbra). Click Test Connection to test the connection between Zimbra and Samba machine.</li>
<li>Click Advanced Setting | Expert LDAP Setting</li>
<li> Change user suffix to be ou=people</li>
<li>Change group suffix to be ou=groups</li>
<li>Change Machine suffix to be ou=machines</li>
<li>Click OK to close Expert LDAP Setting windows</li>
<li>Click  OK to close  Samba Server wizard. Fill in  password for Samba root /Administrator password.  To prevent any confused setting, I&#8217;m using same password between zmposixroot, zmposix and Samba root password <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f61b.png" alt="😛" class="wp-smiley" style="height: 1em; max-height: 1em;" /></li>
</ul>
<h4>SAMBA CONFIGURATION</h4>
<ul>
<li>Open /etc/samba/smb.conf with your preferred text editor (vi, gedit,  kate or kwrite)</li>
<li>Give it a # (comment mark) on the following line (if you do not use dhcp on your Samba configuration) :</li>
</ul>
<p>[code language=&#8217;cpp&#8217;]<br />
include = /etc/samba/dhcp.conf<br />
[/code]</p>
<ul>
<li>Save the configuration</li>
</ul>
<h4>LDAP CLIENT CONFIGURATION</h4>
<ul>
<li>Click YAST | Network Services | LDAP Client</li>
<li> Click  <strong>Use LDAP</strong> on User Authentication</li>
<li>Change Address to use Zimbra IP (192.168.10.1)</li>
<li>Fill in LDAP Base DN (dc=vavai,dc=co,dc=id)</li>
<li>Leave others as is</li>
<li>Click Advanced Configuration</li>
<li> Change <strong>Password Change Protocol</strong> to MD5</li>
<li>Leave <strong> Group Member Attribute = Member</strong> setting</li>
<li>Click on Administration Setting tab</li>
<li>Fill in uid=zmposixroot,cn=appaccts,cn=zimbra on   Administrator DN text box. LeaveÂ  <strong>Append Base DN </strong>setting unchecked</li>
<li>Leave <strong> Create Default Configuration Objects</strong> setting unchecked</li>
<li>Click OK</li>
<li>Click OK</li>
</ul>
<h4>NSS-LDAP &amp; PAM-LDAP CONFIGURATION</h4>
<ul>
<li>Open file /etc/ldap.conf with your preferred text  editor and change the following line (remove  # mark)</li>
</ul>
<p>[code language=&#8217;cpp&#8217;]<br />
host 192.168.10.1<br />
base dc=vavai,dc=co,dc=id<br />
binddn uid=zmposix,cn=appaccts,cn=zimbra<br />
bindpw rahasia<br />
rootbinddn uid=zmposixroot,cn=appaccts,cn=zimbra<br />
port 389<br />
bind_policy soft<br />
nss_reconnect_tries 2<br />
uri ldap://192.168.10.1/<br />
ssl start_tls<br />
tls_cacertdir /opt/zimbra/conf/ca<br />
tls_checkpeer no<br />
pam_password md5<br />
nss_base_passwd         ou=people,dc=vavai,dc=co,dc=id?one<br />
nss_base_shadow         ou=people,dc=vavai,dc=co,dc=id?one<br />
nss_base_group          ou=groups,dc=vavai,dc=co,dc=id?one<br />
nss_base_hosts          ou=machines,dc=vavai,dc=co,dc=id?one<br />
[/code]</p>
<ul>
<li>Save the configuration</li>
<li>Edit /etc/nsswitch.conf and change the following line :</li>
</ul>
<p>[code language=&#8217;cpp&#8217;]<br />
passwd: compat<br />
group: compat<br />
[/code]<br />
with<br />
[code language=&#8217;cpp&#8217;]passwd: files ldap<br />
group: files ldap<br />
[/code]</p>
<ul>
<li> Edit /etc/pam.d/common-account and change the configuration as below :</li>
</ul>
<p>[code language=&#8217;cpp&#8217;]account sufficient pam_unix.so<br />
account sufficient pam_ldap.so<br />
[/code]</p>
<ul>
<li> Edit /etc/pam.d/common-auth and change the configuration as below :</li>
</ul>
<p>[code language=&#8217;cpp&#8217;]auth sufficient pam_ldap.so<br />
auth sufficient pam_unix.so<br />
[/code]</p>
<ul>
<li> Edit /etc/pam.d/common-password and change the configuration as below :</li>
</ul>
<p>[code language=&#8217;cpp&#8217;]password sufficient pam_unix.so<br />
password sufficient pam_ldap.so<br />
[/code]</p>
<ul>
<li> Edit /etc/pam.d/common-session and change the configuration as below :</li>
</ul>
<p>[code language=&#8217;cpp&#8217;]session sufficient pam_unix.so<br />
session sufficient pam_ldap.so<br />
[/code]<br />
Tutorial will be continue to part 2 of User Account Integration between Samba PDC &amp; Zimbra Mail Server on openSUSE / SLES.</p>
<p>The post <a href="https://www.vavai.net/user-account-integration-between-samba-pdc-zimbra-mail-server-on-opensuse-sles/">User Account Integration between Samba PDC &#038; Zimbra Mail Server on openSUSE/SLES</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.vavai.net/user-account-integration-between-samba-pdc-zimbra-mail-server-on-opensuse-sles/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 6</title>
		<link>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-6/</link>
					<comments>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-6/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Rivai]]></dc:creator>
		<pubDate>Fri, 29 Jan 2010 04:44:08 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenLDAP]]></category>
		<category><![CDATA[PDC]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[SUSE Family]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://v2.vavai.net/?p=1150</guid>

					<description><![CDATA[<p>Previous Tutorial : Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 1, Installing Base System &#38; Configuring Samba Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 2, Configuring OpenLDAP Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 3, Configuring smbldap-tools &#38; LDAP Account Manager Tutorial :...</p>
<p>The post <a href="https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-6/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 6</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Previous Tutorial :</p>
<ol>
<li><a href="http://v2.vavai.net/2010/01/04/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-1/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 1, Installing Base System &amp; Configuring Samba</a></li>
<li><a href="http://v2.vavai.net/2010/01/06/tutorial-samba-pdc-openldap-on-opensuse-11-1-%e2%80%93-part-2/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 2, Configuring OpenLDAP</a></li>
<li><a href="http://v2.vavai.net/2010/01/07/tutorial-samba-pdc-openldap-on-opensuse-11-1-â€“-part-3/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 3, Configuring smbldap-tools &amp; LDAP Account Manager</a></li>
<li><a href="http://v2.vavai.net/2010/01/09/tutorial-samba-pdc-openldap-on-opensuse-11-1-%E2%80%93-part-4/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 4, Configuring Dynamic DHCP &amp; DNS Server</a></li>
<li><a href="http://v2.vavai.net/2010/01/28/tutorial-samba-pdc-openldap-on-opensuse-11-1-%E2%80%93-part-5/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 5, Testing Samba &amp; Configuring Client</a></li>
</ol>
<p><a href="http://54.254.121.108/wp-content/uploads/2010/01/windows-linux131.jpg"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-1153" title="windows-linux1" src="http://54.254.121.108/wp-content/uploads/2010/01/windows-linux131.jpg" alt="" width="350" height="204" /></a><br />
<strong>ERROR MESSAGE AND HOW TO SOLVE THE PROBLEM<br />
</strong><br />
Samba PDC+OpenLDAP is one of the longest tutorial. These are maybe a typo or incomplete configuration, although I&#8217;ve checked and proof read for the typo. Please let me know if you found something problem while trying the tutorial. I&#8217;ll be really appreciate to the suggestion to make it as usable as it should be.<br />
Following are some error messages that might be  found when doing the configuration. The collection came from my notes while installing andÂ  configuring Samba PDC+OpenLDAP for the first time.</p>
<ol>
<li>Missing Perl Library for LDAP while trying to run smbldap-tools<br />
[code language=&#8217;cpp&#8217;]<br />
smbldap-useradd -m -a root<br />
[/code]</p>
<blockquote><p>Can&#8217;t locate Net/LDAP.pm in @INC (@INC contains: /usr/sbin/<br />
/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0<br />
/usr/lib/perl5  /site_perl/5.10.0/x86_64-linux-thread-multi<br />
/usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi<br />
/usr/lib/perl5 /vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at<br />
/usr/sbin//smbldap_tools.pm line 26.<br />
BEGIN failed&#8211;compilation aborted at /usr/sbin//smbldap_tools.pm line 26.<br />
Compilation failed in require at /usr/sbin/smbldap-useradd line 30.<br />
BEGIN failed&#8211;compilation aborted at /usr/sbin/smbldap-useradd line 30.</p></blockquote>
<p>Solution : Install perl-ldap with zypper or YAST</li>
<li>Missing  Perl library for UTF-8<br />
<blockquote><p>Can&#8217;t locate Unicode/MapUTF8.pm in @INC (@INC contains: /usr/sbin/<br />
/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0<br />
/usr/lib/perl5  /site_perl/5.10.0/x86_64-linux-thread-multi<br />
/usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi<br />
/usr/lib/perl5 /vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin//smbldap_tools.pm line 28,<br />
line 275.<br />
BEGIN failed&#8211;compilation aborted at /usr/sbin//smbldap_tools.pm line 28,  line 275.<br />
Compilation failed in require at /usr/sbin/smbldap-useradd line 30,  line 275.<br />
BEGIN failed&#8211;compilation aborted at /usr/sbin/smbldap-useradd line 30,  line 275.</p></blockquote>
<p>Solution : Install perl-Unicode-MapUTF8 with  zypper or YAST</li>
<li>Error while running <strong>smbldap-useradd -m -a root</strong> command<br />
<blockquote><p>server:/home/vavai/Desktop/openldap-vavai # smbldap-useradd -m -a root<br />
Error: modifications require authentication at /usr/sbin//smbldap_tools.pm line<br />
1187,   line 466.</p></blockquote>
<p>Solution : Check <strong> /etc/smbldap-tools/smbldap_bind.conf</strong>,  domain name (dc=domainname,dc=net) should be correct</p>
<blockquote><p>server:/home/vavai/Desktop/openldap-vavai # smbldap-useradd -m -a root<br />
Error: Insufficient access at /usr/sbin//smbldap_tools.pm line 1187,  line 466.</p></blockquote>
<p>Solution : Check<strong> /etc/smbldap-tools/smbldap_bind.conf</strong>, make sure it has valid credentials for LDAP (cn=Manager,<br />
dc=domainname,dc=net)</li>
<li>Error message on running <strong>smbpasswd -a</strong><br />
[code language=&#8217;cpp&#8217;]<br />
smbpasswd -a<br />
[/code]</p>
<blockquote><p>WARNING: Your &#8216;passdb backend&#8217; configuration includes multiple backends.  This<br />
is deprecated since Samba 3.0.23.  Please check WHATSNEW.txt or the section &#8216;Passdb<br />
Changes&#8217; from the ChangeNotes as part of the Samba HOWTO collection.  Only the first<br />
backend (ldapsam:&#8221;ldap://server.vavai.net&#8221;) is used.  The rest is ignored.<br />
add_new_domain_info: failed to add domain dn= sambaDomainName=VAVAI,dc=vavai,dc=net with: Insufficient access<br />
no write access to parent<br />
smbldap_search_domain_info: Adding domain info for VAVAI failed with NT_STATUS_UNSUCCESSFUL</p></blockquote>
<p>Solution : Check your password, use the credential user : Manager with ldap password</li>
<li>Error message :  Connection Refused<br />
[code language=&#8217;cpp&#8217;]<br />
smbclient -L localhost -N<br />
[/code]</p>
<blockquote><p>Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)</p></blockquote>
<p>Solution : Check your /etc/hosts and make sure you have valid permission on /data/samba/profiles(or any share folder for samba profiles)</li>
<li>Error message : Error looking for next uid in sambaDomainName<br />
[code language=&#8217;cpp&#8217;]<br />
smbldap-useradd -m -a root<br />
[/code]</p>
<blockquote><p>Error looking for next uid in sambaDomainName=VAVAI.NET,dc=vavai,dc=net:<br />
No such object at /usr/sbin //smbldap_tools.pm line 1174,  line 466.</p></blockquote>
<p>Solution : Change the following line sambaUnixIdPooldn onÂ  /etc/smbldap-tools to be like below :<br />
[code language=&#8217;cpp&#8217;]<br />
sambaUnixIdPooldn=&#8221;sambaDomainName=VAVAI.NET,ou=Domains,${suffix}&#8221;<br />
[/code]</li>
</ol>
<p>If you have another error message, let&#8217;s discuss it on comment form. I&#8217;ll be glad to add the list of error message to help anyone implementing Samba PDC+OpenLDAP on openSUSE sucessfully.<br />
Note : Forgive me for any misspelling and/or grammar.</p>
<p>The post <a href="https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-6/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 6</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-6/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 5</title>
		<link>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-5/</link>
					<comments>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-5/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Rivai]]></dc:creator>
		<pubDate>Thu, 28 Jan 2010 09:46:07 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenLDAP]]></category>
		<category><![CDATA[PDC]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[SUSE Family]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://v2.vavai.net/?p=1143</guid>

					<description><![CDATA[<p>Previous Tutorial : Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 1, Installing Base System &#38; Configuring Samba Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 2, Configuring OpenLDAP Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 3, Configuring smbldap-tools &#38; LDAP Account Manager Tutorial :...</p>
<p>The post <a href="https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-5/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 5</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Previous Tutorial :</p>
<ol>
<li><a href="http://v2.vavai.net/2010/01/04/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-1/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 1, Installing Base System &amp; Configuring Samba</a></li>
<li><a href="http://v2.vavai.net/2010/01/06/tutorial-samba-pdc-openldap-on-opensuse-11-1-%e2%80%93-part-2/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 2, Configuring OpenLDAP</a></li>
<li><a href="http://v2.vavai.net/2010/01/07/tutorial-samba-pdc-openldap-on-opensuse-11-1-â€“-part-3/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 3, Configuring smbldap-tools &amp; LDAP Account Manager</a></li>
<li><a href="http://v2.vavai.net/2010/01/09/tutorial-samba-pdc-openldap-on-opensuse-11-1-%E2%80%93-part-4/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 4, Configuring Dynamic DHCP &amp; DNS Server</a></li>
</ol>
<p><a href="http://54.254.121.108/wp-content/uploads/2010/01/windows-linux121.jpg"><img decoding="async" class="alignnone size-full wp-image-1146" title="windows-linux1" src="http://54.254.121.108/wp-content/uploads/2010/01/windows-linux121.jpg" alt="" width="350" height="204" /></a><br />
<strong>TESTINGÂ  SAMBA CONFIGURATION<br />
</strong></p>
<ol>
<li>Check Samba configuration with the following command:<br />
[code language=&#8217;cpp&#8217;]<br />
testparm<br />
[/code]<br />
It should be display the following response :</p>
<blockquote><p>Load smb config files from /etc/samba/smb.conf<br />
Processing section &#8220;[homes]&#8221;<br />
Processing section &#8220;[printers]&#8221;<br />
Processing section &#8220;[netlogon]&#8221;<br />
Processing section &#8220;[profiles]&#8221;<br />
Processing section &#8220;[share]&#8221;<br />
Loaded services file OK.<br />
Server role: ROLE_DOMAIN_PDC<br />
Press enter to see a dump of your service definitions</p></blockquote>
<p>If you find any error message, try to look at the Samba configuration as we have setup on first tutorial.</li>
<li>Give the proper permission for user profile folder. Adjust the folder to be match with your Samba profiles (see /etc/samba/smb.conf on profiles folder share) :<br />
[code language=&#8217;cpp&#8217;]<br />
chmod 1777 /data/samba/profiles<br />
[/code]</li>
<li>Test whether Samba has been setup successfully or no.<br />
[code language=&#8217;cpp&#8217;]<br />
smbclient -L localhost -N<br />
[/code]<br />
Just pressÂ  ENTER if Samba asking for user name and password. You should have the following response (the result may vary , depends on your Samba and your network configuration) :</p>
<blockquote><p>added interface ip=192.168.1.254 bcast=192.168.1.255 nmask=255.255.255.0<br />
Anonymous login successful<br />
Domain=[VAVAI.NET] OS=[Unix] Server=[Samba 3.0.12-5-SUSE]<br />
Sharename       Type      Comment<br />
&#8212;&#8212;&#8212;       &#8212;-      &#8212;&#8212;-<br />
profiles        Disk      Roaming Profiles<br />
share           Disk      share<br />
IPC$            IPC       IPC Service (Samba 3.0.12-5-SUSE)<br />
ADMIN$          IPC       IPC Service (Samba 3.0.12-5-SUSE)<br />
Anonymous login successful<br />
Domain=[VAVAI.NET] OS=[Unix] Server=[Samba 3.0.12-5-SUSE]<br />
Server               Comment<br />
&#8212;&#8212;&#8212;            &#8212;&#8212;-<br />
SERVER	             Samba 3.0.12-5-SUSE<br />
Workgroup            Master<br />
&#8212;&#8212;&#8212;            &#8212;&#8212;-<br />
VAVAI.NET           SERVER</p></blockquote>
<p>If you find the following error :</p>
<blockquote><p>Error connecting to 127.0.0.1 (Connection refused)<br />
Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)</p></blockquote>
<p>Change the &#8221;/etc/hosts&#8221; as follows:<br />
[code language=&#8217;cpp&#8217;]<br />
# IP-Address  Full-Qualified-Hostname  Short-Hostname<br />
#<br />
127.0.0.1       localhost server.vavai.net<br />
127.0.0.2       server.vavai.net server<br />
192.168.1.254   server.vavai.net server vavai.net<br />
[/code]<br />
Reboot your computer and then tryÂ  &#8220;smbclient -L localhost -N&#8221; again.</li>
</ol>
<p><strong>SETUP OPENLDAP </strong></p>
<ol>
<li>EditÂ  &#8221;/etc/nsswitch.conf&#8221; and change or add the following code :<br />
[code language=&#8217;cpp&#8217;]<br />
passwd: files ldap<br />
group: files ldap<br />
[/code]</li>
<li>Check account and LDAP data. You must see minimum 2 account : Admin and nobody:<br />
[code language=&#8217;cpp&#8217;]<br />
getent passwd<br />
[/code]<br />
Response:<br />
<em>+::0:0:::<br />
Admin:x:998:512:Netbios Domain Administrator:/home/Admin:/bin/false<br />
nobody:x:999:514:nobody:/dev/null:/bin/false<br />
</em></li>
<li>If you find the above respon, continue with setting upÂ  PAM<br />
[code language=&#8217;cpp&#8217;]<br />
pam-config -a &#8211;mkhomedir &#8211;mkhomedir-skel=/etc/skel &#8211;mkhomedir-umask=0022<br />
[/code]</li>
<li>Edit &#8221;/etc/pam.d/common-session&#8221; and change the following line:<br />
[code language=&#8217;cpp&#8217;]<br />
session optional        pam_mkhomedir.so        umask=0022 skel=/etc/skel<br />
[/code]<br />
to:<br />
[code language=&#8217;cpp&#8217;]<br />
session required        pam_mkhomedir.so        umask=0022 skel=/etc/skel<br />
[/code]</li>
<li><strong> </strong>Run all service and configure them to be activated on boot<br />
[code language=&#8217;cpp&#8217;]<br />
service named restart<br />
service dhcpd restart<br />
service ldap restart<br />
service smb restart<br />
service nmb restart<br />
service mysql restart<br />
service apache2 restart<br />
chkconfig named on<br />
chkconfig dhcpd on<br />
chkconfig smb on<br />
chkconfig nmb on<br />
chkconfig ldap on<br />
chkconfig mysql on<br />
chkconfig apache2 on<br />
[/code]</li>
</ol>
<p><strong>CLIENT SETUP<br />
</strong></p>
<li>Add  user &amp; computer account<br />
[code language=&#8217;cpp&#8217;]<br />
smbldap-useradd -a -m username<br />
smbldap-passwd username<br />
[/code]Note: Computer name should be added automatically on join domain but if account have not added automatically, do the following command to add computer account :<br />
[code language=&#8217;cpp&#8217;]<br />
smbldap-useradd -w computername$<br />
[/code]</li>
<li>For openSUSE workstation, use YAST menu to add your client as domain member : YAST | Network Services | Windows Domain Membership</li>
<li>For  Windows XP client, do the folowing configuration before join :
<ul>
<li>Open regedit, START | RUN | REGEDIT</li>
<li>FInd regedit entry HKLM (HKEY_LOCAL MACHINE) &#8211; SYSTEM &#8211; CurrentControlSet &#8211; Service &#8211; Netlogon &#8211; Parameters</li>
<li>Click on right windows and choose New &#8211; DWORD value, with variable name : requiresignorseal, value : 0</li>
<li>If you found an existing entry and it&#8217;s value is 1, change the value withÂ  0</li>
<li>Close regedit</li>
<li>Right click on &#8221;&#8217;My Computer&#8221;&#8217;, choose &#8221;&#8217;Properties&#8221;&#8217;</li>
<li>Choose &#8221;&#8217;Computer Name&#8221;&#8217; tab</li>
<li>Click &#8221;&#8217;Change&#8221;&#8217;</li>
<li>Set  Domain &amp; computer name</li>
<li>Use root with root password if Windows ask for Administrator privilege</li>
</ul>
</li>
<p>Next TutorialÂ  : Tutorial Samba PDC + OpenLDAP on  openSUSE PartÂ  6, Problem Solving</p>
<p>The post <a href="https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-5/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 5</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-5/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 4</title>
		<link>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-4/</link>
					<comments>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-4/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Rivai]]></dc:creator>
		<pubDate>Sat, 09 Jan 2010 16:50:46 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenLDAP]]></category>
		<category><![CDATA[PDC]]></category>
		<category><![CDATA[SUSE Family]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://v2.vavai.net/?p=1006</guid>

					<description><![CDATA[<p>Previous Tutorial : Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 1, Installing Base System &#38; Configuring Samba Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 2, Configuring OpenLDAP Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 3, Configuring smbldap-tools &#38; LDAP Account Manager Setting Dynamic...</p>
<p>The post <a href="https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-4/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 4</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Previous Tutorial :</p>
<ol>
<li><a href="http://v2.vavai.net/2010/01/04/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-1/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 1, Installing Base System &amp; Configuring Samba</a></li>
<li><a href="http://v2.vavai.net/2010/01/06/tutorial-samba-pdc-openldap-on-opensuse-11-1-%e2%80%93-part-2/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 2, Configuring OpenLDAP</a></li>
<li><a href="http://v2.vavai.net/2010/01/07/tutorial-samba-pdc-openldap-on-opensuse-11-1-â€“-part-3/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 3, Configuring smbldap-tools &amp; LDAP Account Manager</a></li>
</ol>
<p><a href="http://54.254.121.108/wp-content/uploads/2010/01/samba-pdc1.jpg"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1007" title="samba-pdc" src="http://54.254.121.108/wp-content/uploads/2010/01/samba-pdc1.jpg" alt="" width="500" height="375" /></a><br />
<strong>Setting Dynamic DHCP &amp; DNS Server</strong><br />
Dynamic DHCP &amp; DNS Server will be working together to register the client hostname and ip address, so every client could be interchange data using their netbios name. DNS setting will also passing the client-server authorization a lot easier because client identity has been registered on server.<br />
Beware, I&#8217;ll be use manual setting on dynamic DHCP &amp; DNS server in this tutorial. Do not mixed the process with automatic setting with YAST | Network Services | DNS Server. Combine both setting my broken your dynamic DHCP &amp; DNS configuration.<br />
<strong>Preparation</strong></p>
<ol>
<li>You should have DHCP &amp; DNS pattern installed. Please refer to previous tutorial to check which package &amp; pattern should be install</li>
<li>Dynamic DNS Server need a key. Use the following command to generate dynamic key :</li>
</ol>
<p>[code language=&#8217;cpp&#8217;]<br />
cd /etc<br />
genDDNSkey<br />
[/code]<br />
Default result is /etc/named.key. Place it on etc folder. If you are using chroot jail mode, you should copy/move the file into appropriate folder, ie &#8220;/var/lib/named/etc&#8221; and &#8220;/var/lib/dhcp/etc&#8221;<br />
<strong>Configuring Dynamic DHCP Server</strong></p>
<ol>
<li>Edit &#8221;/etc/sysconfig/dhcpd&#8221; and change the following line DHCPD_INTERFACE=&#8221;&#8221; to looks like :<br />
[code language=&#8217;cpp&#8217;]<br />
DHCPD_INTERFACE=&#8221;eth0&#8243;<br />
[/code]<br />
Note : Replace &#8221;&#8217;eth0&#8221;&#8217; with your running network card id.</li>
<li>Edit&#8217;/etc/dhcpd.conf&#8221; and change the content with the following configuration. Don&#8217;t forget to adjust your IP address and subnet<br />
[code language=&#8217;cpp&#8217;]<br />
# File with key we shall use to securely update zone files<br />
###########################################################<br />
include &#8220;/etc/named.keys&#8221;;<br />
# Our server is authority<br />
#########################################################<br />
server-identifier server.vavai.net;<br />
authoritative;<br />
# Zone specification<br />
###########################################<br />
zone vavai.forward {<br />
primary 192.168.1.254;<br />
key DHCP_UPDATER;<br />
}<br />
zone vavai.reverse {<br />
primary 192.168.1.254;<br />
key DHCP_UPDATER;<br />
}<br />
# Various options<br />
########################################<br />
default-lease-time 86400;<br />
max-lease-time 172800;<br />
option domain-name &#8220;vavai.net&#8221;;<br />
option domain-name-servers 192.168.1.254;<br />
option netbios-name-servers 192.168.1.254;<br />
ignore client-updates;<br />
ddns-domainname &#8220;vavai.net&#8221;;<br />
ddns-updates on;<br />
ddns-update-style interim;<br />
# Declaration of network properties ( range &#8230; )<br />
#################################################<br />
subnet 192.168.1.0 netmask 255.255.255.0 {<br />
range dynamic-bootp 192.168.1.10 192.168.1.254;<br />
zone vavai.net { primary 127.0.0.1; key DHCP_UPDATER; }<br />
zone 1.168.192.in-addr.arpa. { primary 127.0.0.1; key DHCP_UPDATER; }<br />
option subnet-mask 255.255.255.0;<br />
option routers 192.168.1.1;<br />
one-lease-per-client on;<br />
}<br />
[/code]</li>
</ol>
<p><strong>Confguring Dynamic DNS Server</strong></p>
<ol>
<li>Edit &#8220;/etc/named.conf&#8221; and change the content with following configuration. Don&#8217;t forget to replace appropriate part/setting with yours :<br />
[code language=&#8217;cpp&#8217;]<br />
# Include file with key<br />
#################################################<br />
include &#8220;/etc/named.keys&#8221;;<br />
# Access Control Lists<br />
#################################################<br />
acl mynet {<br />
192.168.1.0/24;<br />
127.0.0.1;<br />
};<br />
# Various Options<br />
#################################################<br />
options {<br />
directory &#8220;/var/lib/named&#8221;;<br />
allow-query { mynet; };<br />
forwarders { 192.168.1.1; };<br />
};<br />
# Misc zone declarations<br />
#################################################<br />
zone &#8220;localhost&#8221; in {<br />
type master;<br />
file &#8220;localhost.zone&#8221;;<br />
};<br />
zone &#8220;0.0.127.in-addr.arpa&#8221; in {<br />
type master;<br />
file &#8220;127.0.0.zone&#8221;;<br />
};<br />
zone &#8220;.&#8221; in {<br />
type hint;<br />
file &#8220;root.hint&#8221;;<br />
};<br />
# Forward vavai.net zone declaration<br />
#################################################<br />
zone &#8220;vavai.net&#8221; {<br />
type master;<br />
file &#8220;dyn/vavai.forward&#8221;;<br />
allow-update { key DHCP_UPDATER; };<br />
allow-transfer { mynet; };<br />
check-names ignore;<br />
};<br />
# Active Directory Declarations<br />
#############################################<br />
zone &#8220;_tcp.vavai.net&#8221; IN {<br />
type master;<br />
file &#8220;master/_tcp.vavai.net.db&#8221;;<br />
allow-update { mynet; };<br />
check-names ignore;<br />
};<br />
zone &#8220;_msdcs.vavai.net&#8221; IN {<br />
type master;<br />
file &#8220;master/_msdcs.vavai.net.db&#8221;;<br />
allow-update { mynet; };<br />
check-names ignore;<br />
};<br />
zone &#8220;_sites.vavai.net&#8221; IN {<br />
type master;<br />
file &#8220;master/_sites.vavai.net.db&#8221;;<br />
check-names ignore;<br />
allow-update { mynet; };<br />
};<br />
zone &#8220;_udp.vavai.net&#8221; IN {<br />
type master;<br />
file &#8220;master/_udp.vavai.net.db&#8221;;<br />
check-names ignore;<br />
allow-update { mynet; };<br />
};<br />
# Reverse vavai.net zone declaration<br />
#################################################<br />
zone &#8220;1.168.192.in-addr.arpa&#8221; {<br />
type master;<br />
file &#8220;dyn/vavai.reverse&#8221;;<br />
allow-update { key DHCP_UPDATER; };<br />
allow-transfer { mynet; };<br />
};<br />
[/code]</li>
<li>Create a new folder &#8221;/var/lib/named/dyn&#8221;. Folder will be used for zone location</li>
<li>Create a new file &#8221;/var/lib/named/dyn/vavai.forward&#8221; (change vavai with your domain) with the following content :<br />
[code language=&#8217;cpp&#8217;]<br />
$ORIGIN .<br />
$TTL 5D<br />
vavai.net               IN SOA  server.vavai.net. root.vavai.net. (<br />
200524085  ; serial<br />
3H         ; refresh<br />
1H         ; retry<br />
1W         ; expire<br />
5D )       ; minimum<br />
NS      server.vavai.net.<br />
A       192.168.1.104<br />
$ORIGIN vavai.net.<br />
$TTL 5D<br />
server                      A      192.168.1.104<br />
[/code]</li>
<li>Create a new file &#8221;/var/lib/named/dyn/vavai.reverse&#8221;  with the following content :<br />
[code language=&#8217;cpp&#8217;]<br />
$TTL 5D<br />
@                      IN SOA  server.vavai.net. root.vavai.net. (<br />
200524086  ; serial<br />
3H         ; refresh<br />
1H         ; retry<br />
1W         ; expire<br />
5H )       ; minimum<br />
@                        NS      server.vavai.net.<br />
104                     PTR     server.vavai.net.<br />
[/code]</li>
<li>Create a new file &#8221;/var/lib/named/dyn/_tcp.vavai.net.db&#8221;  (this file will be use for active directory) with the following content :<br />
[code language=&#8217;cpp&#8217;]<br />
$ORIGIN .<br />
$TTL 432000     ; 5 days<br />
_tcp.vavai.net               IN SOA  server.vavai.net. root.vavai.net. (<br />
200524091  ; serial<br />
10800      ; refresh (3 hours)<br />
3600       ; retry (1 hour)<br />
604800     ; expire (1 week)<br />
432000     ; minimum (5 days)<br />
)<br />
IN      NS      server.vavai.net.<br />
$ORIGIN _tcp.vavai.net.<br />
$TTL 600        ; 10 mins<br />
_ldap._tcp.vavai.net.        SRV     0 0 389 server.vavai.net.<br />
_kerberos._tcp.vavai.net.    SRV     0 0 88 server.vavai.net.<br />
[/code]</li>
<li>Create a new file &#8221;/var/lib/named/dyn/_udp.vavai.net.db&#8221;  (this file will also be used for active directory) with the following content :<br />
[code language=&#8217;cpp&#8217;]<br />
$ORIGIN .<br />
$TTL 432000     ; 5 days<br />
_udp.vavai.net               IN SOA  server.vavai.net. root.vavai.net. (<br />
200524090  ; serial<br />
10800      ; refresh (3 hours)<br />
3600       ; retry (1 hour)<br />
604800     ; expire (1 week)<br />
432000     ; minimum (5 days)<br />
)<br />
IN      NS      server.vavai.net.<br />
$ORIGIN _udp.vavai.net.<br />
$TTL 600        ; 10 mins<br />
[/code]</li>
<li>Create a new file &#8221;/var/lib/named/dyn/_sites.vavai.net.db&#8221; (this file will also be used for active directory) with the following contentÂ :<br />
[code language=&#8217;cpp&#8217;]<br />
$ORIGIN .<br />
$TTL 432000     ; 5 days<br />
_sites.vavai.net               IN SOA  server.vavai.net. root.vavai.net. (<br />
200524090  ; serial<br />
10800      ; refresh (3 hours)<br />
3600       ; retry (1 hour)<br />
604800     ; expire (1 week)<br />
432000     ; minimum (5 days)<br />
)<br />
IN      NS      server.vavai.net.<br />
$ORIGIN _sites.vavai.net.<br />
$TTL 600        ; 10 mins<br />
[/code]</li>
<li>Create a new file &#8221;/var/lib/named/dyn/_msdcs.vavai.net.db&#8221; (this file will also be used for active directory) with the following contentÂ :<br />
[code language=&#8217;cpp&#8217;]<br />
$ORIGIN .<br />
$TTL 432000     ; 5 days<br />
_msdcs.vavai.net             IN SOA  server.vavai.net. root.vavai.net. (<br />
200524091  ; serial<br />
10800      ; refresh (3 hours)<br />
3600       ; retry (1 hour)<br />
604800     ; expire (1 week)<br />
432000     ; minimum (5 days)<br />
)<br />
IN      NS      server.vavai.net.<br />
$ORIGIN _msdcs.vavai.net.<br />
$TTL 600        ; 10 mins<br />
_ldap._tcp.dc._msdcs.vavai.net.      SRV 0 0 389 server.vavai.net.<br />
_kerberos._tcp.dc._msdcs.vavai.net.  SRV 0 0 88 server.vavai.net.<br />
[/code]</li>
</ol>
<p>We will reach to the final setting on next 2 tutorial. I&#8217;ll be continue with next tutorial : <strong>Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 5, TESTING SAMBA, SERVICE LDAP &amp; CONFIGURING CLIENT<br />
</strong></p>
<p>The post <a href="https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-4/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 4</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-4/feed/</wfw:commentRss>
			<slash:comments>20</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 3</title>
		<link>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-3/</link>
					<comments>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-3/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Rivai]]></dc:creator>
		<pubDate>Thu, 07 Jan 2010 08:51:34 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenLDAP]]></category>
		<category><![CDATA[PDC]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[SUSE Family]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://v2.vavai.net/?p=973</guid>

					<description><![CDATA[<p>Previous Tutorial : Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 1, Installing Base System &#38; Configuring Samba Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 2, Configuring OpenLDAP CONFIGURING SMBLDAP-TOOLS Smbldap-tools are a CLI (Command Line Interface) and used as a command tools for insert, update or delete...</p>
<p>The post <a href="https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-3/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 3</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Previous Tutorial :</p>
<ol>
<li><a href="http://v2.vavai.net/2010/01/04/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-1/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 1, Installing Base System &amp; Configuring Samba</a></li>
<li><a href="http://v2.vavai.net/2010/01/06/tutorial-samba-pdc-openldap-on-opensuse-11-1-%e2%80%93-part-2/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 2, Configuring OpenLDAP</a></li>
</ol>
<p><a href="http://54.254.121.108/wp-content/uploads/2010/01/windows-linux111.jpg"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-987" title="windows-linux1" src="http://54.254.121.108/wp-content/uploads/2010/01/windows-linux111.jpg" alt="" width="350" height="204" /></a><br />
<strong>CONFIGURING SMBLDAP-TOOLS<br />
</strong><br />
Smbldap-tools are a CLI (Command Line Interface) and used as a command tools for insert, update or delete a data on Samba and LDAP. Installing smbldap-tools on openSUSE only need a few step because the package already available on openSUSE Build Service. Let&#8217;s do it.</p>
<ol>
<li>Goto <a href="http://software.opensuse.org/search?baseproject=openSUSE%3A11.1&amp;p=1&amp;q=smbldap">openSUSE Build Service Package Search</a>.</li>
<li>Install the updated smbldap-tools version with one-click-install</li>
<li>Edit <strong>/etc/smbldap-tools/smbldap.conf</strong> with the following content (don&#8217;t forget to replace the Samba SID and domain name, see previous tutorial):<br />
[code language=&#8217;cpp&#8217;]<br />
SID=&#8221;S-1-2-33-4444444444-555555555-6666666666&#8243;<br />
sambaDomain=&#8221;VAVAI.NET&#8221;<br />
slaveLDAP=127.0.0.1<br />
slavePort=&#8221;389&#8243;<br />
masterLDAP=&#8221;127.0.0.1&#8243;<br />
masterPort=&#8221;389&#8243;<br />
ldapTLS=&#8221;0&#8243;<br />
verify=&#8221;&#8221;<br />
cafile=&#8221;&#8221;<br />
clientcert=&#8221;&#8221;<br />
clientkey=&#8221;&#8221;<br />
suffix=&#8221;dc=vavai,dc=net&#8221;<br />
usersdn=&#8221;ou=People,ou=Users,${suffix}&#8221;<br />
computersdn=&#8221;ou=Computers,ou=Users,${suffix}&#8221;<br />
groupsdn=&#8221;ou=Groups,${suffix}&#8221;<br />
idmapdn=&#8221;ou=Idmap,${suffix}&#8221;<br />
sambaUnixIdPooldn=&#8221;sambaDomainName=VAVAI.NET,ou=Domains,${suffix}&#8221;<br />
scope=&#8221;sub&#8221;<br />
hash_encrypt=&#8221;MD5&#8243;<br />
crypt_salt_format=&#8221;&#8221;<br />
userHome=&#8221;/data/home/%U&#8221;<br />
userHomeDirectoryMode=&#8221;700&#8243;<br />
userGecos=&#8221;System User&#8221;<br />
defaultUserGid=&#8221;513&#8243;<br />
defaultComputerGid=&#8221;515&#8243;<br />
skeletonDir=&#8221;/etc/skel&#8221;<br />
defaultMaxPasswordAge=&#8221;45&#8243;<br />
userSmbHome=&#8221;\server%U&#8221;<br />
userProfile=&#8221;\serverprofiles%U&#8221;<br />
userHomeDrive=&#8221;H:&#8221;<br />
userScript=&#8221;logon.bat&#8221;<br />
mailDomain=&#8221;vavai.net&#8221;<br />
with_smbpasswd=&#8221;0&#8243;<br />
smbpasswd=&#8221;/usr/bin/smbpasswd&#8221;<br />
with_slappasswd=&#8221;0&#8243;<br />
slappasswd=&#8221;/usr/sbin/slappasswd&#8221;<br />
# comment out the following line to get rid of the default banner<br />
# no_banner=&#8221;1&#8243;<br />
[/code]</li>
<li>Edit <strong>/etc/smbldap-tools/smbldap_bind.conf</strong> and copy-paste the following content :<br />
[code language=&#8217;cpp&#8217;]<br />
slaveDN=&#8221;cn=Manager,dc=vavai,dc=net&#8221;<br />
slavePw=&#8221;zezevavai26032006&#8243;<br />
masterDN=&#8221;cn=Manager,dc=vavai,dc=net&#8221;<br />
masterPw=&#8221;zezevavai26032006&#8243;<br />
[/code]</li>
<li>Starting Samba service<br />
[code language=&#8217;cpp&#8217;]<br />
service smb restart<br />
service nmb restart<br />
service ldap restart<br />
service winbind restart<br />
[/code]</li>
<li>Insert default password for Samba-LDAP<br />
[code language=&#8217;cpp&#8217;]<br />
su<br />
smbldap-useradd -m -a root<br />
smbldap-passwd root<br />
smbpasswd -a<br />
smbldap-groupmod -m root Domain Admins<br />
[/code]</li>
</ol>
<p><strong>CONFIGURING LDAP ACCOUNT MANAGER (LAM)</strong><br />
LDAP account manager has similar function with smbldap-tools but provided a web interface to manage the LDAP data. You should have a running Apache server for host the LAM service. <a href="http://v2.vavai.net/2009/02/23/apache-web-server-virtual-host-on-opensuse-part-1/">Click here</a> if you need a tutorial to setting up Apache web server on openSUSE.</p>
<ol>
<li>Goto <a href="http://packman.links2linux.org/package/ldap-account-manager">Packman page for LDAP Account Manager</a> and install the LAM package with one-click-install (or by using zypper using Packman Repository)</li>
<li>Backup &amp; create the lam configuration<br />
[code language=&#8217;cpp&#8217;]<br />
su<br />
mv /srv/www/htdocs/lam/config/config.cfg_sample /srv/www/htdocs/lam/config/config.cfg<br />
touch /srv/www/htdocs/lam/config/lam.conf<br />
chown wwwrun:www /srv/www/htdocs/lam/config/lam.conf<br />
[/code]</li>
<li>Copy-paste the following content for LAM configuration :  /srv/www/htdocs/lam/config/lam.conf<br />
[code language=&#8217;cpp&#8217;]<br />
# LDAP Account Manager configuration<br />
serverURL: ldap://localhost:389<br />
admins: cn=Manager,dc=vavai,dc=net<br />
# password to change these preferences via webfrontend (default: lam)<br />
passwd: {SSHA}RjBruJcTxZEdcBjPQdRBkDaSQeY= iueleA==<br />
treesuffix: dc=vavai,dc=net<br />
# default language (a line from config/language)<br />
defaultLanguage: en_GB.utf8:UTF-8:English (Great Britain)<br />
# Path to external Script<br />
scriptPath:<br />
# Server of external Script<br />
scriptServer:<br />
# Access rights for home directories<br />
scriptRights: 750<br />
# Number of minutes LAM caches LDAP searches.<br />
cachetimeout: 5<br />
# Module settings<br />
modules: posixAccount_minUID: 10000<br />
modules: posixAccount_maxUID: 20000<br />
modules: posixAccount_minMachine: 10000<br />
modules: posixAccount_maxMachine: 20000<br />
modules: posixGroup_minGID: 10000<br />
modules: posixGroup_maxGID: 20000<br />
modules: posixGroup_pwdHash: SSHA<br />
modules: posixAccount_pwdHash: SSHA<br />
# List of active account types.<br />
activeTypes: user,group,host,smbDomain<br />
types: suffix_user: ou=People,dc=vavai,dc=net<br />
types: attr_user: #uid;#givenName;#sn;#uidNumber;#gidNumber<br />
types: modules_user: inetOrgPerson,posixAccount,shadowAccount,sambaSamAccount<br />
types: suffix_group: ou=group,dc=vavai,dc=net<br />
types: attr_group: #cn;#gidNumber;#memberUID;#description<br />
types: modules_group: posixGroup,sambaGroupMapping<br />
types: suffix_host: ou=machines,dc=vavai,dc=net<br />
types: attr_host: #cn;#description;#uidNumber;#gidNumber<br />
types: modules_host: account,posixAccount,sambaSamAccount<br />
types: suffix_smbDomain: ou=domains,dc=vavai,dc=net<br />
types: attr_smbDomain: sambaDomainName:Domain name;sambaSID:Domain SID<br />
types: modules_smbDomain: sambaDomain<br />
[/code]</li>
<li>Restart Apache service<br />
[code language=&#8217;cpp&#8217;]<br />
service apache2 restart<br />
[/code]</li>
<li>Access the LAM service from http://yourhostname/lam or http://your-server-ip/lam, ex : http://server.vavai.net/lam or http://192.168.1.254/lam</li>
</ol>
<p>Next Tutorial : <strong>Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 4, Configuring Dynamic DHCP &amp; DNS</strong></p>
<p>The post <a href="https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-3/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 3</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-3/feed/</wfw:commentRss>
			<slash:comments>9</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 2</title>
		<link>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-2/</link>
					<comments>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-2/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Rivai]]></dc:creator>
		<pubDate>Wed, 06 Jan 2010 07:45:32 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenLDAP]]></category>
		<category><![CDATA[PDC]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[SUSE Family]]></category>
		<guid isPermaLink="false">http://v2.vavai.net/?p=959</guid>

					<description><![CDATA[<p>Previous Tutorial : Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 1, Installing Base System &#38; Configuring Samba On previous tutorial, we have installing base system and setting up Samba configuration. Now, we will go to LDAP configuration. LDAP on openSUSE 11.1 has a different style than the previous setting on openSUSE...</p>
<p>The post <a href="https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-2/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 2</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Previous Tutorial : Tutorial : <a href="http://v2.vavai.net/2010/01/04/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-1/">Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 1, Installing Base System &amp; Configuring Samba</a><br />
<img decoding="async" src="http://54.254.121.108/wp-content/uploads/2010/01/windows-linux14.jpg" alt="Samba PDC for Linux &amp; Windows Client" /><br />
On previous tutorial, we have installing base system and setting up Samba configuration. Now, we will go to LDAP configuration.<br />
LDAP on openSUSE 11.1 has a different style than the previous setting on openSUSE 10.3. openSUSE 11.1 use the dynamic configuration so the LDAP setting itself will be saved on LDAP database as described on YAST LDAP configuration :</p>
<blockquote><p>#<br />
# Note: The OpenLDAP configuration has been created by YaST. YaST does not<br />
#Â Â Â Â Â Â  use /etc/openldap/slapd.conf to store the OpenLDAP configuration anymore.<br />
#Â Â Â Â Â Â  YaST uses OpenLDAP&#8217;s dynamic configuration database (back-config) to<br />
#Â Â Â Â Â Â  store the LDAP server&#8217;s configuration.<br />
#Â Â Â Â Â Â  For details about the dynamic configuration backend please see the<br />
#Â Â Â Â Â Â  slapd-config(5) manpage or the OpenLDAP Software 2.4 Administrator&#8217;s Guide<br />
#Â Â Â Â Â Â  located at /usr/share/doc/packages/openldap2/guide/admin/guide.html<br />
#Â Â Â Â Â Â  on this system.</p></blockquote>
<p>What make me confused on the first attempt configuring LDAP on openSUSE 11.1 are the problem while trying to get nis.schema work. It has conflict with the built in rfc2307bis.schema. Trying to replace the nis.schema into rfc2307bis.schema bring me into another problem. AFAIK, YAST didn&#8217;t provide the option to remove rfc2307bis.schema and replace it with nis.schema (Actually, it seems that rfc2307bis.schema is an update version from nis.schema but it has not fully compatible with another configuration using nis.schema), so I decided to use the manual configuration and will not use configuration option with YAST menu.<br />
In an email from openSUSE mailing list, I&#8217;ve read that we may also using the files configuration with YAST by change the setting OPENLDAP_CONFIG_BACKEND = &#8220;files&#8221; on /etc/sysconfig/openldap and then make a changes to /etc/openldap/slapd.conf.<br />
In this tutorial, I&#8217;ll be using manual configuration without YAST menu and use nis.schema.</p>
<ol>
<li>Create an LDAP configurationÂ <strong> /etc/openldap/slapd.conf</strong> with the following content :<br />
[code language=&#8217;cpp&#8217;]<br />
include     /etc/openldap/schema/core.schema<br />
include     /etc/openldap/schema/cosine.schema<br />
include     /etc/openldap/schema/inetorgperson.schema<br />
include     /etc/openldap/schema/nis.schema<br />
include     /etc/openldap/schema/samba3.schema<br />
modulepath /usr/lib/openldap/modules/<br />
# moduleload back_bdb.la<br />
pidfile     /var/run/slapd/slapd.pid<br />
argsfile    /var/run/slapd/slapd.args<br />
# Samba Primary Database vavai.net<br />
database    bdb<br />
suffix      &#8220;dc=vavai,dc=net&#8221;<br />
directory   /var/lib/ldap<br />
rootdn      &#8220;cn=Manager,dc=vavai,dc=net&#8221;<br />
rootpw      zezevavai26032006<br />
index entryCSN eq<br />
index entryUUID eq<br />
#access to attrs=userPassword,sambaLMPassword,sambaNTPassword<br />
#      by self write<br />
#      by dn=&#8221;cn=Manager,dc=vavai,dc=net&#8221; write<br />
#      by * auth<br />
#access to *<br />
#      by dn=&#8221;cn=Manager,dc=vavai,dc=net&#8221; write<br />
#      by * read<br />
# Indices to maintain<br />
index objectClass             eq<br />
index cn                      pres,sub,eq<br />
index sn                      pres,sub,eq<br />
index uid                     pres,sub,eq<br />
index displayName             pres,sub,eq<br />
index uidNumber               eq<br />
index gidNumber               eq<br />
index memberUID               eq<br />
index sambaSID                eq<br />
index sambaPrimaryGroupSID    eq<br />
index sambaDomainName         eq<br />
index default                 sub<br />
[/code]</li>
<li>Create <strong>/etc/ldap.conf</strong> configuration :<br />
[code language=&#8217;cpp&#8217;]<br />
# LDAP Master<br />
host    server.vavai.net<br />
base    dc=vavai,dc=net<br />
binddn  cn=Manager,dc=vavai,dc=net<br />
bindpw  zezevavai26032006<br />
bind_policy soft<br />
pam_password exop<br />
nss_base_passwd ou=People,ou=Users,dc=vavai,dc=net?one<br />
nss_base_shadow ou=People,ou=Users,dc=vavai,dc=net?one<br />
nss_base_passwd ou=Computers,ou=Users,dc=vavai,dc=net?one<br />
nss_base_shadow ou=Computers,ou=Users,dc=vavai,dc=net?one<br />
nss_base_group  ou=Groups,dc=vavai,dc=net?one<br />
ssl     no<br />
[/code]</li>
<li>Create <strong>/etc/nsswitch.conf</strong> :<br />
[code language=&#8217;cpp&#8217;]<br />
passwd:         files ldap<br />
shadow:         files ldap<br />
group:          files ldap<br />
hosts:          files dns wins<br />
networks:       files dns<br />
[/code]</li>
<li>Create <strong>/var/lib/ldap/DB_CONFIG</strong><br />
[code language=&#8217;cpp&#8217;]<br />
set_cachesize           0 150000000 1<br />
set_lg_regionmax        262144<br />
set_lg_bsize            2097152<br />
set_flags               DB_LOG_AUTOREMOVE<br />
[/code]</li>
<li>Create an ldif file to fill the initial LDAP database. Saved it as domainname.ldif (in my case : vavai.ldif) and then copy-paste the following content. Don&#8217;t forget to replace <strong>S-1-2-33-4444444444-5555555555-6666666666</strong> with your Samba SID (See previous tutorial)<br />
[code language=&#8217;cpp&#8217;]<br />
# LDAP INITIAL DATA<br />
# SID S-1-2-33-4444444444-5555555555-6666666666.<br />
dn: dc=vavai,dc=net<br />
objectClass: dcObject<br />
objectClass: organization<br />
dc: vavai<br />
o: VAVAI<br />
description: Posix and Samba LDAP Identity Database<br />
dn: cn=Manager,dc=vavai,dc=net<br />
objectClass: organizationalRole<br />
cn: Manager<br />
description: Directory Manager<br />
dn: cn=syncuser,dc=vavai,dc=net<br />
objectClass: person<br />
cn: syncuser<br />
sn: syncuser<br />
userPassword: SyncUser<br />
dn: cn=sambaadmin,dc=vavai,dc=net<br />
objectClass: person<br />
cn: sambaadmin<br />
sn: sambaadmin<br />
userPassword: SambaAdmin<br />
dn: cn=mailadmin,dc=vavai,dc=net<br />
objectClass: person<br />
cn: mailadmin<br />
sn: mailadmin<br />
userPassword: MailAdmin<br />
dn: ou=Users,dc=vavai,dc=net<br />
objectClass: top<br />
objectClass: organizationalUnit<br />
ou: Users<br />
dn: ou=People,ou=Users,dc=vavai,dc=net<br />
objectClass: top<br />
objectClass: organizationalUnit<br />
ou: People<br />
dn: ou=Computers,ou=Users,dc=vavai,dc=net<br />
objectClass: top<br />
objectClass: organizationalUnit<br />
ou: Computers<br />
dn: ou=Groups,dc=vavai,dc=net<br />
objectClass: top<br />
objectClass: organizationalUnit<br />
ou: Groups<br />
dn: ou=Domains,dc=vavai,dc=net<br />
objectClass: top<br />
objectClass: organizationalUnit<br />
ou: Domains<br />
dn: sambaDomainName=VAVAI.NET,ou=Domains,dc=vavai,dc=net<br />
objectClass: sambaDomain<br />
objectClass: sambaUnixIdPool<br />
uidNumber: 1000<br />
gidNumber: 1000<br />
sambaDomainName: VAVAI.NET<br />
sambaSID: S-1-2-33-4444444444-5555555555-6666666666<br />
sambaAlgorithmicRidBase: 1000<br />
structuralObjectClass: sambaDomain<br />
dn: cn=Domain Admins,ou=Groups,dc=vavai,dc=net<br />
objectClass: posixGroup<br />
objectClass: sambaGroupMapping<br />
gidNumber: 512<br />
cn: Domain Admins<br />
sambaSID: S-1-2-33-4444444444-5555555555-6666666666-512<br />
sambaGroupType: 2<br />
displayName: Domain Admins<br />
description: Domain Administrators<br />
dn: cn=Domain Users,ou=Groups,dc=vavai,dc=net<br />
objectClass: posixGroup<br />
objectClass: sambaGroupMapping<br />
gidNumber: 513<br />
cn: Domain Users<br />
sambaSID: S-1-2-33-4444444444-5555555555-6666666666-513<br />
sambaGroupType: 2<br />
displayName: Domain Users<br />
description: Domain Users<br />
dn: cn=Domain Guests,ou=Groups,dc=vavai,dc=net<br />
objectClass: posixGroup<br />
objectClass: sambaGroupMapping<br />
gidNumber: 514<br />
cn: Domain Guests<br />
sambaSID: S-1-2-33-4444444444-5555555555-6666666666-514<br />
sambaGroupType: 2<br />
displayName: Domain Guests<br />
description: Domain Guests<br />
dn: cn=Domain Computers,ou=Groups,dc=vavai,dc=net<br />
objectClass: posixGroup<br />
objectClass: sambaGroupMapping<br />
gidNumber: 515<br />
cn: Domain Computers<br />
sambaSID: S-1-2-33-4444444444-5555555555-6666666666-515<br />
sambaGroupType: 2<br />
displayName: Domain Computers<br />
description: Domain Computers<br />
dn: cn=Administrators,ou=Groups,dc=vavai,dc=net<br />
objectClass: posixGroup<br />
objectClass: sambaGroupMapping<br />
gidNumber: 544<br />
cn: Administrators<br />
sambaSID: S-1-2-33-4444444444-5555555555-6666666666-544<br />
sambaGroupType: 5<br />
displayName: Administrators<br />
description: Administrators<br />
dn: cn=Account Operators,ou=Groups,dc=vavai,dc=net<br />
objectClass: posixGroup<br />
objectClass: sambaGroupMapping<br />
gidNumber: 548<br />
cn: Account Operators<br />
sambaSID: S-1-2-33-4444444444-5555555555-6666666666-548<br />
sambaGroupType: 5<br />
displayName: Account Operators<br />
description: Account Operators<br />
dn: cn=Print Operators,ou=Groups,dc=vavai,dc=net<br />
objectClass: posixGroup<br />
objectClass: sambaGroupMapping<br />
gidNumber: 550<br />
cn: Print Operators<br />
sambaSID: S-1-2-33-4444444444-5555555555-6666666666-550<br />
sambaGroupType: 5<br />
displayName: Print Operators<br />
description: Print Operators<br />
dn: cn=Backup Operators,ou=Groups,dc=vavai,dc=net<br />
objectClass: posixGroup<br />
objectClass: sambaGroupMapping<br />
gidNumber: 551<br />
cn: Backup Operators<br />
sambaSID: S-1-2-33-4444444444-5555555555-6666666666-551<br />
sambaGroupType: 5<br />
displayName: Backup Operators<br />
description: Backup Operators<br />
dn: cn=Replicators,ou=Groups,dc=vavai,dc=net<br />
objectClass: posixGroup<br />
objectClass: sambaGroupMapping<br />
gidNumber: 552<br />
cn: Replicators<br />
sambaSID: S-1-2-33-4444444444-5555555555-6666666666-552<br />
sambaGroupType: 5<br />
displayName: Replicators<br />
description: Replicators<br />
[/code]</li>
<li>Import the LDIF file into LDAP database with the following command (don&#8217;t forget to replace vavai.ldif with your own) :<br />
[code language=&#8217;cpp&#8217;]<br />
slapadd -v -l vavai.ldif -f /etc/openldap/slapd.conf<br />
[/code]<br />
It should be response with the process information as below :</p>
<blockquote><p>added: &#8220;dc=vavai,dc=net&#8221; (00000001)<br />
added: &#8220;cn=Manager,dc=vavai,dc=net&#8221; (00000002)<br />
added: &#8220;cn=syncuser,dc=vavai,dc=net&#8221; (00000003)<br />
added: &#8220;cn=sambaadmin,dc=vavai,dc=net&#8221; (00000004)<br />
added: &#8220;cn=mailadmin,dc=vavai,dc=net&#8221; (00000005)<br />
added: &#8220;ou=Users,dc=vavai,dc=net&#8221; (00000006)<br />
added: &#8220;ou=People,ou=Users,dc=vavai,dc=net&#8221; (00000007)<br />
added: &#8220;ou=Computers,ou=Users,dc=vavai,dc=net&#8221; (00000008)<br />
added: &#8220;ou=Groups,dc=vavai,dc=net&#8221; (00000009)<br />
added: &#8220;ou=Domains,dc=vavai,dc=net&#8221; (0000000a)<br />
added: &#8220;sambaDomainName=VAVAI.NET,ou=Domains,dc=vavai,dc=net&#8221; (0000000b)<br />
added: &#8220;cn=Domain Admins,ou=Groups,dc=vavai,dc=net&#8221; (0000000c)<br />
added: &#8220;cn=Domain Users,ou=Groups,dc=vavai,dc=net&#8221; (0000000d)<br />
added: &#8220;cn=Domain Guests,ou=Groups,dc=vavai,dc=net&#8221; (0000000e)<br />
added: &#8220;cn=Domain Computers,ou=Groups,dc=vavai,dc=net&#8221; (0000000f)<br />
added: &#8220;cn=Administrators,ou=Groups,dc=vavai,dc=net&#8221; (00000010)<br />
added: &#8220;cn=Account Operators,ou=Groups,dc=vavai,dc=net&#8221; (00000011)<br />
added: &#8220;cn=Print Operators,ou=Groups,dc=vavai,dc=net&#8221; (00000012)<br />
added: &#8220;cn=Backup Operators,ou=Groups,dc=vavai,dc=net&#8221; (00000013)<br />
added: &#8220;cn=Replicators,ou=Groups,dc=vavai,dc=net&#8221; (00000014)</p></blockquote>
<p>If you found an error while trying to import the ldif file, check your ldif file to see if there&#8217;s a typo.</li>
<li>Setting up the owner for LDAP folder :<br />
[code language=&#8217;cpp&#8217;]<br />
chown -R ldap.ldap /var/lib/ldap/<br />
[/code]</li>
<li>Create Samba primary password<br />
[code language=&#8217;cpp&#8217;]<br />
smbpasswd -w zezevavai26032006<br />
[/code]</li>
<p>Samba should be response with the following message :<br />
<em> Setting stored password for &#8220;cn=sambaadmin,dc=vavai,dc=net&#8221; in secrets.tdb</em></ol>
<p>We will continue to next article : Tutorial : <strong>Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 3, Setting up smbldap-tools and LAM (LDAP Accounts Manager)</strong></p>
<p>The post <a href="https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-2/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 â€“ Part 2</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-2/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 &#8211; Part 1</title>
		<link>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-1/</link>
					<comments>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-1/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Rivai]]></dc:creator>
		<pubDate>Mon, 04 Jan 2010 10:07:24 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenLDAP]]></category>
		<category><![CDATA[PDC]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[SUSE Family]]></category>
		<guid isPermaLink="false">http://v2.vavai.net/?p=949</guid>

					<description><![CDATA[<p>I would notice that based on my experience, configuring Samba PDC + OpenLDAP on openSUSE 11.1 are a long journey that would bring you into headache, so you must be careful on copying the configuration and make a proper changes to meet with your environment. Please give me a comment if you found a typo...</p>
<p>The post <a href="https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-1/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 &#8211; Part 1</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="http://54.254.121.108/wp-content/uploads/2010/01/windows-linux14.jpg"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-950" title="windows-linux1" src="http://54.254.121.108/wp-content/uploads/2010/01/windows-linux14.jpg" alt="" width="350" height="204" /></a><br />
I would notice that based on my experience, configuring Samba PDC + OpenLDAP on openSUSE 11.1 are a long journey that would bring you into headache, so you must be careful on copying the configuration and make a proper changes to meet with your environment. Please give me a comment if you found a typo or an error message while trying the tutorial.<br />
I&#8217;m using vavai.net as domain name, server as hostname and 192.168.1.254 as server IP address.<br />
<strong>INSTALLING BASE  SYSTEM<br />
</strong></p>
<ol>
<li>Install openSUSE with the default option. You may choose to use standard disk partition, LVM or a <a href="http://v2.vavai.net/2009/12/30/implementing-software-raid-on-opensuse-11-2/">RAID array</a>. Also, select your preferred interface between graphical or text mode environment</li>
<li>Install the following pattern with YAST | Software | Software Management or Zypper : lamp_server dhcp_dns_server file_server directory_server</li>
<li>Install  following package using <a href="http://software.opensuse.org/search">openSUSE Build Service</a> : perl-Unicode-MapUTF8 perl-ldap smbldap-tools phpldapadmin</li>
</ol>
<p><strong>CONFIGURING SAMBA</strong></p>
<ol>
<li>Backup old Samba configuration<br />
[code language=&#8217;cpp&#8217;]<br />
su<br />
cd /etc/samba/<br />
mv smb.conf smb.conf.old<br />
[/code]</li>
<li>Create a new /etc/samba/smb.conf with your preferred editor and with root permission. Copy-paste the following configuration and make a proper changes according to your environment :<br />
[code language=&#8217;cpp&#8217;]<br />
# Primary Domain Controller smb.conf<br />
# Global parameters<br />
[global]<br />
unix charset = utf8<br />
workgroup = VAVAI<br />
netbios name = server<br />
# passdb backend =ldapsam:&#8221;ldap://server.vavai.net&#8221;  ## Leave it as is<br />
username map = /etc/samba/smbusers<br />
log level = 1<br />
syslog = 0<br />
log file = /var/log/samba/%m<br />
max log size = 0<br />
name resolve order = wins bcast hosts<br />
time server = Yes<br />
printcap name = CUPS<br />
add user script = /usr/sbin/smbldap-useradd -m &#8216;%u&#8217;<br />
delete user script = /usr/sbin/smbldap-userdel &#8216;%u&#8217;<br />
add group script = /usr/sbin/smbldap-groupadd -p &#8216;%g&#8217;<br />
delete group script = /usr/sbin/smbldap-groupdel &#8216;%g&#8217;<br />
add user to group script = /usr/sbin/smbldap-groupmod -m &#8216;%g&#8217; &#8216;%u&#8217;<br />
delete user from group script = /usr/sbin/smbldap-groupmod -x &#8216;%g&#8217; &#8216;%u&#8217;<br />
set primary group script = /usr/sbin/smbldap-usermod -g &#8216;%g&#8217; &#8216;%u&#8217;<br />
add machine script = /usr/sbin/smbldap-useradd -w &#8216;%u&#8217;<br />
logon script = logon.bat<br />
logon path = \serverprofiles%u<br />
logon drive = H:<br />
domain logons = Yes<br />
domain master = Yes<br />
wins support = Yes<br />
# peformance optimization all users stored in ldap<br />
ldapsam:trusted = yes<br />
ldap suffix = dc=vavai,dc=net<br />
ldap machine suffix = ou=Computers,ou=Users<br />
ldap user suffix = ou=People,ou=Users<br />
ldap group suffix = ou=Groups<br />
ldap idmap suffix = ou=Idmap<br />
ldap admin dn = cn=Manager,dc=vavai,dc=net<br />
idmap backend = ldap://127.0.0.1<br />
idmap uid = 10000-20000<br />
idmap gid = 10000-20000<br />
printer admin = root<br />
printing = cups<br />
#========================Share Definitions=========================<br />
[homes]<br />
comment = Home Directories<br />
valid users = %S<br />
browseable = yes<br />
writable = yes<br />
create mask = 0600<br />
directory mask = 0700<br />
[sysvol]<br />
path = /data/samba/sysvol<br />
read only = no<br />
[netlogon]<br />
comment = Network Logon Service<br />
path = /data/samba/sysvol/vavai.net/scripts<br />
writeable = yes<br />
browseable = yes<br />
read only = no<br />
[profiles]<br />
path = /data/samba/profiles<br />
writeable = yes<br />
browseable = no<br />
read only = no<br />
create mode = 0777<br />
directory mode = 0777<br />
[Documents]<br />
comment = share to test samba<br />
path = /data/documents<br />
writeable = yes<br />
browseable = yes<br />
read only = no<br />
valid users = &#8220;@Domain Users&#8221;<br />
[/code]</li>
<li>Create Samba folder<br />
[code language=&#8217;cpp&#8217;]<br />
mkdir /data<br />
mkdir /data/samba<br />
mkdir /data/samba/sysvol<br />
mkdir /data/samba/sysvol/vavai.net<br />
mkdir /data/samba/sysvol/vavai.net/scripts<br />
mkdir /data/documents<br />
mkdir /data/samba/profiles<br />
[/code]</li>
<li>Edit /etc/hosts so the content would like this :<br />
[code language=&#8217;cpp&#8217;]<br />
# IP-Address  FullyQualifiedHostName  ShortHostname<br />
#<br />
127.0.0.1Â    localhost   localhost.localdomain<br />
192.168.1.254    server   server.vavai.net<br />
[/code]</li>
<li>Get the Samba server Local SID with the following command :<br />
[code language=&#8217;cpp&#8217;]<br />
net getlocalsid<br />
[/code]<br />
Samba will response with the SID for domain, ex : SID for domain SERVER is: S-1-2-33-4444444444-5555555555-6666666666. Write it because we will need the SID for smbldap-tools</li>
<li>Edit /etc/samba/smb.conf and remove the mark from the following line :<br />
[code language=&#8217;cpp&#8217;]<br />
# passdb backend =ldapsam:&#8221;ldap://server.vavai.net&#8221;  ## Leave it as is<br />
[/code]<br />
so, it will looks like this :<br />
[code language=&#8217;cpp&#8217;]<br />
passdb backend =ldapsam:&#8221;ldap://server.vavai.net&#8221;<br />
[/code]</li>
</ol>
<p>We will continue to the second tutorial : <a href="http://v2.vavai.net/2010/01/06/tutorial-samba-pdc-openldap-on-opensuse-11-1-%E2%80%93-part-2/"><strong>Samba PDC + OpenLDAP on openSUSE 11.1 &#8211; Configuring LDAP Server</strong></a></p>
<p>The post <a href="https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-1/">Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 &#8211; Part 1</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.vavai.net/tutorial-samba-pdc-openldap-on-opensuse-11-1-part-1/feed/</wfw:commentRss>
			<slash:comments>14</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 24/93 objects using Disk
Page Caching using Disk: Enhanced 
Content Delivery Network via Amazon Web Services: CloudFront: d3b35uem336dgh.cloudfront.net
Lazy Loading (feed)
Minified using Disk
Database Caching 13/38 queries in 0.016 seconds using Disk

Served from: www.vavai.net @ 2026-11-10 14:32:01 by W3 Total Cache
-->