<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Unable to create new user for domain -ldap error]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic139.xml" />
	<updated>2009-07-22T16:44:17Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic139-unable-to-create-new-user-for-domain-ldap-error.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Unable to create new user for domain -ldap error]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post724.html#p724" />
			<content type="html"><![CDATA[<p>I guess you can reference <a href="http://www.iredmail.org/forum/post723.html#p723">http://www.iredmail.org/forum/post723.html#p723</a> as it seems to be the same problem I am having. I am grabbing my logs now.</p>]]></content>
			<author>
				<name><![CDATA[morrisonmd]]></name>
				<uri>http://www.iredmail.org/forum/user136.html</uri>
			</author>
			<updated>2009-07-22T16:44:17Z</updated>
			<id>http://www.iredmail.org/forum/post724.html#p724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to create new user for domain -ldap error]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post722.html#p722" />
			<content type="html"><![CDATA[<p>In addition to the unable to login, I checked the postmaster mailbox and the welcome email for the user has bounced back.</p>]]></content>
			<author>
				<name><![CDATA[morrisonmd]]></name>
				<uri>http://www.iredmail.org/forum/user136.html</uri>
			</author>
			<updated>2009-07-22T16:30:35Z</updated>
			<id>http://www.iredmail.org/forum/post722.html#p722</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to create new user for domain -ldap error]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post721.html#p721" />
			<content type="html"><![CDATA[<p>I figgured I&#039;d just do a re install, got it working with MySQL this time, now my only problem is I created additional users, imported them into the database via phpmyadmin, but the users cannot login to webmail.</p><p>Any ideas?</p>]]></content>
			<author>
				<name><![CDATA[morrisonmd]]></name>
				<uri>http://www.iredmail.org/forum/user136.html</uri>
			</author>
			<updated>2009-07-22T16:23:21Z</updated>
			<id>http://www.iredmail.org/forum/post721.html#p721</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to create new user for domain -ldap error]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post713.html#p713" />
			<content type="html"><![CDATA[<p>Are you sure your iRedMail installed success?<br />If you use openldap as backend, it should be already installed and configured.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-07-22T02:26:33Z</updated>
			<id>http://www.iredmail.org/forum/post713.html#p713</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to create new user for domain -ldap error]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post712.html#p712" />
			<content type="html"><![CDATA[<p>ok was missing the openldap-servers library, installed that.</p><p>Wasn&#039;t this library suppose to be installed with iRedmail? Am I missing configuration now?</p><p>I went into the ldap</p><p>I now get this error.</p><p>ldap_bind: Invalid credentials (49)<br />Add new domain: ofinnigans.com.<br />ldap_bind: Invalid credentials (49)<br />ldap_bind: Invalid credentials (49)<br />ldap_bind: Invalid credentials (49)<br />ldap_bind: Invalid credentials (49)<br />Create Maildir: /home/vmail/ofinnigans.com/Jason.D/.<br />chown: cannot access `/home/vmail/ofinnigans.com/Jason.D/&#039;: No such file or directory<br />chmod: cannot access `/home/vmail/ofinnigans.com/Jason.D/&#039;: No such file or directory<br />Send a welcome mail to new user: Jason.D@ofinnigans.com</p><p>do I need to edit the /etc/openldap/slapd.conf</p><p>I made changes to the slapd.conf as below</p><p>database&nbsp; &nbsp; &nbsp; &nbsp; bdb<br />suffix&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;dc=ofinnigans,dc=com&quot;<br />rootdn&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;cn=Manager,dc=ofinnigans,dc=com&quot;<br /># Cleartext passwords, especially for the rootdn, should<br /># be avoided.&nbsp; See slappasswd(8) and slapd.conf(5) for details.<br /># Use of strong authentication encouraged.<br /># rootpw&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />rootpw&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {SSHA}bGfd7/iqgll+IDsD6KzE9tCGRLncIKaR</p><p>when i restart ldap i get this error(but I ignore it)</p><p>Stopping slapd:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&nbsp; OK&nbsp; ]<br />Checking configuration files for slapd:&nbsp; bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/ldap: (2)<br />Expect poor performance for suffix dc=ofinnigans,dc=com.<br />config file testing succeeded<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;[&nbsp; OK&nbsp; ]<br />Starting slapd:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [&nbsp; OK&nbsp; ]</p><p>I then edited the create script with the new rootpw</p><p>LDAP_SUFFIX=&quot;dc=ofinnigans,dc=com&quot;</p><p># Setting &#039;BASE_DN&#039;.<br />BASE_DN=&quot;o=domains,${LDAP_SUFFIX}&quot;</p><p># Setting &#039;DOMAIN_NAME&#039; and DOMAIN_DN&#039;:<br />#&nbsp; &nbsp; &nbsp;* DOMAIN will be used in mail address: ${USERNAME}@${DOMAIN}<br />#&nbsp; &nbsp; * DOMAIN_DN will be used in LDAP dn.<br />DOMAIN_NAME=&quot;$1&quot;<br />DOMAIN_DN=&quot;domainName=${DOMAIN_NAME}&quot;<br />OU_USER_DN=&quot;ou=Users&quot;<br />OU_GROUP_DN=&quot;ou=Groups&quot;</p><p># ---------- rootdn of LDAP Server ----------<br /># Setting rootdn of LDAP.<br />BINDDN=&quot;cn=Manager,${LDAP_SUFFIX}&quot;</p><p># Setting rootpw of LDAP.<br />BINDPW=&quot;bGfd7/iqgll+IDsD6KzE9tCGRLncIKaR&quot;</p><br /><p>Still cannot figure out what I am doing wrong. </p><p>Thanks again.</p>]]></content>
			<author>
				<name><![CDATA[morrisonmd]]></name>
				<uri>http://www.iredmail.org/forum/user136.html</uri>
			</author>
			<updated>2009-07-21T21:27:44Z</updated>
			<id>http://www.iredmail.org/forum/post712.html#p712</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to create new user for domain -ldap error]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post710.html#p710" />
			<content type="html"><![CDATA[<p>Wouldn&#039;t it have to all be on in order to send emails? For users to login?</p><p>The initial user I created works just fine.</p><p>I will take a look at these settings later tonight. Thanks for the help.</p>]]></content>
			<author>
				<name><![CDATA[morrisonmd]]></name>
				<uri>http://www.iredmail.org/forum/user136.html</uri>
			</author>
			<updated>2009-07-21T15:54:00Z</updated>
			<id>http://www.iredmail.org/forum/post710.html#p710</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to create new user for domain -ldap error]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post702.html#p702" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>ldap_bind: Can&#039;t contact LDAP server (-1)</p></blockquote></div><p>Is your ldap server running?</p><div class="quotebox"><blockquote><p>create_mail_user_OpenLDAP.sh: line 161: slappasswd: command not found</p></blockquote></div><p>Do you have openldap related packages installed? In RHEL/CentOS, they are openldap-servers, openldap-clients.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-07-21T07:56:04Z</updated>
			<id>http://www.iredmail.org/forum/post702.html#p702</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Unable to create new user for domain -ldap error]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post701.html#p701" />
			<content type="html"><![CDATA[<p>having problems creating ldap user, getting error can&#039;t contact LDAP server, attempted to locate and view logs but was unsuccessful. Can anyone provide any assistance?</p><p>I update the variables within the create_mail_user_OpenLDAP.sh script as required.</p><br /><p>[root@www tools]# sh create_mail_user_OpenLDAP.sh ofinnigans.com JasonD<br />ldap_bind: Can&#039;t contact LDAP server (-1)<br />Add new domain: ofinnigans.com.<br />ldap_bind: Can&#039;t contact LDAP server (-1)<br />ldap_bind: Can&#039;t contact LDAP server (-1)<br />ldap_bind: Can&#039;t contact LDAP server (-1)<br />create_mail_user_OpenLDAP.sh: line 161: slappasswd: command not found<br />ldap_bind: Can&#039;t contact LDAP server (-1)<br />Create Maildir: /home/vmail/ofinnigans.com/JasonD/.<br />chown: cannot access `/home/vmail/ofinnigans.com/JasonD/&#039;: No such file or directory<br />chmod: cannot access `/home/vmail/ofinnigans.com/JasonD/&#039;: No such file or directory<br />Send a welcome mail to new user: JasonD@ofinnigans.com</p>]]></content>
			<author>
				<name><![CDATA[morrisonmd]]></name>
				<uri>http://www.iredmail.org/forum/user136.html</uri>
			</author>
			<updated>2009-07-21T07:13:10Z</updated>
			<id>http://www.iredmail.org/forum/post701.html#p701</id>
		</entry>
</feed>
