e_book_backend_ldap_class_init (EBookBackendLDAPClass *class)
{
	GObjectClass  *object_class;
	EBackendClass *backend_class;
	EBookBackendClass *book_backend_class;

	g_type_class_add_private (class, sizeof (EBookBackendLDAPPrivate));

#ifndef SUNLDAP
	/* get client side information (extensions present in the library) */
	get_ldap_library_info ();
#endif

	object_class = G_OBJECT_CLASS (class);
	object_class->finalize = book_backend_ldap_finalize;

	backend_class = E_BACKEND_CLASS (class);
	backend_class->authenticate_sync = book_backend_ldap_authenticate_sync;

	book_backend_class = E_BOOK_BACKEND_CLASS (class);
	book_backend_class->get_backend_property = book_backend_ldap_get_backend_property;
	book_backend_class->open = book_backend_ldap_open;
	book_backend_class->create_contacts = book_backend_ldap_create_contacts;
	book_backend_class->modify_contacts = book_backend_ldap_modify_contacts;
	book_backend_class->remove_contacts = book_backend_ldap_remove_contacts;
	book_backend_class->get_contact = book_backend_ldap_get_contact;
	book_backend_class->get_contact_list = book_backend_ldap_get_contact_list;
	book_backend_class->get_contact_list_uids = book_backend_ldap_get_contact_list_uids;
	book_backend_class->start_view = book_backend_ldap_start_view;
	book_backend_class->stop_view = book_backend_ldap_stop_view;
	book_backend_class->refresh_sync = book_backend_ldap_refresh_sync;

	/* Register our ESource extension. */
	E_TYPE_SOURCE_LDAP;
}
e_book_backend_ldap_class_init (EBookBackendLDAPClass *class)
{
	GObjectClass  *object_class;
	EBackendClass *backend_class;
	EBookBackendClass *book_backend_class;

	g_type_class_add_private (class, sizeof (EBookBackendLDAPPrivate));

#ifndef SUNLDAP
	 
	get_ldap_library_info ();
#endif

	object_class = G_OBJECT_CLASS (class);
	object_class->finalize = book_backend_ldap_finalize;

	backend_class = E_BACKEND_CLASS (class);
	backend_class->authenticate_sync = book_backend_ldap_authenticate_sync;

	book_backend_class = E_BOOK_BACKEND_CLASS (class);
	book_backend_class->get_backend_property = book_backend_ldap_get_backend_property;
	book_backend_class->open = book_backend_ldap_open;
	book_backend_class->create_contacts = book_backend_ldap_create_contacts;
	book_backend_class->modify_contacts = book_backend_ldap_modify_contacts;
	book_backend_class->remove_contacts = book_backend_ldap_remove_contacts;
	book_backend_class->get_contact = book_backend_ldap_get_contact;
	book_backend_class->get_contact_list = book_backend_ldap_get_contact_list;
	book_backend_class->get_contact_list_uids = book_backend_ldap_get_contact_list_uids;
	book_backend_class->start_view = book_backend_ldap_start_view;
	book_backend_class->stop_view = book_backend_ldap_stop_view;
	book_backend_class->refresh_sync = book_backend_ldap_refresh_sync;

	 
	E_TYPE_SOURCE_LDAP;
}