コード例 #1
0
ファイル: DebugModule.cs プロジェクト: iZeQure/CelestialError
        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.");
            }
        }