File: conf.rb

package info (click to toggle)
ruby-ldap 0.9.20-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 452 kB
  • sloc: ansic: 4,097; ruby: 1,525; makefile: 5
file content (12 lines) | stat: -rw-r--r-- 215 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
# -*- ruby -*-

require './ldap'

$HOST = 'localhost'
begin
  $PORT = ARGV[0].to_i || LDAP::LDAP_PORT
  $SSLPORT = ARGV[1].to_i || LDAP::LDAPS_PORT
rescue
  $PORT = LDAP::LDAP_PORT
  $SSLPORT = LDAP::LDAPS_PORT
end