Page 1 of 1

openldap omldapsync problem

Posted: Thu Mar 15, 2007 9:06 am
by guppy.rules
Hi,

I'm new with scalix and openldap. How can I get this to work? When I do:
# omldapsync -I -u ldapserver -n

I get the following error:

2007-03-15 14:05:01 STATUS: test LDAP dir sync import ldapserver started ###############
--------> Sending SOAP Request to Ubermanager@http://scalixserver.test.lan/caa/ for method:GetMailNodesList
SOAP part:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<scalix-caa:CAARequestMessage xmlns:scalix-caa="http://www.scalix.com/caa">
<ServiceType>scalix.res</ServiceType>
<FunctionName>GetMailNodesList</FunctionName>
<Credentials id="12345">
<Identity name="sxadmin" passwd="xxxxxxxx"/>
</Credentials>
<ScalixServers/>
<GetMailNodesListParameters/>
</scalix-caa:CAARequestMessage>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Mar 15, 2007 2:05:01 PM com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection post
SEVERE: SAAJ0008: Bad Response; null
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (-1null
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:285)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:151)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
at com.scalix.ldapsync.LdapAgent.sendAndReceive(Unknown Source)
at com.scalix.ldapsync.LdapAgent.main(Unknown Source)
java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (-1null
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
at com.scalix.ldapsync.LdapAgent.sendAndReceive(Unknown Source)
at com.scalix.ldapsync.LdapAgent.main(Unknown Source)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (-1null
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:285)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:151)
... 4 more
com.sun.xml.messaging.saaj.SOAPExceptionImpl: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (-1null
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:128)
at com.scalix.ldapsync.LdapAgent.sendAndReceive(Unknown Source)
at com.scalix.ldapsync.LdapAgent.main(Unknown Source)
Caused by: java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (-1null
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
... 2 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (-1null
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:285)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:151)
... 4 more

CAUSE:

java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (-1null
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
at com.scalix.ldapsync.LdapAgent.sendAndReceive(Unknown Source)
at com.scalix.ldapsync.LdapAgent.main(Unknown Source)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (-1null
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:285)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:151)
... 4 more

CAUSE:

java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (-1null
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:121)
at com.scalix.ldapsync.LdapAgent.sendAndReceive(Unknown Source)
at com.scalix.ldapsync.LdapAgent.main(Unknown Source)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (-1null
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:285)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:151)
... 4 more
2007-03-15 14:05:01 ERROR: failed to run omldapagent
2007-03-15 14:05:01 STATUS: test LDAP dir sync import failed, error=2 ##########

What is going wrong?

Thanks.

Posted: Wed Mar 21, 2007 6:43 am
by dannyt
Hi,

This looks like configuration problem. Note that omldapsync needs SAC (Management Services) working first so you must make sure SAC has been installed and configured properly.

If the proplem persists after SAC is working, go through the omldapsync config file carefully, paying attention to the comments. Do use the test option to ensure that it basically works before doing the real sync.

Danny

Posted: Wed Mar 28, 2007 4:19 pm
by akblackwel
Hi,

What java path did you set in omldapsync, and does it exists?

Posted: Fri Mar 30, 2007 2:10 am
by erikw_nl
Hello Scalix experts,

This post is on behalf of collegue who is having holiday:

There is some success. It now manages to get users from openldap:
omldapsync -u kingfish -d 3 (kingfish is openldap server, system etna is the server in which i would like to import the ldap users into)

It finds users and tries to insert them into the scalix server, but then it encounters some errors, which are not self explanatory to me. Can somebody pls help, thx in advance.

With kind regards,

Erik


The last four lines of the output:
2007-03-30 08:12:03 STATUS: LDAP dir sync import failed, error=2 ###########
2007-03-30 08:12:03 STATUS: LDAP dir sync export kingfish started ###############
2007-03-30 08:12:03 INFO: agreement type 13 only supports import operation
2007-03-30 08:12:03 STATUS: LDAP dir sync export kingfish completed #############

Other messages, this goes on for several 100's lines of output:

<message>Failed to locate Mailnode/HostFQDN for id = ceef08d
0-3ee5-102b-9eaa-6b3fd8f3b146</message>
<errorcode>UM-1016</errorcode>
</scalix-caa:fault-details>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
0 entries passed
1 entries failed
0 entries warned
2007-03-29 16:52:42 ERROR: failed to run omldapagent
2007-03-29 16:52:42 DEBUG: >>>>>>>>cat rawdata.entry >>limita.fail
2007-03-29 16:52:42 DEBUG: >>>>>>>>Method=12
2007-03-29 16:52:42 DEBUG: >>>>>>>>data.entry
2007-03-29 16:52:42 vvvvvvvv