Skip to content

Commit c9db87a

Browse files
committed
linter fixes
1 parent f21577c commit c9db87a

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Frends.LDAP.DeleteUser/Frends.LDAP.DeleteUser/DeleteUser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static Result DeleteUser([PropertyTab] Input input, [PropertyTab] Connect
2727
{
2828
var defaultPort = connection.SecureSocketLayer ? 636 : 389;
2929
var entry = $"CN={input.CommonName},{input.Path}";
30-
30+
3131
conn.SecureSocketLayer = connection.SecureSocketLayer;
3232
conn.Connect(connection.Host, connection.Port == 0 ? defaultPort : connection.Port);
3333
if (connection.TLS) conn.StartTls();

Frends.LDAP.RemoveUserFromGroups/Frends.LDAP.RemoveUserFromGroups/Definitions/Input.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ public class Input
2424
/// </summary>
2525
/// <example>HandleLDAPError.Throw</example>
2626
[DefaultValue(HandleLDAPError.Throw)]
27-
public HandleLDAPError HandleLDAPError { get; set; }
27+
public HandleLDAPError HandleLDAPError { get; set; }
2828
}

Frends.LDAP.RemoveUserFromGroups/Frends.LDAP.RemoveUserFromGroups/RemoveUserFromGroups.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ public static Result RemoveUserFromGroups([PropertyTab] Input input, [PropertyTa
3232
conn.Connect(connection.Host, connection.Port == 0 ? defaultPort : connection.Port);
3333
if (connection.TLS) conn.StartTls();
3434
conn.Bind(connection.User, connection.Password);
35-
36-
LdapModification[] mods = new LdapModification[1];
37-
var member = new LdapAttribute("member", input.UserDistinguishedName);
38-
mods[0] = new LdapModification(LdapModification.Delete, member);
39-
conn.Modify(input.GroupDistinguishedName, mods);
40-
41-
return new Result(true, null, input.UserDistinguishedName, input.GroupDistinguishedName);
35+
36+
LdapModification[] mods = new LdapModification[1];
37+
var member = new LdapAttribute("member", input.UserDistinguishedName);
38+
mods[0] = new LdapModification(LdapModification.Delete, member);
39+
conn.Modify(input.GroupDistinguishedName, mods);
40+
41+
return new Result(true, null, input.UserDistinguishedName, input.GroupDistinguishedName);
4242
}
4343
catch (LdapException ex)
4444
{
45-
if (input.HandleLDAPError.Equals(HandleLDAPError.Skip))
45+
if (input.HandleLDAPError.Equals(HandleLDAPError.Skip))
4646
return new Result(false, ex.Message, input.UserDistinguishedName, input.GroupDistinguishedName);
4747
else
4848
throw new Exception($"RemoveUserFromGroups LDAP error: {ex.Message}");

Frends.LDAP.UpdateUser/Frends.LDAP.UpdateUser/Definitions/Connection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class Connection
1111
/// This must resolve to a Domain Controller (FQDN) in the same domain
1212
/// as the user being updated.
1313
/// </summary>
14-
/// <example>adserver.westeurope.cloudapp.azure.com</example>
14+
/// <example>dc1.emea.company.com</example>
1515
public string Host { get; set; }
1616

1717
/// <summary>

Frends.LDAP.UpdateUser/Frends.LDAP.UpdateUser/UpdateUser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static Result UpdateUser([PropertyTab] Input input, [PropertyTab] Connect
6666

6767
foreach (var item in input.Attributes)
6868
modList.Add(new LdapModification(modMethod, new LdapAttribute(item.Key, string.IsNullOrWhiteSpace(item.Value) ? " " : item.Value)));
69-
69+
7070
var mods = new LdapModification[modList.Count];
7171
var mtype = Type.GetType("Novell.Directory.LdapModification");
7272
mods = (LdapModification[])modList.ToArray(typeof(LdapModification));

0 commit comments

Comments
 (0)