ldap

I need to find out disabled users from ldap

不问归期 提交于 2020-02-25 00:43:10
问题 I am trying to find out whether a user is disabled in ldap using ldapsearch utility but I have been unsuccessful so far. This is what i have got so far ldapsearch -h hostname -D 'Service Account' -b 'basedn' sAMAccountName='disabled user' -w 'password' # extended LDIF # # LDAPv3 # base <basedn> with scope subtree # filter: sAMAccountName=disabled user # requesting: ALL # # search result search: 2 result: 0 Success # numResponses: 1 I have even tried with -LLL nsaccountlock it give me nothing.

Paginate on LDAP server which does not support PagedResultsControl

隐身守侯 提交于 2020-02-23 09:33:53
问题 I'm trying to get all entries on an LDAP server using Spring LDAP (version 2.3.2). Within my code, I make use of PagedResultsDirContextProcessor to paginate through all the result. This works fine on the servers which support PagedResultsControl . However, I now need to connect to an LDAP server which does not support PagedResultsControl . How can I get all entries without using PagedResultsControl ? 回答1: You can use VirtualListView via JNDI. You have to retrieve and re-supply the 'contextID'

Modify passwords in an LDIF file using ldapmodify command

﹥>﹥吖頭↗ 提交于 2020-02-23 09:15:58
问题 I have a LDIF file that consists of a set of test users and I would like to change the passwords for these users. I used the ldapmodify command: ldapmodify -c -a -f filename.ldif -h localhost -p <port> -D dn -w <pwd> << ! dn: uid=<userid>,dc=<branch>,DC=COM changetype: modify replace: userPassword userPassword: <new pwd> ! And I get the following error: ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1) What does this mean? The syntax I have used can be used for only one user, I

Modify passwords in an LDIF file using ldapmodify command

我的梦境 提交于 2020-02-23 09:15:51
问题 I have a LDIF file that consists of a set of test users and I would like to change the passwords for these users. I used the ldapmodify command: ldapmodify -c -a -f filename.ldif -h localhost -p <port> -D dn -w <pwd> << ! dn: uid=<userid>,dc=<branch>,DC=COM changetype: modify replace: userPassword userPassword: <new pwd> ! And I get the following error: ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1) What does this mean? The syntax I have used can be used for only one user, I

LDAP injection

烈酒焚心 提交于 2020-02-23 06:50:01
LDAP injection From OWASP Jump to: navigation , search This is an Attack . To view all attacks, please see the Attack Category page. Last revision: 7/2/2008 Description LDAP Injection is an attack used to exploit web based applications that construct LDAP statements based on user input. When an application fails to properly sanitize user input, it’s possible to modify LDAP statements using a local proxy. This could result in the execution of arbitrary command such as granting permissions to unauthorized queries, and content modification inside the LDAP tree. The same advanced exploitation

Spring LDAP: InvalidNameException: /: [LDAP: error code 34

安稳与你 提交于 2020-02-22 07:59:25
问题 I am getting following exception while authenticating a user: If I use values in applicationContext like this: <property name="url" value="ldap://10.10.10.10:389/DC=lab2,DC=ins" /> <property name="base" value="DC=lab2,DC=ins" /> <property name="userDn" value="CN=Ldap Bind,OU=Service Accounts,OU=TECH,DC=lab2,DC=ins" /> Exception will be: Exception in thread "main" org.springframework.ldap.InvalidNameException: /: [LDAP: error code 34 - 0000208F: NameErr: DSID-031001BA, problem 2006 (BAD_NAME),

Connecting to LDAP server using JNDI in Java

北城以北 提交于 2020-02-15 13:49:35
The following example demonstrates how to make connection to a LDAP server using JNDI ( Java Naming and Directory Interface ) APIs in Java. The JNDI’s interfaces, classes and exceptions are available in the javax.naming.* and javax.naming.directory.* packages which come with JDK. That means you don’t have to use any external libraries for working with LDAP servers, in most cases. First, you need to specify URL of the LDAP server in the following form: 1 String url = "ldap://localhost:389" ; That specifies URL of a LDAP server which is running on local host and is listening on the default port

Enable LDAP over SSL (LDAPS) for Microsoft Active Directory servers

五迷三道 提交于 2020-02-14 14:14:25
Refer to https://gist.github.com/magnetikonline/0ccdabfec58eb1929c997d22e7341e45 @2020-Feb Microsoft active directory servers will default to offer LDAP connections over unencrypted connections (boo!). The steps below will create a new self signed certificate appropriate for use with and thus enabling LDAPS for an AD server. Of course the "self-signed" portion of this guide can be swapped out with a real vendor purchased certificate if required. Steps have been tested successfully with Windows Server 2012R2, but should work with Windows Server 2008 without modification. Requires a working

Apache Griffin安装

拈花ヽ惹草 提交于 2020-02-11 18:25:50
一、集群基础环境 1.JDK (1.8 or later versions) 2.PostgreSQL(version 10.4) or MySQL(version 8.0.11) 3.Hadoop (2.6.0 or later) 4.Hive (version 2.x),安装参考 : https://www.cnblogs.com/caoxb/p/11333741.html 5.Spark (version 2.2.1) 安装参考: https://blog.csdn.net/k393393/article/details/92440892 6.Livy 安装参考:https://www.cnblogs.com/students/p/11400940.html 7.ElasticSearch (5.0 or later versions). 参考 https://blog.csdn.net/fiery_heart/article/details/85265585 8.Scala 二、安装Grigffin(前提以上集群搭好) 1、MySQL: 1)在MySQL中创建数据库quartz, 2)然后执行 Init_quartz_mysql_innodb.sql 脚本初始化表信息: mysql -u <username> -p <password> quartz < Init

OpenStack Train Magnum部署Kubernetes(1)--部署OpenStack Train(包含问题:Requires: qemu-kvm-rhev >= 2.10.0)

a 夏天 提交于 2020-02-07 08:06:35
基于Packstack部署OpenStack Train版本 部署环境 操作系统:CentOS Linux release 7.7.1908 OpenStack:Train PackStack:openstack-packstack-15.0.0-0.1.0rc1 部署过程 安装Centos7.7 基于BMC+ISO安装Centos7.7 安装好OS后,做一些基础配置 hostnamectl set-hostname openstack-magnum-k8s sed -i "s/SELINUX=enforcing/SELINUX=disable/g" /etc/selinux/config setenforce 0 systemctl stop NetworkManager systemctl disable NetworkManager systemctl stop firewalld systemctl disable firewalld 设置repo 设置域名服务器 echo "nameserver 114.114.114.114" /etc/resolv.conf 注:域名服务器能保证连通外网域名,比如mirrors.tuna.tsinghua.edu.cn 设置Repo vi /etc/yum.repos.d/Centos-Base.repo 注