<?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>LDAP Archives - Vavai&#039;s Personal Notes</title>
	<atom:link href="https://www.vavai.net/tag/ldap/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.vavai.net/tag/ldap/</link>
	<description>Life is our precious gift</description>
	<lastBuildDate>Fri, 06 Aug 2010 02:19:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Script for Export-Import Zimbra Mail Server Account &#038; Password</title>
		<link>https://www.vavai.net/script-for-export-import-zimbra-mail-server-account-password/</link>
					<comments>https://www.vavai.net/script-for-export-import-zimbra-mail-server-account-password/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Rivai]]></dc:creator>
		<pubDate>Fri, 06 Aug 2010 02:19:22 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Zimbra]]></category>
		<guid isPermaLink="false">http://v2.vavai.net/?p=1229</guid>

					<description><![CDATA[<p>Zimbra save all account and profile information on the LDAP database. Zimbra has no function for only import and export it&#8217;s account, although they have bundled Zimbra to Zimbra migration command. The Zimbra to Zimbra migration command export all mailbox and account while I only need a list of account with some primary fields like...</p>
<p>The post <a href="https://www.vavai.net/script-for-export-import-zimbra-mail-server-account-password/">Script for Export-Import Zimbra Mail Server Account &#038; Password</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a class="highslide" onclick="return vz.expand(this)" href="http://v2.vavai.net/wp-content/uploads/2010/08/zimbra-opensuse1.jpg"><img decoding="async" class="alignnone size-full wp-image-1240" title="zimbra-opensuse1" src="http://v2.vavai.net/wp-content/uploads/2010/08/zimbra-opensuse1.jpg" alt="" width="125" height="125" /></a><br />
Zimbra save all account and profile information on the LDAP database. Zimbra has no function for only import and export it&#8217;s account, although they have bundled Zimbra to Zimbra migration command. The Zimbra to Zimbra migration command export all mailbox and account while I only need a list of account with some primary fields like password, first name, full name, etc, especially for testing purpose only.<br />
I decided to create a simple script that look for related information on Zimbra LDAP with the following algorithm :</p>
<ol>
<li>CheckÂ  Zimbra version, because Zimbra 5 and Zimbra 6 has different method for accessing LDAP and also these are a few changes on Zimbra CLI. Zimbra 6 need paramater for command while Zimbra 5 doesn&#8217;t need it, e.g, on Zimbra 5, running <strong>zmprov gaa</strong> will list all Zimbra account but on Zimbra 6 we must use <strong>zmprov -l gaa </strong>to display same result.</li>
<li>Export all  account profile to temporary parameter and loop for all account</li>
<li>Skip all system account : admin, ham, spam, galsync and wiki. All these system account doesn&#8217;t need to be exported because Zimbra will create all system account on installation process.</li>
<li>Get all account identity/fields from Zimbra LDAP by usingÂ  LDAPsearch command</li>
<li>Create a text file with zmp extension. This file will containsÂ  zmprov ca command with proper parameter from step 4</li>
<li>Create  ldif file for updating Zimbra LDAP password, because Zimbra LDAP using SSHA encryption and the better method for updating Zimbra LDAP password is using ldapmodify command.</li>
<li>Finish</li>
</ol>
<p>Algorithm for  Import Account</p>
<ol>
<li>Check whether user are already on Zimbra user environment or not</li>
<li>Check is there existingÂ  zmp and ldif file (the result from export script)</li>
<li>Import zmp file</li>
<li>Run ldapmodify command to change Zimbra LDAP password by usingÂ  ldif data</li>
<li>Finish</li>
</ol>
<p>Please remember that you must running exportÂ  script by using root privilegeÂ  but theÂ  import account must be run withinÂ  Zimbra user environment (su &#8211; zimbra).<br />
Look at following example to run Zimbra Account export script :<br />
[code language=&#8217;cpp&#8217;]<br />
su<br />
cd /srv<br />
wget -c http://vavai.com/wp-content/uploads/exim-acc-zcs.tar.gz<br />
tar -zxvf exim-acc-zcs.tar.gz<br />
cd exim-acc-zcs<br />
./export-acc-zcs.sh<br />
[/code]<br />
The above command will produceÂ  zcs-acc-add.zmp and zcs-acc-mod.ldif file. Copy all four file (the last two areÂ  script file) onto some folder on target server and run the following command to import the account and it&#8217;s profile :<br />
[code language=&#8217;cpp&#8217;]<br />
su<br />
su &#8211; zimbra<br />
cd /home/vavai<br />
./import-acc-zcs.sh<br />
[/code]<br />
Script has been sucessfully tested on  Zimbra 6.0.5, 6.0.6 dan 6.0.7 on SUSE Linux Enterprise Server 11 and openSUSE 11.<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://54.254.121.108/wp-content/uploads/2010/08/export-account-zcs1.jpeg"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-1245" title="export-account-zcs" src="http://54.254.121.108/wp-content/uploads/2010/08/export-account-zcs1.jpeg" alt="" width="428" height="230" /></a><br />
Download Zimbra Account Export-Import Script by click on the download icon belows :<br />
<a href="http://vavai.com/wp-content/uploads/exim-acc-zcs.tar.gz"><img decoding="async" src="http://vavai.com/wp-content/uploads/2010/06/Download.png" alt="" /></a><br />
Script for export :<br />
[code language=&#8217;cpp&#8217;]<br />
#!/bin/sh<br />
#Hapus Layar<br />
clear<br />
echo -e &#8220;###################################################################################&#8221;<br />
echo -e &#8220;# Zimbra export-acc-zcs.sh ver 0.0.2                                              #&#8221;<br />
echo -e &#8220;# Skrip untuk export account Zimbra berikut profile dan password                  #&#8221;<br />
echo -e &#8220;# Masim &#8216;Vavai&#8217; Sugianto &#8211; vavai@vavai.com &#8211; http://www.vavai.com                 #&#8221;<br />
echo -e &#8220;# Untuk saran dan pertanyaan silakan menggunakan Milis Komunitas Zimbra Indonesia #&#8221;<br />
echo -e &#8220;# Link Komunitas : http://www.zimbra.web.id &#8211; http://www.opensuse.or.id           #&#8221;<br />
echo -e &#8220;###################################################################################&#8221;<br />
# /* Variable untuk bold */<br />
ibold=&#8221; 33[1m&#8221;&#8221;n===> &#8221;<br />
ebold=&#8221; 33[0m&#8221;<br />
# /* Parameter */<br />
echo &#8220;&#8221;<br />
echo -n &#8220;Enter Domain Name (ex : vavai.com) : &#8221;<br />
read NAMA_DOMAIN<br />
echo -n &#8220;Enter path folder for exported account (ex : /home/vavai/) : &#8221;<br />
read FOLDER<br />
# /* Membuat file hasil export dan mengisi nama domain */<br />
NAMA_FILE=&#8221;$FOLDER/zcs-acc-add.zmp&#8221;<br />
LDIF_FILE=&#8221;$FOLDER/zcs-acc-mod.ldif&#8221;<br />
rm -f $NAMA_FILE<br />
rm -f $LDIF_FILE<br />
touch $NAMA_FILE<br />
touch $LDIF_FILE<br />
echo &#8220;createDomain $NAMA_DOMAIN&#8221; > $NAMA_FILE<br />
# /* Check versi Zimbra yang digunakan */<br />
VERSION=`su &#8211; zimbra -c &#8216;zmcontrol -v&#8217;`;<br />
ZCS_VER=&#8221;/tmp/zcsver.txt&#8221;<br />
# get Zimbra LDAP password<br />
ZIMBRA_LDAP_PASSWORD=`su &#8211; zimbra -c &#8220;zmlocalconfig -s zimbra_ldap_password | cut -d &#8216; &#8216; -f3&#8243;`<br />
touch $ZCS_VER<br />
echo $VERSION > $ZCS_VER<br />
echo -e $ibold&#8221;Retrieve Zimbra User&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8221;$ebold<br />
grep &#8220;Release 5.&#8221; $ZCS_VER<br />
if [ $? = 0 ]; then<br />
USERS=`su &#8211; zimbra -c &#8216;zmprov gaa&#8217;`;<br />
LDAP_MASTER_URL=`su &#8211; zimbra -c &#8220;zmlocalconfig -s ldap_master_url | cut -d &#8216; &#8216; -f3&#8243;`<br />
fi<br />
grep &#8220;Release 6.&#8221; $ZCS_VER<br />
if [ $? = 0 ]; then<br />
USERS=`su &#8211; zimbra -c &#8216;zmprov -l gaa&#8217;`;<br />
LDAP_MASTER_URL=&#8221;ldapi:///&#8221;<br />
fi<br />
echo -e $ibold&#8221;Processing account, please wait&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8221;$ebold<br />
# /* Proses insert account kedalam file hasil export */<br />
for ACCOUNT in $USERS; do<br />
NAME=`echo $ACCOUNT`;<br />
DOMAIN=`echo $ACCOUNT | awk -F@ &#8216;{print $2}&#8217;`;<br />
ACCOUNT=`echo $ACCOUNT | awk -F@ &#8216;{print $1}&#8217;`;<br />
ACC=`echo $ACCOUNT | cut -d &#8216;.&#8217; -f1`<br />
if [ $NAMA_DOMAIN == $DOMAIN ] ;<br />
then<br />
OBJECT=&#8221;(&#038;(objectClass=zimbraAccount)(mail=$NAME))&#8221;<br />
dn=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep dn:`<br />
displayName=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep displayName: | cut -d &#8216;:&#8217; -f2 | sed &#8216;s/^ *//g&#8217; | sed &#8216;s/ *$//g&#8217;`<br />
givenName=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep givenName: | cut -d &#8216;:&#8217; -f2 | sed &#8216;s/^ *//g&#8217; | sed &#8216;s/ *$//g&#8217;`<br />
userPassword=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep userPassword: | cut -d &#8216;:&#8217; -f3 | sed &#8216;s/^ *//g&#8217; | sed &#8216;s/ *$//g&#8217;`<br />
cn=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep cn: | cut -d &#8216;:&#8217; -f2 | sed &#8216;s/^ *//g&#8217; | sed &#8216;s/ *$//g&#8217;`<br />
initials=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep initials: | cut -d &#8216;:&#8217; -f2 | sed &#8216;s/^ *//g&#8217; | sed &#8216;s/ *$//g&#8217;`<br />
sn=`/opt/zimbra/bin/ldapsearch -H $LDAP_MASTER_URL -w $ZIMBRA_LDAP_PASSWORD -D uid=zimbra,cn=admins,cn=zimbra -x $OBJECT | grep sn: | cut -d &#8216;:&#8217; -f2 | sed &#8216;s/^ *//g&#8217; | sed &#8216;s/ *$//g&#8217;`<br />
	if [ $ACC == &#8220;admin&#8221; ] || [ $ACC == &#8220;wiki&#8221; ] || [ $ACC == &#8220;galsync&#8221; ] || [ $ACC == &#8220;ham&#8221; ] || [ $ACC == &#8220;spam&#8221; ]; then<br />
    		echo &#8220;Skipping system account, $NAME&#8230;&#8221;<br />
	else<br />
		echo &#8220;createAccount $NAME passwordtemp displayName &#8216;$displayName&#8217; givenName &#8216;$givenName&#8217; sn &#8216;$sn&#8217; initials &#8216;$initials&#8217; zimbraPasswordMustChange FALSE&#8221; >> $NAMA_FILE<br />
    		echo &#8220;$dn<br />
changetype: modify<br />
replace: userPassword<br />
userPassword:: $userPassword<br />
&#8221; >> $LDIF_FILE<br />
    		echo &#8220;Adding account $NAME&#8221;<br />
	fi<br />
else<br />
	echo &#8220;Skipping account $NAME&#8221;<br />
fi<br />
done<br />
echo -e $ibold&#8221;All account has been exported sucessfully into $NAMA_FILE and $LDIF_FILE&#8230;&#8221;$ebold<br />
[/code]<br />
<strong>Script for import :</strong><br />
[code language=&#8217;cpp&#8217;]<br />
#!/bin/sh<br />
#Hapus Layar<br />
clear<br />
echo -e &#8216;###################################################################################&#8217;<br />
echo -e &#8216;# Zimbra import-zcs-acc.sh ver 0.0.1                                              #&#8217;<br />
echo -e &#8216;# Skrip untuk import data account Zimbra                                          #&#8217;<br />
echo -e &#8216;# Masim &#8216;Vavai&#8217; Sugianto &#8211; vavai@vavai.com &#8211; http://www.vavai.com                 #&#8217;<br />
echo -e &#8216;# Untuk saran dan pertanyaan silakan menggunakan Milis Komunitas Zimbra Indonesia #&#8217;<br />
echo -e &#8216;# Link Komunitas : http://www.zimbra.web.id &#8211; http://www.opensuse.or.id           #&#8217;<br />
echo -e &#8216;###################################################################################&#8217;<br />
# /* Variable untuk bold */<br />
ibold=&#8221; 33[1m&#8221;&#8221;n===> &#8221;<br />
ebold=&#8221; 33[0m&#8221;<br />
if [ &#8220;$USER&#8221; != &#8220;zimbra&#8221; ]<br />
then<br />
        echo -e $ibold&#8221;You need to be user zimbra to run this script&#8230;&#8221;$ebold<br />
	exit<br />
fi<br />
CURRENT_FOLDER=`pwd`;<br />
echo &#8220;&#8221;<br />
echo -e &#8220;Please verify that you have copied zcs-acc-add.zmp &#038; zcs-acc-mod.ldif on current folder !&#8221;<br />
echo -e &#8220;Current Folder : $CURRENT_FOLDER, Please change to your folder before running this script.&#8221;<br />
echo -e &#8220;Press ENTER to continue&#8230;&#8221;<br />
read jawab<br />
if [ -f ./zcs-acc-add.zmp ];<br />
then<br />
   if [ -f ./zcs-acc-add.zmp ];<br />
	then<br />
   		echo -e $ibold&#8221;Importing account&#8230;&#8221;$ebold<br />
		ZIMBRA_LDAP_PASSWORD=`zmlocalconfig -s zimbra_ldap_password | cut -d &#8216; &#8216; -f3`<br />
#		cat ./zcs-acc-add.zmp | su &#8211; zimbra -c zmprov<br />
		zmprov < $CURRENT_FOLDER/zcs-acc-add.zmp
		echo -e $ibold"Modify password..."$ebold
                ldapmodify -f "$CURRENT_FOLDER/zcs-acc-mod.ldif" -x -H ldapi:/// -D cn=config -w $ZIMBRA_LDAP_PASSWORD
#		su - zimbra -c '$LDAP_CMD'
		echo -e $ibold"Zimbra account has been modified sucessfully ..."$ebold
	else
   		echo "Sorry, file $CURRENT_FOLDER/zcs-acc-mod.ldif does not exists, import process will not be continue..."
		exit
	fi
else
   echo "Sorry, file $CURRENT_FOLDER/zcs-acc-add.zmp does not exists, import process will not be continue..."
   exit
fi
[/code]
</p>
<p>The post <a href="https://www.vavai.net/script-for-export-import-zimbra-mail-server-account-password/">Script for Export-Import Zimbra Mail Server Account &#038; Password</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/script-for-export-import-zimbra-mail-server-account-password/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>User Account Integration between Samba PDC &#038; Zimbra Mail Server on openSUSE/SLES Part 2 (Finish)</title>
		<link>https://www.vavai.net/user-account-integration-between-samba-pdc-zimbra-mail-server-on-opensusesles-part-2-finish/</link>
					<comments>https://www.vavai.net/user-account-integration-between-samba-pdc-zimbra-mail-server-on-opensusesles-part-2-finish/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Rivai]]></dc:creator>
		<pubDate>Wed, 31 Mar 2010 10:08:47 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[PDC]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Zimbra]]></category>
		<guid isPermaLink="false">http://v2.vavai.net/?p=1201</guid>

					<description><![CDATA[<p>This is part 2 of 2 article. Previous article : User Account Integration between Samba PDC &#38; Zimbra Mail Server on openSUSE/SLES Part 1 MANAGING SAMBA DOMAIN WITH ZIMBRA ADMIN Restart samba service with the following command : [code language=&#8217;cpp&#8217;]service smb restart [/code] Login to Zimbra Admin and see that these are 2 new entry...</p>
<p>The post <a href="https://www.vavai.net/user-account-integration-between-samba-pdc-zimbra-mail-server-on-opensusesles-part-2-finish/">User Account Integration between Samba PDC &#038; Zimbra Mail Server on openSUSE/SLES Part 2 (Finish)</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This is part 2 of 2 article. Previous article : <a href="http://v2.vavai.net/2010/03/31/user-account-integration-between-samba-pdc-zimbra-mail-server-on-opensuse-sles/">User Account Integration between Samba PDC &amp; Zimbra Mail Server on openSUSE/SLES Part 1</a></p>
<h4><a class="highslide" onclick="return vz.expand(this)" href="http://54.254.121.108/wp-content/uploads/2010/03/windows-linux11.jpg"><img decoding="async" class="alignnone size-full wp-image-1207" title="windows-linux" src="http://54.254.121.108/wp-content/uploads/2010/03/windows-linux11.jpg" alt="" width="350" height="204" /></a></h4>
<h4>MANAGING SAMBA DOMAIN WITH ZIMBRA ADMIN</h4>
<ul>
<li> Restart  samba service with the following command :</li>
</ul>
<p>[code language=&#8217;cpp&#8217;]service smb restart<br />
[/code]</p>
<ul>
<li> Login to Zimbra Admin and see that these are 2 new entry on left panel menu : Posix Groups and Samba Domain. If you click on Samba Domain, there should be existing  entry, your Samba domain (in my sample : vavai.co.id). Please restart your computer if you found nothing on the Samba Domain menu.<br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/zimbra-admin.png"><img loading="lazy" decoding="async" class="size-full wp-image-1148 alignnone" title="zimbra-admin" src="http://vavai.com/wp-content/uploads/2010/03/zimbra-admin.png" alt="" width="480" height="312" /></a></li>
</ul>
<p><strong>MANAGING LINUX AND SAMBA GROUPS USING ZIMBRA ADMIN<br />
</strong></p>
<ul>
<li> Login to Zimbra Admin</li>
<li> Choose Posix Groups</li>
<li>Click New. Fill in you new group, ie :  Accounting. Move to Samba Group tab and choose your domain from combo box. Fill in 2 (default entry for group) on group type text box.</li>
<li> Click Save</li>
</ul>
<p>Test the configuration whether Samba successfully read new added groups or no by using this command on konsole/terminal :<br />
[code language=&#8217;cpp&#8217;]<br />
su<br />
getent group<br />
[/code]<br />
Samba should be response by display list of groups and your new group should be listed on the list.<br />
Create new user account by using following procedure :</p>
<ul>
<li>Open Zimbra Admin</li>
<li>Click Account</li>
<li> Click New</li>
<li>Fill in account profile and description. Account name, First Name, Last Name and Password are mandatory, mark with *. Scroll down to bottom of account wizard to change password.</li>
<li>Click  Next until finish. These are should be 2 add-on tabs/wizard at the end of Account configuration: Posix Groups and Samba Domain. Add your new account as your new group member and Samba domain member</li>
<li>Click finish</li>
</ul>
<p>Test the configuration whether Samba successfully read new added user account  or no by using following command on konsole/terminal :<br />
[code language=&#8217;cpp&#8217;]su<br />
getent passwd<br />
[/code]<br />
Samba should be response by display list of user account and your new user  should be listed on the user list.</p>
<h4>UPDATE PROFILE FOR EXISTING ACCOUNT</h4>
<p>Run the following command to update profile of existing Zimbra user (user created before Samba-Zimbra joined). Replace Samba SID with your own (Look at  Zimbra Admin | Samba Domain) :<br />
[code language=&#8217;cpp&#8217;]zmprov ma admin@vavai.co.id +objectClass posixAccount uidNumber 10003 gidNumber 10001 homeDirectory /home/admin loginShell /bin/bash<br />
zmprov ma admin@vavai.co.id +objectClass sambaSamAccount sambaDomainName vavai.co.id sambaSID S-1-5-21-3745602466-621825477-2613676135-21006 sambaAcctFlags [UX]<br />
[/code]<br />
<strong>MAKING WINDOWS NT DOMAIN GROUP</strong><br />
We will use this group as Administrative user for join client as domain member :</p>
<ul>
<li>Login to Zimbra Admin</li>
<li> Choose Posix Groups, click New</li>
<li>Fill ini group name : Domain Admins. Move to  Samba tab, pick your domain name from combo box and then choose Special Windows group &#8211; Domain Admins</li>
<li> Click Save</li>
<li>Run the following command to give this group domain administrative permission :</li>
</ul>
<p>[code language=&#8217;cpp&#8217;]net rpc rights grant &#8220;vavai.co.idDomain Admins&#8221; SeAddUsersPrivilege SeMachineAccountPrivilege SePrintOperatorPrivilege<br />
[/code]</p>
<ul>
<li>Create a new user with Zimbra domain and add it as &#8220;Domain Admins&#8221;  group member</li>
</ul>
<h4>ADDING WINDOWS NT/2000/XP MACHINE TO SAMBA DOMAIN</h4>
<ul>
<li>Login to your Windows workstation with your Administrator user/permission</li>
<li>Right click on My Computer</li>
<li>Choose Properties</li>
<li>Move to Computer Name tab</li>
<li>Click Change</li>
<li> Fill in your computer name</li>
<li>Fill in  vavai.co.id as  member of  domain (not workgroup. Replace vavai.co.id with your domain name)</li>
<li>Click OK</li>
<li>Windows will be asked about Administrator user name and password. Use Zimbra user and password  who is joined asÂ  Domain Admin group member</li>
</ul>
<p>Finish. You should be able to restart your computer and then login with Zimbra user name and password. You may also use LDAP client as user authentication on Linux client. Modify share permission, share folder, profile, etc to fit with your environment setting.</p>
<p>The post <a href="https://www.vavai.net/user-account-integration-between-samba-pdc-zimbra-mail-server-on-opensusesles-part-2-finish/">User Account Integration between Samba PDC &#038; Zimbra Mail Server on openSUSE/SLES Part 2 (Finish)</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-opensusesles-part-2-finish/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<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 loading="lazy" 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>How To : Samba PDC+OpenLDAP on openSUSE/SLES Part 2 (Finish)</title>
		<link>https://www.vavai.net/how-to-samba-pdcopenldap-on-opensusesles-part-2-finish/</link>
					<comments>https://www.vavai.net/how-to-samba-pdcopenldap-on-opensusesles-part-2-finish/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Rivai]]></dc:creator>
		<pubDate>Tue, 30 Mar 2010 08:52:46 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[PDC]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[SLES]]></category>
		<category><![CDATA[SUSE Family]]></category>
		<guid isPermaLink="false">http://v2.vavai.net/?p=1186</guid>

					<description><![CDATA[<p>Previous tutorial : Samba PDC+OpenLDAP on openSUSE/SLES Part 1, Setting LDAP Server SETTING LDAP CLIENT Click YAST &#124; Network Services &#124; LDAP Client Click Use LDAP pada User Authentication Fill in Address with server IP or by using 127.0.0.1 as default address MarkÂ  LDAP TLS/SSL option checked if you choose to use TLS/SSL on previous...</p>
<p>The post <a href="https://www.vavai.net/how-to-samba-pdcopenldap-on-opensusesles-part-2-finish/">How To : Samba PDC+OpenLDAP on openSUSE/SLES Part 2 (Finish)</a> appeared first on <a href="https://www.vavai.net">Vavai&#039;s Personal Notes</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Previous tutorial : <a href="http://v2.vavai.net/2010/03/30/how-to-samba-pdcopenldap-on-opensusesles-part-1/">Samba PDC+OpenLDAP on openSUSE/SLES Part 1, Setting LDAP Server</a><br />
<a class="highslide" onclick="return vz.expand(this)" href="http://54.254.121.108/wp-content/uploads/2010/03/samba-pdc1.jpg"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1189" title="samba-pdc" src="http://54.254.121.108/wp-content/uploads/2010/03/samba-pdc1.jpg" alt="" width="500" height="375" /></a><br />
<strong>SETTING LDAP CLIENT</strong></p>
<ol>
<li>Click YAST | Network Services | LDAP Client</li>
<li>Click <strong>Use LDAP</strong> pada <strong>User Authentication</strong></li>
<li>Fill in Address with server IP or by using 127.0.0.1 as default address</li>
<li>MarkÂ  <strong>LDAP TLS/SSL </strong>option checked if you choose to use TLS/SSL on previous tutorial, or vice versa, leave it unchecked if you choose to not use TLS on previous tutorialÂ  <strong><br />
</strong></li>
<li>Fill in LDAP Base DN (dc=namadomain, dc=tld, ex : dc=vavai,dc=co,dc=id). You may also get the LDAP Base DN by clickingÂ  <strong>Fetch DN </strong>button</li>
<li>Leave others option as is<br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap8.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1083" title="pdc-ldap8" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap8.png" alt="" width="449" height="465" /></a></li>
<li>Click <strong>Advanced Configuration</strong></li>
<li>Change <strong>Password Change Protocol</strong> to MD5</li>
<li>Leave option <strong>Group Member Attribute = Member</strong> unchanged<br />
<strong> `<br />
</strong><a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap9.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1084" title="pdc-ldap9" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap9.png" alt="" width="449" height="465" /></a><strong><br />
</strong></li>
<li>Click <strong>Administration Setting</strong></li>
<li>Fill in cn=Administrator on <strong>Administrator DN</strong>. Don&#8217;t forget to give a check on <strong>Append Base DN </strong>option</li>
<li>Mark a check on <strong>Create Default Configuration Objects </strong>option<br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap10.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1085" title="pdc-ldap10" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap10.png" alt="" width="449" height="465" /></a></li>
<li>Click OK</li>
<li>Click OK</li>
</ol>
<p><strong>SETTING SAMBA SERVER PRIMARY DOMAIN CONTROLLER (PDC)</strong></p>
<ol>
<li>Open YAST | Network Services | Samba Server</li>
<li>Fill in workgroup/domain name on first wizard. I&#8217;m usingdomain <a href="http://vavai.com">vavai.co.id</a> as my  workgroup name. Click <strong>Next</strong><br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap11.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1090" title="pdc-ldap11" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap11.png" alt="" width="440" height="362" /></a></li>
<li>On  <strong>Samba Server Type</strong> option, choose <strong>Primary Domain Controller (PDC)</strong>. Click  Next</li>
<li>On  start-up tab, choose <strong>Service Start During Boot</strong> option, so  Samba will automatically started on boot. Don&#8217;t forget to click <strong>Open Port in Firewall </strong>if you use firewall on intranet zone<br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap12.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1091" title="pdc-ldap12" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap12.png" alt="" width="440" height="362" /></a></li>
<li>Move to  <strong>LDAP Setting</strong> tab.</li>
<li>Click on <strong>Use LDAP Password Back-End</strong></li>
<li>Fill inÂ  Administrator DN and password setting (cn=Administrator,dc=vavai,dc=co,dc=id, adjust it with your domain name). Click  <strong>Test Connection</strong> to test LDAP server connection. If  test result is failed, recheck your configuration setting.<br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap13.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1092" title="pdc-ldap13" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap13.png" alt="" width="466" height="422" /></a></li>
<li>Click  OK and then fill in  Samba root /Administrator password<br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap14.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1093" title="pdc-ldap14" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap14.png" alt="" width="281" height="234" /></a></li>
</ol>
<p><strong>SETTING USER NAME &amp; PASSWORD</strong></p>
<ol>
<li>Click on <strong>YAST | Security and Users | User &amp; Group Management</strong></li>
<li>Click <strong>Expert Options | LDAP User &amp; Group Configuration</strong> option on bottom-right-corner menu</li>
<li>Fill in LDAP Admin password (see whether your bind DN configuration has setup correctly)</li>
<li>Move to  Configuration Module, and then chooseÂ  <strong>userconfiguration</strong><br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap15.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1094" title="pdc-ldap15" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap15.png" alt="" width="462" height="434" /></a></li>
<li>Change <strong>susemaxpasswordlength</strong> with your maximum password length</li>
<li>Change <strong>suseminpasswordlength</strong> with your minimum password length</li>
<li>Change  susepasswordhash from SSHA toÂ  SMD5</li>
<li>Click OK</li>
<li>Click on <strong>Set Filter </strong>option on top-right-corner menu and choose <strong>LDAP Users</strong>. This will display all LDAP user list, currently are empty because we have create any user yet</li>
<li>Click <strong>Add</strong></li>
<li>Fill in user profile and password<br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap16.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1095" title="pdc-ldap16" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap16.png" alt="" width="462" height="434" /></a></li>
<li>Click OK</li>
</ol>
<p>Restart all service (or reboot your computer) to test all the service. f you wish to join Windows workstation into Samba PDC+LDAP domain, use the Samba root user name and password as Administrator user. Share folder, Profile, netlogon and custom setting could be modified within YAST | Network Services | Samba Server. Samba LDAP user could be added or modify with the above procedure using YAST | Security &amp; Users | User &amp; Group Management.</p>
<p>The post <a href="https://www.vavai.net/how-to-samba-pdcopenldap-on-opensusesles-part-2-finish/">How To : Samba PDC+OpenLDAP on openSUSE/SLES Part 2 (Finish)</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/how-to-samba-pdcopenldap-on-opensusesles-part-2-finish/feed/</wfw:commentRss>
			<slash:comments>9</slash:comments>
		
		
			</item>
		<item>
		<title>How To : Samba PDC+OpenLDAP on openSUSE/SLES Part 1</title>
		<link>https://www.vavai.net/how-to-samba-pdcopenldap-on-opensusesles-part-1/</link>
					<comments>https://www.vavai.net/how-to-samba-pdcopenldap-on-opensusesles-part-1/#comments</comments>
		
		<dc:creator><![CDATA[Muhammad Rivai]]></dc:creator>
		<pubDate>Tue, 30 Mar 2010 03:40:49 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[PDC]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[SLES]]></category>
		<category><![CDATA[SUSE Family]]></category>
		<guid isPermaLink="false">http://v2.vavai.net/?p=1179</guid>

					<description><![CDATA[<p>I have written Samba PDC+OpenLDAP tutorial on openSUSE on previous article but the tutorial are based on manual configuration and need too many steps to make it usable. Now, I want to share how to make Samba PDC+OpenLDAP on openSUSE or SLES with automatic configuration using the YAST way 🙂 . The tutorial should be...</p>
<p>The post <a href="https://www.vavai.net/how-to-samba-pdcopenldap-on-opensusesles-part-1/">How To : Samba PDC+OpenLDAP on openSUSE/SLES 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 class="highslide" onclick="return vz.expand(this)" href="http://54.254.121.108/wp-content/uploads/2010/03/windows-linux2.jpg"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1184" title="windows-linux" src="http://54.254.121.108/wp-content/uploads/2010/03/windows-linux2.jpg" alt="" width="350" height="204" /></a><br />
I have written <a href="http://v2.vavai.net/2010/01/29/tutorial-samba-pdc-openldap-on-opensuse-11-1-%E2%80%93-part-6/">Samba PDC+OpenLDAP tutorial on openSUSE</a> on previous article but the tutorial are based on manual configuration and need too many steps to make it usable. Now, I want to share how to make Samba PDC+OpenLDAP on openSUSE or SLES with automatic configuration using the YAST way <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;" /> . The tutorial should be easy to understand and and need a few step to make it ready for testing.<br />
<strong>INSTALLING OPENSUSE</strong><br />
Install openSUSE 11.2 with or without GUI, choose which one suitable for your purpose. I&#8217;m using a GUI example because this tutorial intended for student <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;" /> . a Minimal server selection (text mode) maybe a better option for production server. Please refer to <a href="http://en.opensuse.org/INSTALL_Local">openSUSE 11.2 installation guide</a> if you need an assistance regarding openSUSE installation.<br />
Lucky for Indonesian <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /> , I&#8217;ve written a PDF tutorial with clear explanation regarding openSUSE installation for this purposeÂ  : <a href="http://vavai.com/2010/03/21/tutorial-instalasi-opensuse-11-2-versi-server-berbasis-gui-2/">Tutorial Instalasi openSUSE 11.2 Versi Server Berbasis GUI</a><br />
<strong>INSTALLING  LDAP SERVER</strong><br />
Follow these wizard to install and configure LDAP server :</p>
<ol>
<li>Open YAST | Software | Software Management<br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap1.png"><img loading="lazy" decoding="async" class="size-full wp-image-1069 alignnone" title="pdc-ldap1" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap1.png" alt="" width="455" height="269" /></a></li>
<li>Choose View | Pattern</li>
<li>Scroll to  Server Function</li>
<li>Give a checked mark on <strong>File Server, DHCP and DNS Server, Directory Server (LDAP)</strong><br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap2.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1070" title="pdc-ldap2" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap2.png" alt="" width="480" height="375" /></a></li>
<li>Click <strong>Accept</strong></li>
<li>openSUSE should be automatically detect  dependency package. Click <strong>Continue </strong>to install selected package<br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap3.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1071" title="pdc-ldap3" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap3.png" alt="" width="451" height="389" /></a></li>
<li>Close  YAST and then open again. I take this step to make sure YAST refresh new package installation and add to it&#8217;s menu</li>
<li>Choose YAST | Network Service | LDAP Server</li>
<li>Click <strong>Yes </strong>on <strong>Start LDAP Server. </strong>Give it a check mark on <strong>Open Port in Firewall</strong> if you use firewall. Leave others as is and then click <strong>Next</strong><br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap4.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1072" title="pdc-ldap4" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap4.png" alt="" width="468" height="388" /></a></li>
<li>Click <strong>Enable TLS </strong>and then create TLS Certificate by using <strong>Launch CA Management Module </strong>button and follow the wizard. Leave it unchecked if you wish to use LDAP without TLS connection.<br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap5.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1073" title="pdc-ldap5" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap5.png" alt="" width="468" height="388" /></a></li>
<li>On  basic database setting fill in the default database setting :<br />
[code language=&#8217;cpp&#8217;]<br />
Database Type : hdb<br />
Base DN : dc=domainname, dc=tld<br />
Example :<br />
If myÂ  domain = vavai.co.id, configuration will be like this : Base DN = dc=vavai, dc=co, dc=id<br />
If my domain = vavai.com, configuration will be like this : Base DN = dc=vavai, dc=com<br />
Administrator DN : cn= Administrator. Leave  Append Base DN option checked<br />
Don&#8217;t forget to fill your  LDAP Password<br />
Also, leave a check mark onÂ  &#8220;Use this database as the default for OpenLDAP&#8221;<br />
[/code]<br />
Click  Next if all setting has been completed.<br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap6.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1074" title="pdc-ldap6" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap6.png" alt="" width="468" height="388" /></a></li>
<li>Click Finish<br />
`<br />
<a class="highslide" onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap7.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1075" title="pdc-ldap7" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap7.png" alt="" width="468" height="388" /></a></li>
</ol>
<p><strong>ADD SAMBA SCHEMA</strong></p>
<ol>
<li>Open YAST | Network Services | LDAP Server</li>
<li>Click   <strong>Schema Files</strong> on left pane menu</li>
<li>Click Add and add <strong>Samba3.Schema</strong> so we will have following   LDAP Schema : schema, core, cosine, inetorgperson,  rfc2307bis,yast and samba3<br />
`<br />
<a onclick="return vz.expand(this)" href="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap-schema.png"><img loading="lazy" decoding="async" title="pdc-ldap-schema" src="http://vavai.com/wp-content/uploads/2010/03/pdc-ldap-schema.png" alt="" width="450" height="351" /></a></li>
<li>Click OK</li>
</ol>
<p>Next Tutorial are LDAP Client Configuration</p>
<p>The post <a href="https://www.vavai.net/how-to-samba-pdcopenldap-on-opensusesles-part-1/">How To : Samba PDC+OpenLDAP on openSUSE/SLES 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/how-to-samba-pdcopenldap-on-opensusesles-part-1/feed/</wfw:commentRss>
			<slash:comments>4</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 27/92 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 14/38 queries in 0.017 seconds using Disk

Served from: www.vavai.net @ 2026-11-06 07:56:33 by W3 Total Cache
-->