<?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>It&#039;s not a bug ... It&#039;s a convenience issue &#187; fds</title>
	<atom:link href="http://www.mymegabyte.com/tag/fds/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mymegabyte.com</link>
	<description>Random tech things that I come across.</description>
	<lastBuildDate>Sat, 23 Jul 2011 13:50:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Samba doesn&#8217;t like special characters in ldap password</title>
		<link>http://www.mymegabyte.com/2008/06/samba-doesnt-like-special-characters-in-ldap-password/</link>
		<comments>http://www.mymegabyte.com/2008/06/samba-doesnt-like-special-characters-in-ldap-password/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 02:40:12 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[fds]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://www.mymegabyte.com/?p=3</guid>
		<description><![CDATA[Ok, So I&#8217;m trying to set Linux Samba up as a filserver for Windows clients with Fedora Directory Server (FDS) ldap as the backend for user information. In the process you have to add a directive like this to your smb.conf. security = user passdb backend = ldapsam:ldap://ldapserver.com ldap admin dn = cn=Directory Manager ldap [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, So I&#8217;m trying to set Linux Samba up as a filserver for Windows clients with Fedora Directory Server (FDS) ldap as the backend for user information. In the process you have to add a directive like this to your smb.conf.</p>
<pre>security = user
passdb backend = ldapsam:ldap://ldapserver.com
ldap admin dn = cn=Directory Manager
ldap suffix = dc=ldapserver,dc=com
ldap user suffix = ou=People
ldap machine suffix = ou=Computers
ldap group suffix = ou=Groups
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
ldap password sync = yes</pre>
<p>That tells samba to look in ldap for sambaSamAccounts. Only problem is you have to give samba the password for the administrator ldap account of &#8220;cn=Directory Manager&#8221;. You do that by running the command</p>
<pre>smbpasswd -w my_password_in_clear_text</pre>
<p>Only problem is some of us make complex passwords with special characters(!@#$%^&amp;*()) in them. Since this accepts passwords on command line some of those special characters are parsed by the shell. So when I ran</p>
<pre>net getlocalsid</pre>
<p>I got errors like:</p>
<pre>failed to bind to server ldap://ldapserver.com with dn="cn=Directory Manager" Error: Invalid credentials</pre>
<p>Like I said, I bet you could fix this by escaping your special characters (ie replace $ with \$). But I needed to change my ldap directory manager password to not be the root linux password so I just removed all special characters and created a long plain-text password. I re-ran smbpasswd -w, and net getlocalsid and poof, it works!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mymegabyte.com/2008/06/samba-doesnt-like-special-characters-in-ldap-password/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

