UNPKG

@sync-in/server

Version:

The secure, open-source platform for file storage, sharing, collaboration, and sync

47 lines (46 loc) 1.32 kB
/* * Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com> * This file is part of Sync-in | The open source file sync and share solution * See the LICENSE file for licensing details */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: Object.getOwnPropertyDescriptor(all, name).get }); } _export(exports, { get ALL_LDAP_ATTRIBUTES () { return ALL_LDAP_ATTRIBUTES; }, get LDAP_COMMON_ATTR () { return LDAP_COMMON_ATTR; }, get LDAP_LOGIN_ATTR () { return LDAP_LOGIN_ATTR; } }); var LDAP_LOGIN_ATTR = /*#__PURE__*/ function(LDAP_LOGIN_ATTR) { LDAP_LOGIN_ATTR["UID"] = "uid"; LDAP_LOGIN_ATTR["CN"] = "cn"; LDAP_LOGIN_ATTR["MAIL"] = "mail"; LDAP_LOGIN_ATTR["SAM"] = "sAMAccountName"; LDAP_LOGIN_ATTR["UPN"] = "userPrincipalName"; return LDAP_LOGIN_ATTR; }({}); const LDAP_COMMON_ATTR = { MAIL: 'mail', GIVEN_NAME: 'givenName', SN: 'sn', CN: 'cn', DISPLAY_NAME: 'displayName', MEMBER_OF: 'memberOf' }; const ALL_LDAP_ATTRIBUTES = [ ...Object.values(LDAP_LOGIN_ATTR), ...Object.values(LDAP_COMMON_ATTR) ]; //# sourceMappingURL=auth-ldap.js.map