示例#1
0
        public async Task Debug_Ldap(string commonName)
        {
            LdapService ldap = new LdapService();

            if (commonName != "" && commonName.Length != 0)
            {
                var getInfo = ldap.GetLDAPUserInformationByCommonName(commonName);
                if (getInfo != null)
                {
                    await ReplyAsync($"Information: {getInfo[0]} {getInfo[1]}");
                }
            }
            else
            {
                await ReplyAsync($"Missing parameter: Cannot be null.");
            }
        }