diff options
author | Chris Toshok <toshok@src.gnome.org> | 2000-05-07 04:13:36 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-05-07 04:13:36 +0800 |
commit | ddbe1acb6bcb16b6b5efc926fe2fafe3bacf601a (patch) | |
tree | bfbbcb201d1c254f9e2f5cd25234330f9523af7c /addressbook | |
parent | 2ef945c6e2ef11c4269a3729a9df7c824b0408e5 (diff) | |
download | gsoc2013-evolution-ddbe1acb6bcb16b6b5efc926fe2fafe3bacf601a.tar.gz 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')
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/backend/pas/pas-backend-ldap.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 80e4a534f1..5ec56966e6 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2000-05-06 Chris Toshok <toshok@helixcode.com> + + * backend/pas/pas-backend-ldap.c (pas_backend_ldap_load_uri): if a + port isn't specified in the uri default to 389. + 2000-05-06 Christopher James Lahey <clahey@helixcode.com> * gui/component/addressbook.c: Made this take a uri through its 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); |