reflect changes for gojs

dev
5amu 2024-01-21 12:54:49 +01:00
parent 6bf8f8769b
commit 893129eb17
1 changed files with 33 additions and 4 deletions

View File

@ -15,15 +15,44 @@ func init() {
module.Set(
gojs.Objects{
// Functions
"JoinFilters": func(f ...string) string { return lib_ldap.JoinFilters(f...) },
"NegativeFilter": func(f string) string { return lib_ldap.NegativeFilter(f) },
// Var and consts
"FilterIsPerson": func() string { return lib_ldap.FilterIsPerson },
"FilterIsGroup": func() string { return lib_ldap.FilterIsGroup },
"FilterIsComputer": func() string { return lib_ldap.FilterIsComputer },
"FilterIsAdmin": func() string { return lib_ldap.FilterIsAdmin },
"FilterLogonScript": func() string { return lib_ldap.FilterLogonScript },
"FilterAccountDisabled": func() string { return lib_ldap.FilterAccountDisabled },
"FilterAccountEnabled": func() string { return lib_ldap.FilterAccountEnabled },
"FilterHomedirRequired": func() string { return lib_ldap.FilterHomedirRequired },
"FilterLockout": func() string { return lib_ldap.FilterLockout },
"FilterPasswordNotRequired": func() string { return lib_ldap.FilterPasswordNotRequired },
"FilterPasswordCantChange": func() string { return lib_ldap.FilterPasswordCantChange },
"FilterCanSendEncryptedPassword": func() string { return lib_ldap.FilterCanSendEncryptedPassword },
"FilterIsDuplicateAccount": func() string { return lib_ldap.FilterIsDuplicateAccount },
"FilterIsNormalAccount": func() string { return lib_ldap.FilterIsNormalAccount },
"FilterInterdomainTrustAccount": func() string { return lib_ldap.FilterInterdomainTrustAccount },
"FilterWorkstationTrustAccount": func() string { return lib_ldap.FilterWorkstationTrustAccount },
"FilterServerTrustAccount": func() string { return lib_ldap.FilterServerTrustAccount },
"FilterDontExpirePassword": func() string { return lib_ldap.FilterDontExpirePassword },
"FilterMnsLogonAccount": func() string { return lib_ldap.FilterMnsLogonAccount },
"FilterSmartCardRequired": func() string { return lib_ldap.FilterSmartCardRequired },
"FilterTrustedForDelegation": func() string { return lib_ldap.FilterTrustedForDelegation },
"FilterNotDelegated": func() string { return lib_ldap.FilterNotDelegated },
"FilterUseDesKeyOnly": func() string { return lib_ldap.FilterUseDesKeyOnly },
"FilterDontRequirePreauth": func() string { return lib_ldap.FilterDontRequirePreauth },
"FilterPasswordExpired": func() string { return lib_ldap.FilterPasswordExpired },
"FilterTrustedToAuthForDelegation": func() string { return lib_ldap.FilterTrustedToAuthForDelegation },
"FilterPartialSecretsAccount": func() string { return lib_ldap.FilterPartialSecretsAccount },
// Types (value type)
"LDAPMetadata": func() lib_ldap.LDAPMetadata { return lib_ldap.LDAPMetadata{} },
"Metadata": func() lib_ldap.Metadata { return lib_ldap.Metadata{} },
"LdapClient": func() lib_ldap.LdapClient { return lib_ldap.LdapClient{} },
// Types (pointer type)
"NewLDAPMetadata": func() *lib_ldap.LDAPMetadata { return &lib_ldap.LDAPMetadata{} },
"NewMetadata": func() *lib_ldap.Metadata { return &lib_ldap.Metadata{} },
"NewLdapClient": func() *lib_ldap.LdapClient { return &lib_ldap.LdapClient{} },
},
).Register()