Skip to content

Commit

Permalink
just use -H, if a port is available in the URI it should be used. If …
Browse files Browse the repository at this point in the history
…missing the default port 389 would likely be used.
  • Loading branch information
gwarf committed Jun 10, 2024
1 parent 411f76d commit a1c135d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/bdii-update
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,7 @@ def read_ldif(source):
# Open pipe to LDIF
if source[:7] == 'ldap://':
url = source.split('/')
# TODO: use -H
# FIXME: where is my port?
command = "ldapsearch -LLL -x -h %s -b %s 2>/dev/null" % (
command = "ldapsearch -LLL -x -H %s -b %s 2>/dev/null" % (
url[2], url[3])
pipe = os.popen(command)
elif source[:7] == 'file://':
Expand Down

0 comments on commit a1c135d

Please sign in to comment.