# ldapsearch \ -LLL \# result formatting -H ldapi:/// \# ldap uri -p 389 \# ldap port -D "cn=admin,dc=***" \# bindDN -W \# password -b cn=config \# searchbase olcRootDN=cn=admin,dc=****\# filter dn olcRootDN olcRootPW # attrs -L[L{[L]]Search results are display in LDAP Data Interchange Format detailed in ldif(5). Asingle -L restricts the output to LDIFv1.A second -L disables comments. A third -L..
admin 암호 변경1. olcRootDN 값 확인# slapcat -b cn=config | grep olcRootDN olcRootDN: cn=config olcRootDN: cn=admin, dc=*** 여기서 olcRootDN은 cn=admin,dc=**** 2. 암호의 encrypition type 확인# ldapsearch -LLL -Y EXTERNAL -H ldapi:/// -b cn=config olcRootDN=[olcRootDN의 값] dn olcRootDN olcRootPW 출력된 결과에서 olcRootPW 행을 확인{MD5} {SSHA} 등 중괄호로 묶인 부분이 encryption type 3. encryption된 암호 문자열 생성# slappasswd -h [encryption_..
position 'beforebegin' Before the element itself. 'afterbegin' Just inside the element, before its first child. 'beforeend' Just inside the element, after its last child. 'afterend' After the element itself.text the string to be parsed as HTML or XML and inserted into the tree. https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML
CDPATH는 환경변수로 cd 명령을 통해 디렉토리를 이동할 때 기준이 되는 path를 지정할 수 있다.값이 지정되어 있지 않은 경우 현재 디렉토리가 기준이 된다.(당연히...) 터미널에서 아래처럼 입력해보면,$ export CDPATH=".:/usr" $ cd ~ $ pwd /home/[user-id] $ cd local /usr/local $ pwd /usr/localcd 명령어로 이동시 CDPATH에 지정된 순서대로 대상 디렉토리가 있는지 조회해보고,없는 경우 그 다음 순서의 디렉토리를 조회한다.결과적으로 홈 디렉토리에는 local 이라는 이름의 디렉토리가 없고,/usr 디렉토리에는 local 디렉토리가 있으므로 /usr/local 로 이동하였다. 적당한 곳이 디렉토리를 생성해서 CDPATH에 등록..
1. 임시로 yum 설정을 변경# vi /etc/yum/pluginconf.d/search-disabled-repos.conf'notify_only=1' 을 'notify_only=0' 으로 변경. 2. google repo를 수동으로 등록vi 등의 에디터로 /etc/yum.repos.d 밑에 파일을 만들고,# vi /etc/yum.repos.d/google-x86_64.repo파일의 내용을 아래와 같이 작성한다.[google64] name=Google - x86_64 baseurl=http://dl.google.com/linux/rpm/stable/x86_64 enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pu..
# dd if=/dev/zero of=dummy bs=100M || rm -f dummy
