Changeset View
Changeset View
Standalone View
Standalone View
saslauthd.py
Show All 12 Lines | |||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
# GNU General Public License for more details. | # GNU General Public License for more details. | ||||
# You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | ||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
# | # | ||||
from __future__ import print_function | |||||
import logging | import logging | ||||
import os | import os | ||||
import sys | import sys | ||||
# For development purposes | # For development purposes | ||||
sys.path.extend(['.', '..']) | sys.path.extend(['.', '..']) | ||||
from pykolab.translate import _ | from pykolab.translate import _ | ||||
try: | try: | ||||
import pykolab.logger | import pykolab.logger | ||||
except ImportError as e: | except ImportError as e: | ||||
print >> sys.stderr, _("Cannot load pykolab/logger.py:") | print(_("Cannot load pykolab/logger.py:"), file=sys.stderr) | ||||
print >> sys.stderr, "%s" % e | print("%s" % e, file=sys.stderr) | ||||
sys.exit(1) | sys.exit(1) | ||||
import saslauthd | import saslauthd | ||||
if __name__ == "__main__": | if __name__ == "__main__": | ||||
saslauthd = saslauthd.SASLAuthDaemon() | saslauthd = saslauthd.SASLAuthDaemon() | ||||
saslauthd.run() | saslauthd.run() |