title: I want to check password for given objectGUID
body: <p>I want to write a function that searchs a ldap user with objectGuid in GoLang.<br>
  I am using ldap as "gopkg.in/ldap.v2" for connecting ldap host.</p>
  
  <pre><code>l,_ :=ldap.Dial("tcp", fmt.Sprintf("%s:%d", host, 389))
  defer l.Close()
  l.Bind(adminuser, adminpass);
  searchRequest := ldap.NewSearchRequest(
      "dc="+strings.Join(strings.Split(domain,"."),",dc="),
      ldap.ScopeWholeSubtree, ldap.NeverDerefAliases, 0, 
      0,false,
      "(&amp;(objectclass=person)(objectGUID=???SpecialFormat???))",
      []string{"dn"},
      nil,
  )
  sr, err := l.Search(searchRequest);
  if err!=nil {
      log.Printf("Error %s",err);
  }
  
         userdn := sr.Entries[0].DN; // I need UserDN for checking
  
         err=l.Bind(userdn, string(pass)) //checking password
  </code></pre>
  
  <p>My Code is like this.<br>
  I want to search a person that have a GUID like "445a1532-08aa-4a10-8a9c-d7f10f574afe".<br>
  But i guess, "The ldapsearch request" wants a different format for objectGUID.<br>
  How can i convert my GUIDString to needed format.</p>