<br><br><div class="gmail_quote">On Tue, Oct 12, 2010 at 2:38 PM, Sean Hart <span dir="ltr"><<a href="mailto:boardnutz@blacklight.net">boardnutz@blacklight.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div class="im">
<br>
<blockquote type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
</blockquote>
</div>
<br>
</div>
</div>
Maybe what i said is not clear, because my English is too pool
. Please forgive me if my expression is not precise.<br>
<br>
</blockquote>
</div>
</blockquote></div>
Doesn't matter what mail server you use, email is email.<br>
<blockquote type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><br>
The following is my environment :<br>
<br>
Workspace Environment : CentOS 5.5 64bits , Using Openldap
Server or 389 LDAP Server <br>
<br>
Mail Server : Windows Mail Server <br>
<br></div><div class="im">
For example :<br>
<br>
If I create the new account called Tim on LDAP Server , and
his password is 123456 , and his mail address is <a href="mailto:tim@test.com" target="_blank">tim@test.com</a><br>
Then will send an E-mail to him to notice his information ,
like his name and his passowrd.<br>
<br>
<br>
So Would someone can give some suggestions ? <br>
</div></blockquote>
</div>
</blockquote>
Before we go any further on this, I'd like to give a very serious
warning. It is NEVER a good idea to email a password. Email is, by
definition, insecure. <br></div></blockquote><div><br>Thanks for your advice . This is a test for the our company Intranet .<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<br>
I'm not familiar with 389 LDAP Server, and after a quick look, it
would make sense for me to read up on it. Anyhow, my advice is
going to come from the OpenLDAP side of things.<br>
<br>
I would:<br>
<ol>
<li>Set up OpenLDAP (make sure to get a real certificate and
require TLS/SSL)</li>
<li>If using Samba, set up the smbldap tools
(<a href="http://en.wikipedia.org/wiki/Smbldap-Tools" target="_blank">http://en.wikipedia.org/wiki/Smbldap-Tools</a>), can be useful even
if not using samba...</li>
<li>Start script (I'd use perl, since it's what I'm most familiar
with)</li>
<ol>
<li>Generate username (either collect from input or generate
somehow</li>
<li>Generate password (There's a sub for that on the page
referenced earlier)</li>
<li>Contemplate making sure that the username is unique, and
group membership, etc.<br>
</li>
<li>call smbldap-useradd to add the user (add stuff like -m for
the mail address, check the smbldap-useradd documentation for
handy switches</li>
<li>Compose body of email to user (this is probably mostly
static, but you will most likely want to substitute some
variables like username, etc</li>
<li>send the email (sub on the page earlier)</li>
<li>I repeat, please don't email passwords... have them call
you for them or something... email is the least secure thing
on the damn planet</li>
</ol>
<li>Sit back and have a beer, cuz yer done</li>
</ol>
I'm happy to help if you need more. <br></div></blockquote><div><br>I found the solution for sending mail to the new account . <br><br>It may use the perl script which calls the Net::SMTP module or Mail::Sender module or Mail::Sendmail module to finish that .<br>
<br>And I had a test just now and this is ok .<br><br>Thanks all ..<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div text="#000000" bgcolor="#ffffff">
<br>
Cheers,<br>
Sean<br>
<br>
</div>
<br>_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
<br></blockquote></div><br>