Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve ldap output with custom type: #5387

Merged
merged 3 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/js/compiler/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,5 @@ func stringify(gojaValue goja.Value, runtime *goja.Runtime) string {
}
}
// for everything else stringify
return fmt.Sprintf("%v", value)
return fmt.Sprintf("%+v", value)
}
10 changes: 6 additions & 4 deletions pkg/js/generated/go/libldap/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ func init() {
"FilterWorkstationTrustAccount": lib_ldap.FilterWorkstationTrustAccount,

// Objects / Classes
"ADObject": gojs.GetClassConstructor[lib_ldap.ADObject](&lib_ldap.ADObject{}),
"Client": lib_ldap.NewClient,
"Config": gojs.GetClassConstructor[lib_ldap.Config](&lib_ldap.Config{}),
"Metadata": gojs.GetClassConstructor[lib_ldap.Metadata](&lib_ldap.Metadata{}),
"Client": lib_ldap.NewClient,
"Config": gojs.GetClassConstructor[lib_ldap.Config](&lib_ldap.Config{}),
"LdapAttributes": gojs.GetClassConstructor[lib_ldap.LdapAttributes](&lib_ldap.LdapAttributes{}),
"LdapEntry": gojs.GetClassConstructor[lib_ldap.LdapEntry](&lib_ldap.LdapEntry{}),
"Metadata": gojs.GetClassConstructor[lib_ldap.Metadata](&lib_ldap.Metadata{}),
"SearchResult": gojs.GetClassConstructor[lib_ldap.SearchResult](&lib_ldap.SearchResult{}),
},
).Register()
}
Expand Down
96 changes: 48 additions & 48 deletions pkg/js/generated/ts/kerberos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ export class Config {
*/
export interface AuthorizationDataEntry {

ADType?: number,

ADData?: Uint8Array,

ADType?: number,
}


Expand All @@ -200,9 +200,9 @@ export interface AuthorizationDataEntry {
*/
export interface BitString {

BitLength?: number,

Bytes?: Uint8Array,

BitLength?: number,
}


Expand All @@ -212,9 +212,9 @@ export interface BitString {
*/
export interface BitString {

BitLength?: number,

Bytes?: Uint8Array,

BitLength?: number,
}


Expand All @@ -236,19 +236,15 @@ export interface Config {
*/
export interface EncTicketPart {

AuthTime?: Date,

StartTime?: Date,

EndTime?: Date,

RenewTill?: Date,

CRealm?: string,

CAddr?: HostAddress,
AuthTime?: Date,

AuthorizationData?: AuthorizationDataEntry,
StartTime?: Date,

Flags?: BitString,

Expand All @@ -257,6 +253,10 @@ export interface EncTicketPart {
CName?: PrincipalName,

Transited?: TransitedEncoding,

CAddr?: HostAddress,

AuthorizationData?: AuthorizationDataEntry,
}


Expand All @@ -266,11 +266,11 @@ export interface EncTicketPart {
*/
export interface EncryptedData {

EType?: number,

KVNO?: number,

Cipher?: Uint8Array,

EType?: number,
}


Expand Down Expand Up @@ -318,41 +318,33 @@ export interface HostAddress {
*/
export interface LibDefaults {

NoAddresses?: boolean,
CCacheType?: number,

RealmTryDomains?: number,
K5LoginAuthoritative?: boolean,

DNSLookupKDC?: boolean,
Proxiable?: boolean,

DefaultRealm?: string,
RDNS?: boolean,

SafeChecksumType?: number,
K5LoginDirectory?: string,

VerifyAPReqNofail?: boolean,
KDCTimeSync?: number,

AllowWeakCrypto?: boolean,
VerifyAPReqNofail?: boolean,

DefaultTGSEnctypes?: string[],

DefaultTktEnctypeIDs?: number[],

IgnoreAcceptorHostname?: boolean,
DefaultTGSEnctypeIDs?: number[],

K5LoginAuthoritative?: boolean,
DNSCanonicalizeHostname?: boolean,

PermittedEnctypes?: string[],
Forwardable?: boolean,

/**
* time in nanoseconds
*/

Clockskew?: number,

DNSCanonicalizeHostname?: boolean,

Proxiable?: boolean,

RDNS?: boolean,
RenewLifetime?: number,

/**
* time in nanoseconds
Expand All @@ -362,37 +354,45 @@ export interface LibDefaults {

DefaultClientKeytabName?: string,

DefaultTktEnctypeIDs?: number[],

DNSLookupRealm?: boolean,

ExtraAddresses?: Uint8Array,

DefaultRealm?: string,

NoAddresses?: boolean,

PreferredPreauthTypes?: number[],

PermittedEnctypeIDs?: number[],

UDPPreferenceLimit?: number,
RealmTryDomains?: number,

DefaultTGSEnctypeIDs?: number[],
DefaultKeytabName?: string,

DefaultTktEnctypes?: string[],

CCacheType?: number,

DNSLookupRealm?: boolean,
DNSLookupKDC?: boolean,

ExtraAddresses?: Uint8Array,
IgnoreAcceptorHostname?: boolean,

PreferredPreauthTypes?: number[],
AllowWeakCrypto?: boolean,

Canonicalize?: boolean,

Forwardable?: boolean,

K5LoginDirectory?: string,
SafeChecksumType?: number,

KDCTimeSync?: number,
UDPPreferenceLimit?: number,

/**
* time in nanoseconds
*/

RenewLifetime?: number,
Clockskew?: number,

DefaultKeytabName?: string,
PermittedEnctypes?: string[],

KDCDefaultOptions?: BitString,
}
Expand All @@ -416,6 +416,8 @@ export interface PrincipalName {
*/
export interface Realm {

Realm?: string,

AdminServer?: string[],

DefaultDomain?: string,
Expand All @@ -425,8 +427,6 @@ export interface Realm {
KPasswdServer?: string[],

MasterKDC?: string[],

Realm?: string,
}


Expand Down
Loading
Loading