#!/bin/sh -e

# Source debconf library.
. /usr/share/debconf/confmodule

# admin login
db_input critical biomaj/login || true
db_go

# admin passwd
#db_input critical biomaj/password || true
#db_go

# Configure LDAP ?
db_input critical biomaj/ldap || true
db_go
db_get biomaj/ldap
if [ $RET = "true" ]; then
	# LDAP server
	db_input critical biomaj/ldap_server || true
	db_go

	# LDAP dn
	db_input critical biomaj/ldap_dn || true
	db_go

	# LDAP filter
	db_input critical biomaj/ldap_filter || true
	db_go
fi

