aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChris Toshok <toshok@src.gnome.org>2000-05-07 04:13:36 +0800
committerChris Toshok <toshok@src.gnome.org>2000-05-07 04:13:36 +0800
commitddbe1acb6bcb16b6b5efc926fe2fafe3bacf601a (patch)
treebfbbcb201d1c254f9e2f5cd25234330f9523af7c /addressbook/backend
parent2ef945c6e2ef11c4269a3729a9df7c824b0408e5 (diff)
downloadgsoc2013-evolution-ddbe1acb6bcb16b6b5efc926fe2fafe3bacf601a.tar
gsoc2013-evolution-ddbe1acb6bcb16b6b5efc926fe2fafe3bacf601a.tar.gz
gsoc2013-evolution-ddbe1acb6bcb16b6b5efc926fe2fafe3bacf601a.tar.bz2
gsoc2013-evolution-ddbe1acb6bcb16b6b5efc926fe2fafe3bacf601a.tar.lz
gsoc2013-evolution-ddbe1acb6bcb16b6b5efc926fe2fafe3bacf601a.tar.xz
gsoc2013-evolution-ddbe1acb6bcb16b6b5efc926fe2fafe3bacf601a.tar.zst
gsoc2013-evolution-ddbe1acb6bcb16b6b5efc926fe2fafe3bacf601a.zip
if a port isn't specified in the uri default to 389.
* backend/pas/pas-backend-ldap.c (pas_backend_ldap_load_uri): if a port isn't specified in the uri default to 389. svn path=/trunk/; revision=2831
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-ldap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/addressbook/backend/pas/pas-backend-ldap.c b/addressbook/backend/pas/pas-backend-ldap.c
index e40f6cb922..53d32d0e83 100644
--- a/addressbook/backend/pas/pas-backend-ldap.c
+++ b/addressbook/backend/pas/pas-backend-ldap.c
@@ -889,6 +889,9 @@ pas_backend_ldap_load_uri (PASBackend *backend,
bl->priv->uri = g_strdup (uri);
bl->priv->ldap_host = g_strdup(lud->lud_host);
bl->priv->ldap_port = lud->lud_port;
+ /* if a port wasn't specified, default to 389 */
+ if (bl->priv->ldap_port == 0)
+ bl->priv->ldap_port = 389;
bl->priv->ldap_rootdn = g_strdup(lud->lud_dn);
ldap_free_urldesc(lud);