Hai to all,
While am trying tp add in ldap database i am getting the following error.
[root@Testing openldap]# ldapadd -x -D "cn=Manager,dc=testdomain3,dc=com" -f yuvraj.ldif -w secret
adding new entry "dc=testdomain3,dc=com"
ldap_add: Undefined attribute type (17)
additional info: employeeNumber: attribute type undefined
[root@Testing openldap]# cat yuvraj.ldif
#Entry 1
dn: dc=testdomain3,dc=com
description: LDAPDB
objectClass: top
employeeNumber: 1000515
nationality: India
fn: yuvraj
sn: singh
sex: Male
age: 31
o: Cricket
ou: Batsman
displayName: singhy
uidNumber: 5155555
cn: yuvraj singh
userPassword: s
Please suggest.
Distro : CentOS 5.5
Thanks in advance..
Hi, I am using a XML file in server location which contains some attributes and value.I just want to replace the attribute value inside the tag keeping the complete line and xml file intact. I am looking for Regular expression which can search for attribute name and replace the attribute value with the provided one. Please find below property details.
<server>
<mbean code="com.xyz.domain.wsmq.WSMQConnectionFactory"
name="xyz.qps:service=MQQueueConnectionFactory">
<attribute name="QueueManagerName">QMSTR01</attribute>
<attribute name="HostName">xx.yy.zz.ww</attribute>
<attribute name="Channel">channel01</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
</server>
Hello there,
First of all thank you for making me a part of this forum.
Secondly, here is the problem..
I am facing this problem in honeyd installation during "make"
root@kali:~/Desktop/Narayan/honeyd-1.5c# sudo make
make all-recursive
make[1]: Entering directory `/root/Desktop/Narayan/honeyd-1.5c'
Making all in .
make[2]: Entering directory `/root/Desktop/Narayan/honeyd-1.5c'
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./ -I./compat -I/usr/local/include -I/usr/local/include -I/usr/local/include -O2 -Wall -g -DPATH_HONEYDINCLUDE="\"/usr/local/include/honeyd\"" -DPATH_HONEYDDATA="\"/usr/local/share/honeyd\"" -DPATH_HONEYDLIB="\"/usr/local/lib/honeyd\"" -DHONEYD_PLUGINS_DECLARE="" -DHONEYD_PLUGINS="" -DPATH_RRDTOOL="\"\"" -c honeyd.c
In file included from honeyd.c:97:0:
tagging.h:89:6: error: expected declaration specifiers or ‘...’ before ‘(’ token
tagging.h:89:6: error: expected declaration specifiers or ‘...’ before ‘(’ token
In file included from stats.h:36:0,
from honeyd.c:98:
./compat/sha1.h:23:3: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
./compat/sha1.h:23:3: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
./compat/sha1.h:26:3: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
./compat/sha1.h:28:3: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
./compat/sha1.h:30:3: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
./compat/sha1.h:32:3: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
./compat/sha1.h:35:3: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
./compat/sha1.h:35:3: warning: ‘__bounded__’ attribute directive ignored [-Wattributes]
make[2]: *** [honeyd.o] Error 1
make[2]: Leaving directory `/root/Desktop/Narayan/honeyd-1.5c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/Narayan/honeyd-1.5c'
make: *** [all] Error 2
I found a similar thread in this forum as well to solve the above problem by using "apt-get install honeyd" but didnt quite worked for me.
root@kali:~/Desktop/Narayan/honeyd-1.5c# apt-get install honeyd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package honeyd
I tried researching but couldnt find any solutions. Moreover, I am really a newbie at Kali Linux and other debians as well.
I would appreciate if somone could help me.
Thank you.
i need a bash script to switch to zero second on ac the waiting time for turning off the monitor (highlighten in red). same as for on battery (highlighten in purple)
Code:
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-power-manager" version="1.0">
<property name="xfce4-power-manager" type="empty">
<property name="power-button-action" type="empty"/>
<property name="show-tray-icon" type="empty"/>
<property name="logind-handle-lid-switch" type="bool" value="true"/>
<property name="dpms-on-ac-sleep" type="uint" value="1"/>
<property name="dpms-on-ac-off" type="uint" value="2"/>
<property name="brightness-on-battery" type="uint" value="9"/>
<property name="dpms-on-battery-sleep" type="uint" value="1"/>
<property name="dpms-on-battery-off" type="uint" value="2"/>
<property name="lock-screen-suspend-hibernate" type="bool" value="false"/>
<property name="dpms-enabled" type="bool" value="true"/>
</property>
</channel>
Hi there,
Trying to compile a few Gfortran lines in Ubuntu 12.04 I get this error:
Quote:
lun = newunit(unit)
1
Error: Dummy argument 'unit' of procedure 'newunit' at (1) has an attribute that requires an explicit interface for this procedure
The number one in fact points to the word "unit" not "lun" in the terminal. It got left-shifted when posted.
The code itself:
Code:
program main
INTEGER*4 counter,lun,unit
REAL*8, parameter :: pi = 3.141592653589793
unit = 10
lun = newunit(unit)
...................
end program main
What does it all mean and how shall I change the code to compile it without an error?
Thanks, - A.
Hi all,
I am trying to write a script that syncs files from source to destination. I have one centralized server that can ssh to any servers without pw. Now when I run the script, it can ssh to source server perfectly fine, but you need to enter password for destination server. Was wondering how I can clean this up before I start using case statements
Below is a sample I wrote
#!/bin/bash
#This scripts syncs shit
echo "Type in ID: "
read ID
echo "Type in Server : " #source server
read S
echo "Type in Destination Server: "
read DS
if [ $S == 9 ]; then
ssh -t "root@"$S"webserver1" "rsync -av /home/rlui/"$ID "root@"$DS"webserver2:/home/rlui/";
ssh -t "root@"$S"webserver1" "rsync -av /home/rlui/tmp/"$ID "root@sl"$DS"webserver2:/home/rlui/tmp/"
exit 1
where S and DS are cluster numbers
I apologize in advance if I am not clear on anything
I'm trying to send all root's mails to an external e-mailaddress, but for some reason I can't get it to work.
I've edited /etc/aliases with the following rule:
root: <myexternal@email.address>
and run newaliasses after, which would run without any errors.
I can run: echo "Testing" | mail -s "Server Testing" <myexternal@email.address>
just fine without any issue and it's being delivered correctly to my external address.
But when I run: echo "Testing" | mail -s "Server Testing" root
I (first) get a "Deferred: 451 Temporary local problem - please try again later" error and when I then run: "Sendmail -OTimeout.hoststatus=0m -q -v" to flush the mailqueue it says everything is ok, but I then get a message saying I have new mail in /var/spool/mail/root and I don't get the mail on my external e-mailaddress.
I have no clue where to look next, hopefully you guys can point me in the right direction.
Just for completeness: I use mageia release 4 (x86_x64).
Hello,
I'm working on a shell script that needs to read the a file (file1) a batch (read 2000 lines at a time) and then write those lines to seperate file which I'm using to run ldapmodify command. I need to check some other file size and once this file less than 200kb, i would need to run second batch and so on until file1 is empty.
Quote:
#!/bin/bash
set -x
filesize=200
server=10.11.xxx.xx
filename=fileimport.txt
taofile1=687686.txt
taofile=/var/opt/$taofile1
stty -echo
echo -n "Enter password: "
read passwd
stty echo
context="cn=user1,ou=org1,ou=org2,o=org"
if [[ -s "$filename" ]];then
for lines in $filename
do
head -99997 fileimport.txt >> ldapreadd.ldif && sed -i '1,+99996d' fileimport.txt
if [ -s ldapreadd.ldif ];then
ldapmodify -h $server -p 389 -D $context -w $passwd -v -x -f ldapreadd.ldif &> /dev/null
echo "LDIF script is running. Please wait..."
sleep 60
if [ -f "$taofile" ];then
taofilesize=`stat -c %s ${taofile}`
# if [ "$taofilesize" -ge 200 ];then
while [ `stat -c %s ${taofile}` -ge 200 ]
do
echo " Driver is processing LDIF file. Please wait..."
sleep 60
done
fi
rm -rf ldapreadd.ldif
fi
done
else
echo "$filename file is empty. Exiting script..."
exit
fi
I have 2 issues here. first one script is not reading exact lines as specified. Some times its reading more lines some times less lines. Second issues once it run the first batch, script is exiting. Please advise.
Hi,
In first place i would like to give you a brief about my current setup and my requirement.
I have 80% of the machines with CentOS 6.5 installed rest 20% windows 7. I have OpenLDAP v2.4 for user authentication.
In linux environment all linux machines are configured in such a way that whenever a user logs on to system with the help of OpenLDAP credentials he gets a default desktop rather Mandatory Profile is implemented in this setup. Now my goal is to enable OpenLDAP users logon to windows machines and get the same Mandatory profile setup done here. So far SambaPDC helped me to authenticate LDAP accounts on Windows clients machines but the Manadatory profile thing isn't working well at all due to posix acls issue. Now i am working with Windows Server 2012 r2 server so as to integrate with OpenLDAP for getting this Mandatory profile thing done. Is there any way i can sync all OpenLDAP accounts to Active directory or rather make my windows server a member server for OpenLDAP domain.
Please help me on this. Thanks in advance!!
Hello, I want to deploy some AD-like login and user management. All devices in network use Linux (Debian, 5-10 workstations).
The first idea is to use Samba4 because everyone is talking about how it is AD-compliant, but I think it's not needed, because there's no windows workstations, and it gives additional windows-specific tools and protocols like netbios, etc.
Next thought is, that FreeIPA is good idea, but I don't see it in Debian's repos (only sid).
I could try to install it from sid, but I'm afraid it's not stable and production ready. I see it stable only in RedHat family (centos/fedora).
What is more, freeipa-client is not even in jessie's repo. I heard about sssd as a client in Debian for FreeIPA.
The last idea is to use OpenLDAP. I'm sure it's supported by Debian very well, but I'm afraid of lack of integration with other tools like kerberos, etc. I've got ntp, dns, dhcp, some file sharing, etc. done right now without ldap, so I don't really need all that additional stuff.
Is using Centos/Fedora is only way to have FreeIPA?
Is it possible and supported to use Debian as client of FreeIPA?
Do you have any advice on the best way to do this?
Hello,
I am trying out a GNU-plus-Linux distribution called "Tails" for the first time. Tails is the distro that provides anonymity for the user by forcing all network traffic to go through the Tor network system. I am testing out Tails version 1.4.
Tails is a live DVD disc. It boots in live mode directly from the DVD and optical drive.
However, once I was booted into the desktop for the first time, it seems to not have been able to automatically find and configure my internet connection.
When I hover the pointer over the twin PC's icon in the system tray at the top right hand corner it says "No network connection".
Then, just to make sure, I opened the "Tor browser" and it gave me an error message that says "The proxy server is refusing connections".
Then to make triple sure, I opened the "Unsafe web browser" and it gave me the error message that says "Error No DNS server was obtained through DHCP or manualy configured in Network Manager".
So as a new user of this distro, I'm not sure on where to go and what to do. So any help would be greatly appreciated.
Thank you