Skip to content

Commit b89047a

Browse files
author
Lee Cavazos
committed
MyriAD Version 1.1.24219.0
1 parent ddc196a commit b89047a

3 files changed

Lines changed: 9 additions & 20 deletions

File tree

Zephyr.Directory.Aws/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
[assembly: AssemblyConfiguration("")]
1010
[assembly: AssemblyCompany("")]
1111
[assembly: AssemblyProduct("Zephyr.Directory.Aws")]
12-
[assembly: AssemblyCopyright("Copyright © Guy Waguespack, 2019 - 2023")]
12+
[assembly: AssemblyCopyright("Copyright © Guy Waguespack, 2019 - 2024")]
1313
[assembly: AssemblyTrademark("")]
1414
[assembly: AssemblyCulture("")]
1515

1616
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
1717
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
1818
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
1919

20-
[assembly: AssemblyVersion("1.1.24150.0")]
21-
[assembly: AssemblyFileVersion("1.1.24150.0")]
20+
[assembly: AssemblyVersion("1.1.24219.0")]
21+
[assembly: AssemblyFileVersion("1.1.24219.0")]
2222

2323
// The following attributes are used to specify the signing key for the assembly,
2424
// if desired. See the Mono documentation for more information about signing.

Zephyr.Directory.Ldap/LdapServer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,13 +347,14 @@ public LdapResponse Search(LdapRequest request, string searchBase, string search
347347
bool Token_present = false;
348348
Token_present = CheckForToken(results, entries, nextToken_checker).Item1;
349349
currentRecords = entries.Count;
350+
// Multiple Searches Request Logic for Server Token
350351
if(MultipleSearches != null){
351352
iteration = Pick_up_Here;
352353
int recordsLeft = maxSearchResults - currentRecords;
353354
if(!Token_present && recordsLeft != 0){
354355
for(int index = Pick_up_Here-1; index < MultipleSearches.Count; index++){
355356
recordsLeft = maxSearchResults - currentRecords;
356-
// The LDAP SearchConstraints have to updated to take into consideration the entries that have been collected
357+
// The LDAP SearchConstraints have to be updated to take into consideration the entries that have been collected
357358
LdapSearchConstraints options2 = new LdapSearchConstraints();
358359
SimplePagedResultsControl new_pagedRequestControl = new SimplePagedResultsControl(recordsLeft, nextToken);
359360
options2.SetControls(new_pagedRequestControl);
@@ -423,6 +424,7 @@ public LdapResponse Search(LdapRequest request, string searchBase, string search
423424
currentRecords = entries_copy.Count;
424425
}
425426
}
427+
// Multiple Searches Request Logic for Client Token
426428
if(MultipleSearches != null){
427429
iteration = Pick_up_Here;
428430
int recordsLeft = maxSearchResults - currentRecords;
@@ -473,6 +475,7 @@ public LdapResponse Search(LdapRequest request, string searchBase, string search
473475
}
474476
}
475477
else{
478+
// Logic to help determine the next Client Based Token
476479
if(Token_present){
477480
continue_token = $"-0{Pick_up_Here}";
478481
PossibleNextToken = String.Concat((currentRecords+nextToken_client).ToString(), continue_token);

Zephyr.Directory.Ldap/Utilities/DynamoDBTools.cs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public string RegionName
7575
set { Region = RegionEndpoint.GetBySystemName("us-east-2"); }
7676
}
7777
public string DefaultReporter { get; set; }
78-
private string RequestsTable = System.Environment.GetEnvironmentVariable("Myriad_request_table");
79-
private string RecordsTable = System.Environment.GetEnvironmentVariable("Myriad_records_table");
78+
private string RequestsTable = System.Environment.GetEnvironmentVariable("Myriad_Batch_Request_Table");
79+
private string RecordsTable = System.Environment.GetEnvironmentVariable("Myriad_Batch_Records_Table");
8080
private AmazonDynamoDBClient client;
8181
private AmazonLambdaClient lambdaClient;
8282

@@ -115,20 +115,6 @@ public void add_entry(LdapRequest request){
115115
var task = Request.PutItemAsync(doc);
116116
// Console.WriteLine(task.Result);
117117
}
118-
public async Task<string> Invoke(string data){
119-
InvokeRequest request = new InvokeRequest
120-
{
121-
FunctionName = "myriad-core",
122-
Payload = data
123-
};
124-
var test = await lambdaClient.InvokeAsync(request);
125-
if (test != null){
126-
using (var sr = new StreamReader(test.Payload)){
127-
return await sr.ReadToEndAsync();
128-
}
129-
}
130-
return string.Empty;
131-
}
132118
public LdapBatchResponse invokeLambda(LdapRequest request_obj){
133119
string request_body = JsonTools.Serialize(request_obj,true);
134120
Guid jobID_uuid = Guid.NewGuid();

0 commit comments

Comments
 (0)