Update properties usage to be correct, use proper LDAP URL, move template function higher up to prevent prototyped subroutine definition issues.
Update properties usage to be correct, use proper LDAP URL, move template function higher up to prevent prototyped subroutine definition issues.