If you haven't already done so, please read the ldap-sync plugin guide here. You should already be able to sync ldap with files nicely. Now just create a group with ldap and obex plugins, paste the configuration for the ldap plugin from the ldap-file group.
In the provided configuration, just change $IDENTIFIER to "Sony Ericss" if you're using a Sony Ericsson phone and "PC Suite" if you're using a Nokia phone. Also fill in an integer in interface like 0 or 1 from your syncml-obex-client -u output in place of $INTERFACE). Please remember to sync as root until the udev permission issue with USB is fixed. Also have a look at configurations for specific phones here.
Here's the configuration for the obex plugin via USB:
<?xml version="1.0"?> <config> <!-- (Only for bluetooth) The bluetooth address if the bluetooth mode is selected --> <bluetooth_address></bluetooth_address> <!-- (Only for bluetooth) The bluetooth channel to use. `sdptool browse $MAC` to search for the correct channel --> <bluetooth_channel></bluetooth_channel> <!-- (Only for USB) The usb interface number of the SYNCML-SYNC target. use syncml-obex-client -u (you will need access to the USB raw device) to find it. --> <interface>$INTERFACE</interface> <!-- The string that the plugin will use to identify itself. Some devices need a special string here. --> <identifier>$IDENTIFIER</identifier> <!-- The syncml version to use: 0 for 1.0, 1 for 1.1 and 2 for 1.2 --> <version>1</version> <!-- if the plugin should use wbxml --> <wbxml>1</wbxml> <!-- The username to use. Leave empty to not require a username --> <username></username> <!-- the password for the username --> <password></password> <!-- sets the connection type to use. 5 means obex over usb, 2 means obex over bluetooth --> <type>5</type> <!-- If wbxml is enabled, defines wether the wbxml should use string tables --> <usestringtable>0</usestringtable> <!-- Never send ADD command, but send REPLACE (not needed normally) --> <onlyreplace>0</onlyreplace> <!-- Workaround around for mobile phones which only use local timestamps and _no_ UTC timestamps! --> <onlyLocaltime>0</onlyLocaltime> <!-- Sets the maximum allowed size in bytes of incoming messages (some device need this option set). Example: 10000 --> <recvLimit>0</recvLimit> <maxObjSize>0</maxObjSize> <!-- The name of the contacts db. Must be the same as the phones sends --> <contact_db>Contacts</contact_db> <!-- The name of the calendar db. Must be the same as the phones sends --> <calendar_db>Calendar</calendar_db> <!-- The name of the note db. Must be the same as the phones sends --> <note_db>Notes</note_db> </config>
If this configuration didn't work, simply change <contact_db>, <calendar_db> and <note_db>. Although the only foolproof way to find the correct strings is to sniff the SyncML settings on the phone, some suggestions are helpful:
- <contact_db>: Contacts, addressbook
- <calendar_db>: Calendar, agenda
- <note_db>: Notes, tasks
You should now be able to sync directly between your ldap server and phone now. Congratulations! Next steps: Get your Calendars and Notes to sync with the phone using the appropriate plugins.
