help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Re: Calling LDAP C API from Smalltalk


From: Stephen
Subject: Re: [Help-smalltalk] Re: Calling LDAP C API from Smalltalk
Date: Sat, 27 Sep 2008 23:34:23 +1200
User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914)

thats better, the method compiles, but the script still doesn't like that method...

stephenw$ ./ldapapi.st
started
... about to run the search.
... search completed
Found results with base DN: ou=Users,dc=shineglobal,dc=com
Found first attribute
Object: nil error: did not understand #isNull
MessageNotUnderstood(Exception)>>signal (AnsiExcept.st:216)
UndefinedObject(Object)>>doesNotUnderstand: #isNull (AnsiExcept.st:1484)
UndefinedObject>>executeStatements (ldapapi.st:169)


And just to compare if I comment out the "vals isNull ifTrue: [" line

started
... about to run the search.
... search completed
Found results with base DN: ou=Users,dc=example,dc=com
Found first attribute
'givenName'
'givenName'->'Test --'
'sn'
'sn'->'email'
'loginShell'
'loginShell'->'/bin/bash'
'uidNumber'
'uidNumber'->'2008'
'gidNumber'
'gidNumber'->'2008'
'displayName'
'displayName'->'Testing email'
'mail'
Object: nil error: did not understand #value
MessageNotUnderstood(Exception)>>signal (AnsiExcept.st:216)
UndefinedObject(Object)>>doesNotUnderstand: #value (AnsiExcept.st:1484)
UndefinedObject>>executeStatements (ldapapi.st:172)


Here is the isNull method...

  CObject extend [
        "Will be in 3.1"
        isNull [ ^self address = 0 ]
  ]

Thanks
Stephen





reply via email to

[Prev in Thread] Current Thread [Next in Thread]