mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
address some PR comments
This commit is contained in:
parent
bb4de05bd8
commit
cc36754ba8
7
Cargo.lock
generated
7
Cargo.lock
generated
@ -2201,7 +2201,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "ldap3_proto"
|
name = "ldap3_proto"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
source = "git+https://github.com/kanidm/ldap3#b3c7653471916e803dc8f24d2163fd2710dfb161"
|
source = "git+https://github.com/kanidm/ldap3/?rev=b3c7653471916e803dc8f24d2163fd2710dfb161#b3c7653471916e803dc8f24d2163fd2710dfb161"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytes",
|
"bytes",
|
||||||
"lber",
|
"lber",
|
||||||
@ -5035,8 +5035,3 @@ dependencies = [
|
|||||||
"cc",
|
"cc",
|
||||||
"libc",
|
"libc",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[patch.unused]]
|
|
||||||
name = "ldap3_proto"
|
|
||||||
version = "0.2.3"
|
|
||||||
source = "git+https://github.com/nitnelave/ldap3_server/?rev=7b50b2b82c383f5f70e02e11072bb916629ed2bc#7b50b2b82c383f5f70e02e11072bb916629ed2bc"
|
|
||||||
|
@ -10,8 +10,8 @@ default-members = ["server"]
|
|||||||
|
|
||||||
# Remove once https://github.com/kanidm/ldap3_proto/pull/8 is merged.
|
# Remove once https://github.com/kanidm/ldap3_proto/pull/8 is merged.
|
||||||
[patch.crates-io.ldap3_proto]
|
[patch.crates-io.ldap3_proto]
|
||||||
git = 'https://github.com/nitnelave/ldap3_server/'
|
git = 'https://github.com/kanidm/ldap3/'
|
||||||
rev = '7b50b2b82c383f5f70e02e11072bb916629ed2bc'
|
rev = 'b3c7653471916e803dc8f24d2163fd2710dfb161'
|
||||||
|
|
||||||
[patch.crates-io.opaque-ke]
|
[patch.crates-io.opaque-ke]
|
||||||
git = 'https://github.com/nitnelave/opaque-ke/'
|
git = 'https://github.com/nitnelave/opaque-ke/'
|
||||||
|
@ -28,7 +28,7 @@ itertools = "0.10.1"
|
|||||||
juniper = "0.15.10"
|
juniper = "0.15.10"
|
||||||
juniper_actix = "0.4.0"
|
juniper_actix = "0.4.0"
|
||||||
jwt = "0.13"
|
jwt = "0.13"
|
||||||
ldap3_proto = { git = "https://github.com/kanidm/ldap3", package = "ldap3_proto" }
|
ldap3_proto = "*"
|
||||||
log = "*"
|
log = "*"
|
||||||
orion = "0.16"
|
orion = "0.16"
|
||||||
rustls = "0.20"
|
rustls = "0.20"
|
||||||
|
@ -558,6 +558,13 @@ impl<Backend: BackendHandler + LoginHandler + OpaqueHandler> LdapHandler<Backend
|
|||||||
code: LdapResultCode::OperationsError,
|
code: LdapResultCode::OperationsError,
|
||||||
message: "Search request returned nothing".to_string(),
|
message: "Search request returned nothing".to_string(),
|
||||||
})?;
|
})?;
|
||||||
|
if res.len() > 1 {
|
||||||
|
return Err(LdapError {
|
||||||
|
code: LdapResultCode::OperationsError,
|
||||||
|
message: "Search request returned nothing".to_string(),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
match entry {
|
match entry {
|
||||||
LdapOp::SearchResultEntry(entry) => {
|
LdapOp::SearchResultEntry(entry) => {
|
||||||
let mut available = false;
|
let mut available = false;
|
||||||
@ -2212,10 +2219,6 @@ mod tests {
|
|||||||
user: User {
|
user: User {
|
||||||
user_id: UserId::new("bob"),
|
user_id: UserId::new("bob"),
|
||||||
email: "bob@bobmail.bob".to_string(),
|
email: "bob@bobmail.bob".to_string(),
|
||||||
display_name: Some("bôb böbberson".to_string()),
|
|
||||||
first_name: Some("bôb".to_string()),
|
|
||||||
last_name: Some("böbberson".to_string()),
|
|
||||||
uuid: uuid!("698e1d5f-7a40-3151-8745-b9b8a37839da"),
|
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
groups: None,
|
groups: None,
|
||||||
|
Loading…
Reference in New Issue
Block a user