# -*- coding: utf-8 -*-
import win32com.client
query = "<LDAP://DC=DOM,DC=TAN,DC=CORP>;(&(sAMAccountName={0})(objectClass=user));*;subTree".format(curUser)
rs = LDAPConn.Execute(query)[0]
obj = win32com.client.GetObject(rs.Fields(0).Value)
userFIO = obj.Name.split("=")[1]