It works.
It turns out I had two problems, both relating to the LDAP
search. First, I had mistyped the attribute name for the jabber
visibility attribute, the other thing I did wrong was I created that
attribute as a boolean attribute in the LDAP directory, it should have
been an integer set to 1, I guess the instructions in the config file
need a little clarification on that point. Now the roster is populating
itself, although all the entries appear saying "error:503 Service
Unavailable."
Thanks for all your help so far.
-Ian
Justin Pryzby wrote:
On Wed, Oct 28, 2009 at 10:28:57AM -0500, Ian McInerney wrote:
Ok, so far I have gotten it so that the server is connecting to the LDAP
server to pull the roster data, except the roster is still not being
pushed out to the individual users. I look at the debug output of the
server and see these lines:
SM : Wed Oct 28 10:26:31 2009 mod_roster_publish.c:220 publishing roster for
[email protected]
SM : Wed Oct 28 10:26:31 2009 storage.c:222 storage_get:
type=published-roster owner= filter=(null)
SM : Wed Oct 28 10:26:31 2009 mm.c:449 calling module roster
My -D log looks like:
Wed Oct 28 09:06:55 2009 mm.c:666 calling module roster-publish
Wed Oct 28 09:06:55 2009 mod_roster_publish.c:220 publishing roster for
[email protected]
Wed Oct 28 09:06:55 2009 storage.c:222 storage_get: type=published-roster
owner= filter=(null)
Wed Oct 28 09:06:55 2009 storage_ldapvcard.c:322 search filter:
(&(objectClass=User)(sAMAccountName=*))
Wed Oct 28 09:06:55 2009 object.c:85 creating new object
Wed Oct 28 09:06:55 2009 object.c:136 adding field jid (val bfcceac8 type 2) to
object
Wed Oct 28 09:06:55 2009 object.c:136 adding field group (val bfccf2c8 type 2)
to object
Wed Oct 28 09:06:55 2009 object.c:136 adding field name (val bfcce2c8 type 2)
to object
Wed Oct 28 09:06:55 2009 object.c:136 adding field to (val bfcce2c0 type 0) to
object
Wed Oct 28 09:06:55 2009 object.c:136 adding field from (val bfcce2c0 type 0)
to object
Wed Oct 28 09:06:55 2009 object.c:136 adding field ask (val bfcce2c0 type 1) to
object
[...]
Wed Oct 28 09:06:55 2009 object.c:283 got field jid (val 9818f50 type 2) to
object
Wed Oct 28 09:06:55 2009 object.c:283 got field jid (val 98197e0 type 2) to
object
Wed Oct 28 09:06:55 2009 object.c:283 got field jid (val 9828040 type 2) to
object
Wed Oct 28 09:06:55 2009 object.c:283 got field jid (val 98288c8 type 2) to
object
Wed Oct 28 09:06:55 2009 object.c:283 got field jid (val 9829140 type 2) to
object
[...]
Wed Oct 28 09:06:55 2009 mm.c:666 calling module privacy
What does your "search filter" look like? What does the ldap query look like?
You can use tcpdump -s600 -Xni eth0 'port ldap' or similar things for tshark -s
600 -Vni, or use ethereal. Or you can strace the sm process.
Justin
--
Ian McInerney, KC9MVU
Junior, Illinois Mathematics and Science Academy
[email protected]
"Live Long and Prosper", Leonard Nimoy
No electrons were harmed in the making of this message.
--
To unsubscribe send a mail to [email protected]