My workstation has Ubuntu OS 18.04. I use the ldapcpp library from OpenLDAP-2.4.47 in my Qt project for authorization on MS ActiveDirectory server. The code works fine.
LDAPControlSet* ctrls=new LDAPControlSet;
ctrls->add(LDAPCtrl(LDAP_CONTROL_MANAGEDSAIT));
cons->setServerControls(ctrls);
LDAPConnection *lc=new LDAPConnection("dc.mydomen.local",389);
lc->setConstraints(cons);
lc->bind("CN=username,OU=Programmer,OU=IVO,DC=mydomen,DC=local", "password",cons);
My workstation is in the domain.
username#kubuntuit01:~$ sudo net ads testjoin
Join is OK
username#kubuntuit01:~$ sudo net ads keytab list
Vno Type Principal
2 des-cbc-crc HOST/kubuntuit01.mydomen.local#MYDOMEN.LOCAL
2 des-cbc-crc HOST/KUBUNTUIT01#MYDOMEN.LOCAL
2 des-cbc-md5 HOST/kubuntuit01.mydomen.local#MYDOMEN.LOCAL
2 des-cbc-md5 HOST/KUBUNTUIT01#MYDOMEN.LOCAL
2 aes128-cts-hmac-sha1-96 HOST/kubuntuit01.mydomen.local#MYDOMEN.LOCAL
2 aes128-cts-hmac-sha1-96 HOST/KUBUNTUIT01#MYDOMEN.LOCAL
2 aes256-cts-hmac-sha1-96 HOST/kubuntuit01.mydomen.local#MYDOMEN.LOCAL
2 aes256-cts-hmac-sha1-96 HOST/KUBUNTUIT01#MYDOMEN.LOCAL
2 arcfour-hmac-md5 HOST/kubuntuit01.mydomen.local#MYDOMEN.LOCAL
2 arcfour-hmac-md5 HOST/KUBUNTUIT01#MYDOMEN.LOCAL
But i cannot connect using the saslbind method using the code:
LDAPAsynConnection * sas;
sas = new LDAPAsynConnection();
sas->init("dc.mydomen.local",389);
sas->saslBind("KERBEROS","uid=HOST/KUBUNTUIT01,cn=VIVEYA.LOCAL,cn=gssapi,cn=auth",cons);
or
sas->saslBind("GSSAPI","uid=HOST/KUBUNTUIT01,cn=VIVEYA.LOCAL,cn=gssapi,cn=auth",cons);
In debug mode in the debugger, the message string contains the text: "80090308: LdapErr: DSID-0C0904DC, comment: AcceptSecurityContext error, data 57, v1db1". I tried different authorization options, I don’t know what to try next.
thank
Related
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8a58a0898843 repo.com/test_nginx_dev "..." 3 seconds ago Up 2 seconds 80/tcp, 0.0.0.0:9000->9000/tcp test_nginx_dev
a1fzd92a1c9d repo.com/test_django_dev "..." 3 seconds ago Up 2 seconds 8080/tcp, 0.0.0.0:8100->8100/tcp test_django_dev
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7516491ae772 repo.com/test2_nginx_dev "..." 7 seconds ago Up 5 seconds 0.0.0.0:80->80/tcp test2_nginx_dev
59a344089c51 repo.com/test2_django_dev "..." 7 seconds ago Up 6 seconds 8080/tcp test2_django_dev
First, test2_nginx_dev and test2_django_dev were created with docker-compose. After that, if I create test_nginx_dev and test_django_dev with docker-compose
test2_nginx_dev and test2_django_dev disappear. how do i solve it
I running Django localhost server with PostgreSQL database:python manage.py runserver
But when I use the browser to consult the project, the server stops like I put in the console Ctrl + C. I don't get any error messege from Python, so I don't know whats happen.
I got this information from Windows Events Monitor. I don't know if it means something to anybody, but I understand it is a crash report.
- System
- Provider
[ Name] Windows Error Reporting
- EventID 1001
[ Qualifiers] 0
Level 4
Task 0
Keywords 0x80000000000000
- TimeCreated
[ SystemTime] 2018-09-18T21:23:09.081612800Z
EventRecordID 1121
Channel Application
Computer DESKTOP-UMHL2MO
Security
- EventData
2255961328469566825
1
APPCRASH
No disponible
0
python.exe
3.7.150.1013
5b330dc6
StackHash_89ce
10.0.17134.1
c8733c73
c0000374
PCH_CF_FROM_ntdll+0x00069ABC
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3360.tmp.dmp \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER340D.tmp.WERInternalMetadata.xml \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER341E.tmp.xml \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER341E.tmp.csv \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER343E.tmp.txt
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_python.exe_54cf6c8aeb3ae10789acd854ed6a82b72d1c7c1_d4f4c736_01a13796
0
b7e6ab6d-2a75-4996-9e5e-c5d132578749
268435456
2bfa2eb7e405e3f06f4ec8e02a726569
0
Please help me out how to run the single script in multiple devices in parallel using Python..?
I have started two different Appium servers using Selenium Grid.. But I'm not able to write the code to start the different drivers in two devices and run script parallel using Python..
Its better if you prepared a separate file for values which you are going to use it and separate code file where you can mention your test cases and the keywords.
Here is an example for values files :
Device:
SamsungA7:
Device_name: 111354d3 #Device id
server: http://localhost:4723/wd/hub #appium server URL
appPackage: com.android.contacts #app package name of your application
appActivity: com.android.contacts.activities.PeopleActivity #app activity of your application
platfrom: 6.0 #platfom version of your device
automation: Appium #Appium is used in automationName instead of Uiautomator for deviced on android version 4.4
Here is an example for the Code file:
* Settings *
Test Setup Sum of two numbers a+b
Test Teardown Set the Default Values
Suite setup Set value
* Variables *
Default Values
Value of A 1
Value of B 1
* Test Cases *
[Setup] Sum of first two numbers should be 6
Enter first value 5
Enter second value 1
5+1
* Test Cases *
[Setup] Sum of Second two numbers should be 11
Enter sum of first value 6
Enter second value 5
6+5
* Keywords *
Test TearDown
Set the Default values
Note: Code file should be in the .robot format and you can save the script file in yaml or notepad or json.
I have two elasticsearch cluster - cluster1 (version 2.4.x) and cluster2 (version 5.1.1). I am feeding live data to these two cluster from logstash (version 5.x) to achieve a stable state between cluster 1 and 2. The data is now in sync between these two cluster but the cluster 2's index size is almost double when compared to cluster 1's index size. Below is an example:
ES Version health status index pri rep docs.count docs.deleted store.size pri.store.size
2.4.x Old_Cluster green open index1-08 5 1 6520824 0 5.3gb 2.6gb
5.1.1 New_Cluster green open index2-08 5 1 6520824 0 9.3gb 4.6gb
As you can see above the docs.count is same between these two indexes but the size of the index2-08 is double the size of index1-08. Both clusters have similar configuration with respect to their versions.
The logstash (version 5.x) creates these two indexes using default mappings. This is lowering kibana's search capability. I am new to ELK thus am not sure if this something expected.
Can anyone please take a look and provide any suggestions on what might be the reason for this behaviour?
do u know perhaps a way (via script or program) to find out if e.g. a WMI script runs from a remote PC1 and performs some tasks in another PC2 when I am seating in a third PC: PC3
Assume that all PC belong to the same network and domain and have windows xp installed.
The reason for this that I administer a small network and I think that one student shuts down the PC where another student works, via WMI scripting.
Is there a way to monitor (via script or program) such a thing, without disabling wmi remote access.
Thanks everybody
You can get the credentials used to perform the shutdown by looking at verbose WMI logs.
1) Enable verbose WMI logging
Run 'Wmimgmt.msc' (also available under My Computer > 'Manage' > 'Services and Applications' > 'WMI Control')
Select 'WMI Control (Local)', right click --> select 'Properties'
Select 'Logging' Tab, set 'Logging level' to Verbose
2) Look at the WMI log files (Default location: %WINDIR%\system32\wbemLogs) to see record of remote access and actions taken. Specifically, look at wbemcore.log
Example: When I logged in remotely I saw the following entry [<domain> and <username> here were the real ones used for the remote connection]:
(Thu Aug 13 <time>) : DCOM connection from <domain>\<username>
at authentiction level Packet, AuthnSvc = 9, AuthzSvc = 1, Capabilities = 0
Then, to execute the WMI method the student would need to GetObject Win32_OperatingSystem, which showed up like this:
(Thu Aug 13 <time>): CALL CWbemNamespace::GetObject
BSTR ObjectPath = win32_operatingsystem
long lFlags = 0
And finally you'd look for executing the Win32Shutdown method, which should log something like this:
(Thu Aug 13 <time>) : CALL CWbemNamespace::ExecMethodAsync
BSTR ObjectPath = Win32_OperatingSystem
BSTR MethodName = Win32Shutdown