<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <br>
    <blockquote
      cite="mid:AANLkTim2Q7EsE6X9S6RuOwrfPpFnen_TDk4R-mqfN+7e@mail.gmail.com"
      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 class="h5">
              <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>
    Doesn't matter what mail server you use, email is email.<br>
    <blockquote
      cite="mid:AANLkTim2Q7EsE6X9S6RuOwrfPpFnen_TDk4R-mqfN+7e@mail.gmail.com"
      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;"><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>
          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
            moz-do-not-send="true" 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>
        </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>
    <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 class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/Smbldap-Tools">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>
    <br>
    Cheers,<br>
    Sean<br>
    <br>
  </body>
</html>