Versions:
libldap2 2.4.28
LDAP 0.6.6
ghc 7.4.1
Code below:
import LDAP
main :: IO ()
main = do
let domain = "vancloa.cn"
bindDN = "CN=wangshida.admin,OU=admin_accounts,DC=vancloa,DC=cn"
bindPW = "********"
baseDN = Just "DC=vancloa,DC=cn"
ldapFilter = Just ("(&(sAMAccountName=" ++ alias ++
")(&(objectClass=user)(!(ou=Recycle_Bin))))")
ldap <- ldapInit domain ldapPort
ldapSimpleBind ldap bindDN bindPW
And ghc -threaded does not help.
On Fri, May 25, 2012 at 11:20 AM, Brandon Allbery <[email protected]> wrote:
> On Thu, May 24, 2012 at 11:05 PM, Magicloud Magiclouds
> <[email protected]> wrote:
>>
>> Hi there,
>> The code could not be simpler. Just ldapInit, ldapSimpleBind.
>> I just found that the code works with ghci, too. So to sum up,
>> ghci/runhaskell works, ghc not.
>
>
> A possibility that occurs to me: does it by any chance work with ghc
> -threaded? Perhaps the issue relates to the different behavior of the
> threaded runtime (which is used automatically by ghci/runghc).
>
> --
> brandon s allbery [email protected]
> wandering unix systems administrator (available) (412) 475-9364 vm/sms
>
--
竹密岂妨流水过
山高哪阻野云飞
And for G+, please use magiclouds#gmail.com.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe