<html>
  <head>
    <meta content="text/html; charset=GB2312" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello Guys:<br>
         Luckily I solved the problem by edit the "base" field to only
      have "dc" in it.Wish this help to others have same problem!!!!! <br>
      <br>
      于 2013年05月29日 14:43, song 写道:<br>
    </div>
    <blockquote cite="mid:51A5A391.2040806@venusource.com" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=GB2312">
      Hello friends:<br>
      <br>
           This is my ldap_auth.conf:<br>
      <br>
      <meta http-equiv="CONTENT-TYPE" content="text/html;
        charset=GB2312">
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">        server 1: </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm">       <font
          face="DejaVu Serif, serif"><span lang="en-US">:user:
            'cn=mananger,dc=venusource,dc=com' </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">        :password: 'P@ssw0rd'
          </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US"> </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">        :auth_method: :simple
          </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US"> </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US"></span></font><font
          face="DejaVu Serif, serif"><span lang="en-US">        :host:
            192.168.0.122 </span></font> </p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">        :port: 389 </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US"> </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">        # base hierarchy
            where to search for users and groups </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">        #:base:
            'cn=manager,dc=venusource,dc=com' </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">        :base:
            'ou=people,dc=euca,dc=venusource,dc=com' </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US"> </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">        # group the users
            need to belong to. If not set any user will do </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">        #:group:
            'ou=groups,ou=accounts,dc=euca,dc=venusource,dc=com' </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US"> </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">        :user_field: 'cn'<br>
                   ******************************************<br>
                And this is my oned.conf:<br>
          </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">     </span></font><br>
        <font face="DejaVu Serif, serif"><span lang="en-US">
            <meta http-equiv="CONTENT-TYPE" content="text/html;
              charset=GB2312">
          </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">
            <title></title>
            <meta name="GENERATOR" content="LibreOffice 3.5 (Linux)">
            <style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm; direction: ltr; color: #000000; widows: 0; orphans: 0 }
                P.western { font-family: "DejaVu Serif", serif; font-size: 12pt; so-language: en-US }
                P.cjk { font-family: "DejaVu Sans"; font-size: 12pt; so-language: zh-CN }
                P.ctl { font-family: "Lohit Hindi"; font-size: 12pt; so-language: hi-IN }
        -->
        </style> </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><font face="DejaVu Serif, serif"><span
              lang="en-US">        AUTH_MAD = [ </span></font></font></p>
      <font face="DejaVu Serif, serif">
        <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
            Serif, serif"><span lang="en-US">                executable
              = "one_auth_mad", </span></font></p>
        <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
            Serif, serif"><span lang="en-US">                    authn =
              "ssh,x509,ldap,default,server_cipher,server_x509" </span></font></p>
        <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
            Serif, serif"><span lang="en-US">        ]    <br>
                  <br>
                 And I also issue the command of:   </span></font><br>
          <meta http-equiv="CONTENT-TYPE" content="text/html;
            charset=GB2312">
        </p>
      </font>
      <p class="cjk" style="margin-bottom: 0cm">
        <title></title>
        <meta name="GENERATOR" content="LibreOffice 3.5 (Linux)">
        <style type="text/css">
        <!--
                @page { margin: 2cm }
                PRE { direction: ltr; color: #000000; widows: 0; orphans: 0 }
                PRE.western { font-family: "DejaVu Sans Mono", monospace; so-language: en-US }
                PRE.cjk { font-family: "DejaVu Sans Mono", monospace; so-language: zh-CN }
                PRE.ctl { font-family: "DejaVu Sans Mono", monospace; so-language: hi-IN }
                P { margin-bottom: 0.21cm; direction: ltr; color: #000000; widows: 0; orphans: 0 }
                P.western { font-family: "DejaVu Serif", serif; font-size: 12pt; so-language: en-US }
                P.cjk { font-family: "DejaVu Sans"; font-size: 12pt; so-language: zh-CN }
                P.ctl { font-family: "Lohit Hindi"; font-size: 12pt; so-language: hi-IN }
        -->
        </style> </p>
      <pre class="cjk" style="margin-bottom: 0.5cm"><span lang="en-US">  cp -r var/remotes/auth/ldap/ var/remotes/auth/default</span></pre>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US"> </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><font face="DejaVu Serif, serif"><span
              lang="en-US">    And I edit the sunstone-server.conf:</span></font>
          <meta http-equiv="CONTENT-TYPE" content="text/html;
            charset=GB2312">
        </font></p>
      <font face="DejaVu Serif, serif"> </font>
      <p class="cjk" style="margin-bottom: 0cm">
        <title></title>
        <meta name="GENERATOR" content="LibreOffice 3.5 (Linux)">
        <style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm; direction: ltr; color: #000000; widows: 0; orphans: 0 }
                P.western { font-family: "DejaVu Serif", serif; font-size: 12pt; so-language: en-US }
                P.cjk { font-family: "DejaVu Sans"; font-size: 12pt; so-language: zh-CN }
                P.ctl { font-family: "Lohit Hindi"; font-size: 12pt; so-language: hi-IN }
        -->
        </style> </p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    :auth: opennebula<br>
          </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">       
            ***************************<br>
          </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm">
        <meta http-equiv="CONTENT-TYPE" content="text/html;
          charset=GB2312">
      </p>
      <p class="cjk" style="margin-bottom: 0cm">
        <title></title>
        <meta name="GENERATOR" content="LibreOffice 3.5 (Linux)">
        <style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm; direction: ltr; color: #000000; widows: 0; orphans: 0 }
                P.western { font-family: "DejaVu Serif", serif; font-size: 12pt; so-language: en-US }
                P.cjk { font-family: "DejaVu Sans"; font-size: 12pt; so-language: zh-CN }
                P.ctl { font-family: "Lohit Hindi"; font-size: 12pt; so-language: hi-IN }
        -->
        </style> </p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">Problem:1:When I want to
            login to sunstone,should I use the 'cn' field in ldap server
            or the whole string of DN in the user name field.</span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">2:I tried both way above ,But
            the oned.log show like below:</span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><br>
      </p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    Wed May 29 14:19:59 2013
            [AuM][I]: Command execution fail: /srv/cloud/ </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">   
            one/var/remotes/auth/default/authenticate jack  </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    Wed May 29 14:19:59 2013
            [AuM][D]: Message received: LOG I 2 Trying se </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    rver server 1 </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US"> </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    Wed May 29 14:19:59 2013
            [AuM][I]: Trying server server 1 </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    Wed May 29 14:19:59 2013
            [AuM][D]: Message received: LOG I 2 User jack </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">    not found </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US"> </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    Wed May 29 14:19:59 2013
            [AuM][I]: User jack not found </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    Wed May 29 14:19:59 2013
            [AuM][D]: Message received: LOG I 2 Could not </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">    authenticate user jack </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US"> </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    Wed May 29 14:19:59 2013
            [AuM][I]: Could not authenticate user jack </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    Wed May 29 14:19:59 2013
            [AuM][D]: Message received: LOG I 2 ExitCode: </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"> <font face="DejaVu
          Serif, serif"><span lang="en-US">    255 </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US"> </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    Wed May 29 14:19:59 2013
            [AuM][I]: ExitCode: 255 </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    Wed May 29 14:19:59 2013
            [AuM][D]: Message received: AUTHENTICATE FAIL </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    URE 2 - </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US"> </span></font></p>
      <p class="cjk" style="margin-bottom: 0cm"><font face="DejaVu
          Serif, serif"><span lang="en-US">    Wed May 29 14:19:59 2013
            [AuM][E]: Auth Error: </span></font></p>
      <title></title>
      <meta name="GENERATOR" content="LibreOffice 3.5 (Linux)">
      <style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm; direction: ltr; color: #000000; widows: 0; orphans: 0 }
                P.western { font-family: "DejaVu Serif", serif; font-size: 12pt; so-language: en-US }
                P.cjk { font-family: "DejaVu Sans"; font-size: 12pt; so-language: zh-CN }
                P.ctl { font-family: "Lohit Hindi"; font-size: 12pt; so-language: hi-IN }
        -->
        </style><br>
    </blockquote>
    <br>
  </body>
</html>