Software /
code /
prosody
Comparison
util/sasl_cyrus.lua @ 2881:4e6c6b1ddce7
util.cyrus_sasl: Pass the realm to Cyrus
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 15 Mar 2010 23:02:16 -0700 |
parent | 2720:289f68e704da |
child | 2895:ea5fe15a82f5 |
comparison
equal
deleted
inserted
replaced
2880:a3f6cc3417f2 | 2881:4e6c6b1ddce7 |
---|---|
50 | 50 |
51 init(service_name); | 51 init(service_name); |
52 | 52 |
53 sasl_i.realm = realm; | 53 sasl_i.realm = realm; |
54 sasl_i.service_name = service_name; | 54 sasl_i.service_name = service_name; |
55 sasl_i.cyrus = cyrussasl.server_new(service_name, nil, nil, nil, nil) | 55 sasl_i.cyrus = cyrussasl.server_new(service_name, nil, realm, nil, nil) |
56 if sasl_i.cyrus == 0 then | 56 if sasl_i.cyrus == 0 then |
57 log("error", "got NULL return value from server_new") | 57 log("error", "got NULL return value from server_new") |
58 return nil; | 58 return nil; |
59 end | 59 end |
60 cyrussasl.setssf(sasl_i.cyrus, 0, 0xffffffff) | 60 cyrussasl.setssf(sasl_i.cyrus, 0, 0xffffffff) |