+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: LDAP broken for AD with Mindtouch 10.1.0

  1. #1
    Join Date
    Feb 2008
    Posts
    65

    Default LDAP broken for AD with Mindtouch 10.1.0

    Hi I've just migrated from the Debian VM to RHEL 5.7.

    LDAP for AD seems broken - it worked under Debian well.
    LDAP for eDir still works.

    Is this a known issue? Or should I try the published troubleshooting?

    Using this SID
    http://services.mindtouch.com/deki/s...authentication

    Here is the LDAP log. Why is it trying to use Novell???

    Code:
    ********************
    Array
    (
        [title] => 500 Error
        [message] => 
        [response] => Request URI:
    http://localhost:8081/deki/users?dream.out.format=php&dream.in.host=10.64.250.200&dream.in.scheme=http&dream.in.origin=10.64.34.129&apikey=###&authusername=danielj2&authpassword=###
    
    Server response:
    Array
    (
        [exception] => Array
            (
                [coroutine] => Array
                    (
                        [frame] => Array
                            (
                                [@method] => MindTouch.Deki.Services.LdapAuthenticationService.GetUserInfo(DreamContext context, DreamMessage request, Result`1 response)
                            )
    
                    )
    
                [message] => Connection.freeWriteSemaphore(-2): semaphore not owned by any thread
                [source] => Novell.Directory.Ldap
                [stacktrace] => Array
                    (
                        [frame] => Array
                            (
                                [0] => Array
                                    (
                                        [@method] => Novell.Directory.Ldap.Connection.freeWriteSemaphore (Int32 msgId) [0x00000]
                                        [@file] => <filename unknown>
                                        [@line] => :0
                                    )
    
                                [1] => Array
                                    (
                                        [@method] => Novell.Directory.Ldap.Connection.connect (System.String host, Int32 port, Int32 semaphoreId) [0x00000]
                                        [@file] => <filename unknown>
                                        [@line] => :0
                                    )
    
                                [2] => Array
                                    (
                                        [@method] => Novell.Directory.Ldap.Connection.connect (System.String host, Int32 port) [0x00000]
                                        [@file] => <filename unknown>
                                        [@line] => :0
                                    )
    
                                [3] => Array
                                    (
                                        [@method] => Novell.Directory.Ldap.LdapConnection.Connect (System.String host, Int32 port) [0x00000]
                                        [@file] => <filename unknown>
                                        [@line] => :0
                                    )
    
                                [4] => Array
                                    (
                                        [@method] => MindTouch.Deki.Services.LdapClient.GetLdapConnectionFromBindingDN (System.String server, System.String bindingdn, System.String password) [0x00000]
                                        [@file] => <filename unknown>
                                        [@line] => :0
                                    )
    
                            )
    
                    )
    
                [type] => System.SystemException
            )
    
    )
    
    )

  2. #2
    Join Date
    Feb 2008
    Posts
    65

    Default

    I fixed this by using an IP addess for the hostname. Thanks

  3. #3
    Join Date
    Feb 2008
    Location
    London upon Thames
    Posts
    2,792

    Default

    Novell make the library for the LDAP service for Mono.

    "A semaphore not owned by any thread" means you can't connect to AD.
    If my post helped you, please click the icon below this post to my reputation. Thanks!

  4. #4

    Default

    Quote Originally Posted by jdaniel3760 View Post
    I fixed this by using an IP addess for the hostname. Thanks
    Hello, for me changing the hostname from fqdn:3268 to xxx.xxx.xxx.xxx:3268 did not help. With 10.1.0 the LDAP authenticator is broken. Production server running same software set but Mindtouch Core 10.0.7 is fine.

    Error thrown is like that:

    Code:
    Request URI:
    http://localhost:8081/deki/users/authenticate?dream.out.format=php&dream.in.host=HOSTNAME.DOMAIN.TLD&dream.in.scheme=https&dream.in.origin=xxx.xxx.xxx.xxx&authprovider=10
    
    Server response:
    Array
    (
        [exception] => Array
            (
                [coroutine] => Array
                    (
                        [frame] => Array
                            (
                                [@method] => MindTouch.Deki.Services.LdapAuthenticationService.UserLogin(DreamContext context, DreamMessage request, Result`1 response)
                            )
    
                    )
    
                [message] => Filter Error
                [source] => Novell.Directory.Ldap
                [stacktrace] => Array
                    (
                        [frame] => Array
                            (
                                [0] => Novell.Directory.Ldap.Rfc2251.RfcFilter.unescapeString(String string_Renamed)
                                [1] => Novell.Directory.Ldap.Rfc2251.RfcFilter.parseFilterComp()
                                [2] => Novell.Directory.Ldap.Rfc2251.RfcFilter.parseFilter()
                                [3] => Novell.Directory.Ldap.Rfc2251.RfcFilter.parse(String filterExpr)
                                [4] => Novell.Directory.Ldap.Rfc2251.RfcFilter..ctor(String filter)
                                [5] => Novell.Directory.Ldap.LdapSearchRequest..ctor(String base_Renamed, Int32 scope, String filter, String[] attrs, Int32 dereference, Int32 maxResults, Int32 serverTimeLimit, Boolean typesOnly, LdapControl[] cont)
                                [6] => Novell.Directory.Ldap.LdapConnection.Search(String base_Renamed, Int32 scope, String filter, String[] attrs, Boolean typesOnly, LdapSearchQueue queue, LdapSearchConstraints cons)
                                [7] => Novell.Directory.Ldap.LdapConnection.Search(String base_Renamed, Int32 scope, String filter, String[] attrs, Boolean typesOnly, LdapSearchConstraints cons)
                                [8] => MindTouch.Deki.Services.LdapClient.LookupLdapUser(Boolean retrieveGroupMembership, String username, LdapConnection& conn)
                                [9] => MindTouch.Deki.Services.LdapClient.GetUserInfo(Boolean retrieveGroupMembership, String username)
                                [10] => MindTouch.Deki.Services.LdapClient.GetUserInfo(Boolean retrieveGroupMembership, UInt32 retries, String username)
                                [11] => MindTouch.Deki.Services.LdapAuthenticationService.<UserLogin>d__6.MoveNext()
                                [12] => MindTouch.Tasking.Coroutine.Invoke(Func`1 invocation)
                            )
    
                    )
    
                [type] => Novell.Directory.Ldap.LdapLocalException
            )
    
    )

  5. #5
    Join Date
    Feb 2008
    Location
    London upon Thames
    Posts
    2,792

    Default

    Can you paste the config settings for your service (id 10) - redacting any hard-coded credentials?
    If my post helped you, please click the icon below this post to my reputation. Thanks!

  6. #6

    Default

    Quote Originally Posted by crb View Post
    Can you paste the config settings for your service (id 10) - redacting any hard-coded credentials?
    Hello crb,

    SELECT
    `service_config`.`config_id`,
    `service_config`.`service_id`,
    `service_config`.`config_name`,
    `service_config`.`config_value`
    FROM `wikidb`.`service_config`
    where service_id = 10;

    ---------------------------------------------------------------
    1033 10 groupquery (&(cn=$1)(objectCategory=group))
    1032 10 groupqueryall (objectClass=group)
    1031 10 hostname hostname.domain.tld:3268
    1030 10 groupmembersattribute memberOf
    1029 10 userquery userPrincipalName=$1
    1028 10 usernameattribute userPrincipalName
    1034 10 searchbase DC=domain,DC=tld
    1035 10 bindingdn $1
    ---------------------------------------------------------------

    Christian
    Last edited by christianheinz; 07-19-2011 at 12:59 PM.

  7. #7
    Join Date
    Feb 2008
    Location
    London upon Thames
    Posts
    2,792

    Default

    1033 10 groupquery (&(cn=$1)(objectCategory=group))
    Does it work if you change 'objectCategory' to say 'objectClass' ?
    If my post helped you, please click the icon below this post to my reputation. Thanks!

  8. #8

    Default

    Quote Originally Posted by crb View Post
    Does it work if you change 'objectCategory' to say 'objectClass' ?
    No, sorry - same error, any other ideas?

  9. #9
    Join Date
    Feb 2008
    Location
    London upon Thames
    Posts
    2,792

    Default

    Apparently just removing the groupquery can work. See this old thread.
    If my post helped you, please click the icon below this post to my reputation. Thanks!

  10. #10

    Default

    Quote Originally Posted by crb View Post
    Apparently just removing the groupquery can work. See this old thread.
    No - sorry, same error :-(

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts