<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — python create_mail_user_OpenLDAP.py]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic243.xml" />
	<updated>2009-09-18T10:05:07Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic243-python-createmailuseropenldappy.html</id>
		<entry>
			<title type="html"><![CDATA[Re: python create_mail_user_OpenLDAP.py]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1176.html#p1176" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kerie wrote:</cite><blockquote><p>I think the problem occured when you left empty line at the end of csv file. When you remove it it should generate without any errors.</p></blockquote></div><p>This one solved it for me</p>]]></content>
			<author>
				<name><![CDATA[afaquino]]></name>
				<uri>http://www.iredmail.org/forum/user230.html</uri>
			</author>
			<updated>2009-09-18T10:05:07Z</updated>
			<id>http://www.iredmail.org/forum/post1176.html#p1176</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: python create_mail_user_OpenLDAP.py]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1143.html#p1143" />
			<content type="html"><![CDATA[<p>I think the problem occured when you left empty line at the end of csv file. When you remove it it should generate without any errors.</p>]]></content>
			<author>
				<name><![CDATA[kerie]]></name>
				<uri>http://www.iredmail.org/forum/user258.html</uri>
			</author>
			<updated>2009-09-13T15:57:42Z</updated>
			<id>http://www.iredmail.org/forum/post1143.html#p1143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: python create_mail_user_OpenLDAP.py]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1139.html#p1139" />
			<content type="html"><![CDATA[<p>Thanks saidmsl...</p><p>I am not in the office right now ... I&#039;ll try to follow your<br />advise later and report on the outcome.</p><p>iRedMail Rocks!</p>]]></content>
			<author>
				<name><![CDATA[afaquino]]></name>
				<uri>http://www.iredmail.org/forum/user230.html</uri>
			</author>
			<updated>2009-09-13T02:00:50Z</updated>
			<id>http://www.iredmail.org/forum/post1139.html#p1139</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: python create_mail_user_OpenLDAP.py]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1134.html#p1134" />
			<content type="html"><![CDATA[<p>Hi,</p><p>i got the same error when you have blank lines or headers (when generating the csv file from excel or openoffice calc)</p><p>just remove it</p><p>Idea :<br />to know the on which line the error is :<br />change the code as :<br />for lineno, entry in enumerate(userList):<br />&nbsp; &nbsp; entry = entry.rstrip()<br />&nbsp; &nbsp; print &quot;&lt;INFO&gt; Processing Line %d&quot; % lineno</p><p>i should find a way to print only when there is an error</p>]]></content>
			<author>
				<name><![CDATA[saidmsl]]></name>
				<uri>http://www.iredmail.org/forum/user233.html</uri>
			</author>
			<updated>2009-09-12T16:09:33Z</updated>
			<id>http://www.iredmail.org/forum/post1134.html#p1134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: python create_mail_user_OpenLDAP.py]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1121.html#p1121" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>afaquino wrote:</cite><blockquote><p>Follow up question...<br />Deleting users in iRedAdmin would not delete Maildir? Can it<br />be done so that Deleted users MailDirs are also deleted from disk?</p></blockquote></div><p>No plan to delete mailbox in file system yet due to possible security issue.</p><p>But patches/contributions are always welcome <img src="http://www.iredmail.org/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2009-09-11T15:39:50Z</updated>
			<id>http://www.iredmail.org/forum/post1121.html#p1121</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: python create_mail_user_OpenLDAP.py]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1120.html#p1120" />
			<content type="html"><![CDATA[<p>Was surprised to find out that ldif file was actually generated despite the<br />the errors. I Imported the ldif file via phpLDAPadmin and users were generated.</p><p>This is semi-solved for me.</p><p>Follow up question...<br />Deleting users in iRedAdmin would not delete Maildir? Can it<br />be done so that Deleted users MailDirs are also deleted from disk?</p><p>Thanks.</p>]]></content>
			<author>
				<name><![CDATA[afaquino]]></name>
				<uri>http://www.iredmail.org/forum/user230.html</uri>
			</author>
			<updated>2009-09-11T12:57:53Z</updated>
			<id>http://www.iredmail.org/forum/post1120.html#p1120</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[python create_mail_user_OpenLDAP.py]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post1118.html#p1118" />
			<content type="html"><![CDATA[<p>Hi!<br />Great piece of software...</p><p>Having trouble bulk creating users ... when I run python create_mail_user_OpenLDAP.py it.csv<br />the script trows the following error:</p><p>File &quot;create_mail_user_OpenLDAP.py&quot;, line 210, in ?<br />&nbsp; &nbsp; domain, username, passwd, cn, quota, groups = re.split(&#039;\s?,\s?&#039;, entry)<br />ValueError: need more than 1 value to unpack</p><p>Here is an excerpt from my csv file</p><p>upang.phinma.edu.ph,mmagoyagoy,mmagoyagoy,Melanie M. Agoyagoy,1024,it<br />upang.phinma.edu.ph,rgcaspillan,rgcaspillan,Richard G. Caspillan,1024,it<br />upang.phinma.edu.ph,dicendana,dicendana,Desiree I. Cendana,1024,it<br />upang.phinma.edu.ph,idmalapit,idmalapit,Iran DV. Malapit,1024,it</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[afaquino]]></name>
				<uri>http://www.iredmail.org/forum/user230.html</uri>
			</author>
			<updated>2009-09-11T10:15:07Z</updated>
			<id>http://www.iredmail.org/forum/post1118.html#p1118</id>
		</entry>
</feed>
