Skip to content

Commit 88b49bb

Browse files
committed
Update entity.yml
1 parent 8141e38 commit 88b49bb

File tree

1 file changed

+1
-1
lines changed
  • packages/entityanalytics_ad/data_stream/user/elasticsearch/ingest_pipeline

1 file changed

+1
-1
lines changed

packages/entityanalytics_ad/data_stream/user/elasticsearch/ingest_pipeline/entity.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ processors:
9898
}
9999
String sid(String text) {
100100
def bytes = Base64.getDecoder().decode(text);
101-
int subauths = Byte.toUnsignedInt(bytes[1]);
102101
def uid = "S-"+Byte.toString(bytes[0])+"-";
103102
int auth = 0;
104103
for (int i = 2; i < 8; i++) {
105104
auth |= Byte.toUnsignedInt(bytes[i])<<(8*(5-(i-2)));
106105
}
107106
uid += Integer.toString(auth);
107+
int subauths = Byte.toUnsignedInt(bytes[1]);
108108
int off = 8;
109109
for (int i = 0; i < subauths; i++) {
110110
int subauth = 0;

0 commit comments

Comments
 (0)