Skip to content

Commit

Permalink
Rename ldap URI into URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Fariello committed Sep 15, 2016
1 parent f812edd commit bf11cf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vdirsyncer/storage/ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class LDAPStorage(Storage):
'''
:param uri: LDAP URI
:param url: LDAP URL
:param search_base: search base
:param bind: bind dn
:param password: bind password
Expand All @@ -22,7 +22,7 @@ class LDAPStorage(Storage):
fileext = '.vcf'
item_mimetype = 'text/vcard'

def __init__(self, uri='ldap://localhost', search_base=None, bind=None, password=None,
def __init__(self, url='ldap://localhost', search_base=None, bind=None, password=None,
filter='(&(objectCategory=person)(objectClass=user)'
'(sn=*)(givenName=*))',
conn=None,
Expand All @@ -32,7 +32,7 @@ def __init__(self, uri='ldap://localhost', search_base=None, bind=None, password
self.filter = filter
self.conn = conn
if self.conn is None:
server = ldap3.Server(uri, get_info=ldap3.DSA)
server = ldap3.Server(url, get_info=ldap3.DSA)
if bind:
self.conn = ldap3.Connection(server, user=bind,
password=password)
Expand Down

0 comments on commit bf11cf6

Please sign in to comment.