114 cyrussasl.setssf(sasl_i.cyrus, 0, 0xffffffff) |
114 cyrussasl.setssf(sasl_i.cyrus, 0, 0xffffffff) |
115 local s = setmetatable(sasl_i, method); |
115 local s = setmetatable(sasl_i, method); |
116 return s; |
116 return s; |
117 end |
117 end |
118 |
118 |
119 -- get a fresh clone with the same realm, profiles and forbidden mechanisms |
119 -- get a fresh clone with the same realm and service name |
120 function method:clean_clone() |
120 function method:clean_clone() |
121 return new(self.realm, self.service_name) |
121 return new(self.realm, self.service_name) |
122 end |
|
123 |
|
124 -- set the forbidden mechanisms |
|
125 function method:forbidden( restrict ) |
|
126 log("warn", "Called method:forbidden. NOT IMPLEMENTED.") |
|
127 return {} |
|
128 end |
122 end |
129 |
123 |
130 -- get a list of possible SASL mechanims to use |
124 -- get a list of possible SASL mechanims to use |
131 function method:mechanisms() |
125 function method:mechanisms() |
132 local mechanisms = self.mechs; |
126 local mechanisms = self.mechs; |