Skip to content

Commit

Permalink
simplify and solve some seen issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jirib committed Jan 6, 2025
1 parent 1fd9853 commit 38a5744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/supportconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3254,7 +3254,7 @@ ldap_info() {
LDAP_CONF="/etc/openldap/ldap.conf"
conf_files $OF $LDAP_CONF
if [[ -s $LDAP_CONF ]]; then
IPADDRS=$(grep -i '^uri[[:space:]]' $LDAP_CONF | sed -e 's!uri[[:space:]]*!!g;s!ldap://!!g;s!ldaps://!!g;s!ldapi://[[:alnum:][:punct:]]*!!g')
IPADDRS=$(grep -Pio '^uri\s+ldaps?://\K(.*)' $LDAP_CONF)
for I in $IPADDRS
do
IPADDR=$(echo $I | sed -e "s/:[[:digit:]]*//g")
Expand Down

0 comments on commit 38a5744

Please sign in to comment.