2023-10-25 09:05:37 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2024-03-13 15:22:06 -05:00
|
|
|
|
namespace LdapLoginLib.Models
|
2023-10-25 09:05:37 -05:00
|
|
|
|
{
|
2024-03-13 15:22:06 -05:00
|
|
|
|
public class LdapUserInfo
|
2023-10-25 09:05:37 -05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The unique identifier for the user (mandatory).
|
|
|
|
|
/// Example: "jdoe"
|
|
|
|
|
/// </summary>
|
2024-03-13 15:22:06 -05:00
|
|
|
|
public string? Uid { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Doc. Identidad
|
|
|
|
|
/// The employee's unique identification number.
|
|
|
|
|
/// Example: "E12345"
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? EmployeeNumber { get; set; }
|
2023-10-25 09:05:37 -05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The common name of the user.
|
|
|
|
|
/// Example: "John Doe"
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? Cn { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-03-13 15:22:06 -05:00
|
|
|
|
/// Nombres full
|
2023-10-25 09:05:37 -05:00
|
|
|
|
/// The user's given name.
|
|
|
|
|
/// Example: "John"
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? GivenName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-03-13 15:22:06 -05:00
|
|
|
|
/// Apellidos
|
2023-10-25 09:05:37 -05:00
|
|
|
|
/// The user's surname.
|
|
|
|
|
/// Example: "Doe"
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? Sn { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The user's email address.
|
|
|
|
|
/// Example: "jdoe@example.com"
|
|
|
|
|
/// </summary>
|
2024-03-13 15:22:06 -05:00
|
|
|
|
public string? Mail { get; set; }
|
|
|
|
|
|
2023-10-25 09:05:37 -05:00
|
|
|
|
|
2024-03-13 15:22:06 -05:00
|
|
|
|
//TODO:
|
2023-10-25 09:05:37 -05:00
|
|
|
|
/// <summary>
|
2024-03-13 15:22:06 -05:00
|
|
|
|
/// The user's ALTERNATIVE email address.
|
|
|
|
|
/// Example: "jdoe@example.com"
|
2023-10-25 09:05:37 -05:00
|
|
|
|
/// </summary>
|
2024-03-13 15:22:06 -05:00
|
|
|
|
public string? MailAlternateAddress { get; set; }
|
|
|
|
|
|
|
|
|
|
|
2023-10-25 09:05:37 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The organization the user belongs to.
|
|
|
|
|
/// Example: "Acme Inc.", currently "Sede"
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? O { get; set; }
|
|
|
|
|
|
2024-03-13 15:22:06 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The status of the user's internet account.
|
|
|
|
|
/// Example: "Active"
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? InetUserStatus { get; set; }
|
|
|
|
|
|
2023-10-25 09:05:37 -05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The status of the user's account as boolean.
|
|
|
|
|
/// Example: true or false
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool? IsActive { get; set; } = null;
|
|
|
|
|
|
2024-03-13 15:22:06 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-25 09:05:37 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/********************************************
|
|
|
|
|
* *
|
|
|
|
|
* Discared / not in used *
|
|
|
|
|
* *
|
|
|
|
|
********************************************
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The user's password.
|
|
|
|
|
/// Example: "P@ssw0rd"
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? UserPassword { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The type of employee (e.g., full-time, part-time).
|
|
|
|
|
/// Example: "Full-Time", currently numbers
|
|
|
|
|
/// </summary>
|
2024-03-13 15:22:06 -05:00
|
|
|
|
//public string? EmployeeType { get; set; }
|
|
|
|
|
|
2023-10-25 09:05:37 -05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The business category of the user.
|
|
|
|
|
/// Example: "Sales"
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? BusinessCategory { get; set; }
|
|
|
|
|
|
2024-03-13 15:22:06 -05:00
|
|
|
|
// Definidos por LDAP
|
|
|
|
|
// No encontrado
|
2023-10-25 09:05:37 -05:00
|
|
|
|
/// <summary>
|
2024-03-13 15:22:06 -05:00
|
|
|
|
/// Numero unico identificacion personal
|
2023-10-25 09:05:37 -05:00
|
|
|
|
/// </summary>
|
2024-03-13 15:22:06 -05:00
|
|
|
|
//public string? NUIP { get; set; } = null;
|
2023-10-25 09:05:37 -05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The license information for the user.
|
|
|
|
|
/// Example: "Licensed for Software X, Y, and Z"
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? NsLicensedFor { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
********************************************
|
|
|
|
|
* *
|
|
|
|
|
********************************************/
|
|
|
|
|
|
|
|
|
|
}
|