Ubuntu :: Authenticate Through HTTP Authentication Via Bash Script?
Jun 23, 2011
I have a process where by all SVN repositories are held in /var/svn/[domain]. I have set-up a post-commit hook to automatically checkout the repository to the development site and delete all .svn directories recursively through-out.I intend to run a bash script (as below); this is where my problem lies. EVERY repository is "Open" and anyone can read, write and commit the repository, however thus is secure via HTTP Authentication, using htpasswd.
Because the hook is automatic, I would like to be able to collect the current user/password but I don't think it's possible so I have created an account for the system called "svnroot" with a password.How can i authenticate through the HTTP Authentication via my bash script?
I can connect to the HTTP cups interface (localhost:631) but if I need admin priviledges, giving my id/pwd doesn't work. I don't see any "cups" group defined.
Otherwise, how do I enable a printer? I could disable it using the KDE printer management interface, but I can't re-enable it using same... Answer: /usr/sbin/cupsenable
I'm trying to add HTTP authentication to my app (it's a rss reader). As the app is in written in C and uses Libxml2, I've been searching in Libxml2 doc, but it seems it's not possible. Maybe someone could point me to a link to relevant info about how I could achieve that?
I can open the stream fine from Firefox and I have recorded streams using VLC, however this one uses cookies as authentication and VLC will not play it Apparently it's considered a security issue so cookie support has not been implemented for VLC.
I have a server acting as a proxy to a couple of IP cameras on my local network. The IP cameras require HTTP-Authentication (Basic) but I want the outward facing Apache server to automatically log in without prompting the user for a login.
My current configuration is:
Code:
That works as a proxy but still asks for a HTTP Auth login. Can I get Apache to pass the login details to the IP cameras so users can just hit up the proxy and view the camera without having to log in?
I got a problem with my CentOS server. Somebody told me OpenVPN Requires different changes inside my firewall settings. That could be the problem why openvpn wont load..I receive this error on my CentOS panel when im trying to connect into the centos openvpn (with my winxp pc):
I using rhel5 i installed&configured nagios ofter loged in the nagios server when i m enter hosts & services i m getting this error # it appears as though you do not have permission to view information for any of the hosts you requested. If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file.
I use snmpv3, and experiencing problem in passwords containing special symbols like "!". For Ex.: snmpwalk -v 3 -a SHA -A xxxxxxx!xx -l authPriv -u user -x DES -X xxxxxxx <IP address/Name of device> -bash: !xx: event not found I also tried using "" before "!" in passwords for ex. xxxxxx!xx, but then I have failed authentication.
I installed Nagios on my Ubuntu 10.04 server using apt-get and when I accessed the web console, everything was OK. I made some changes to apache (creating some new virtual sites) and since then Nagios gives me a warning message for HTTP with the message, HTTP WARNING: HTTP/1.1 404 Not Found. The sites that I created are working perfectly. I noticed that the attemps are 4/4. Does this need to be reset or does Nagios automatically reset that once it detects the issue is resolved?
Using netcat, nc(1), craft a valid http/1.1 request for getting http headers (not the html file itself!) for the main index page of www dot aalto dot fi. What request method did you use? Which headers did you need to send to the server? What was the status code for the request? Which headers did the server return? Explain the purpose of each header.
nc -v www dot aalto dot fi 8080 HEAD / HTML/1.1 host: www dot aalto dot fi And it returns: 200 OK Content-Length: 858 Content-Type: text/html Last-Modified: Thu, 02 Sep 2010 12:46:01 GMT [Code]....
I really don't know what does it mean. Question 2: Using netcat, nc(1), start a bogus web server listening on the loopback interface port 8080. Verify with netstat(, that the server really is listening where it should be. Direct your browser to the bogus server and capture the User-Agent: header "Direct your browser to the bogus server and capture the User-Agent: header" I don't understand this question.
On Ubuntu server 10.10, with a relay smtp server with authentication via postfix; I keep getting 535: Incorrect authentication data. I'm sure my username and password is correct. Heres how I set up postfix: I created a file called smarthosts.conf in my /etc/postfix/ directory that contains the following:
[Code].....
my server uses plain text authentication on port 25. I would like to use security like SSL, but this particular server is unsecured.
If I am running a script, let's say a install script. Is there a way to make Su repeat authentication rather then just returning "Authentication failed" and continuing the script?
I need to make a choice on what authentication protocol I want to use for Authentication and Authorization. I was looking at Radius and then literature suggested that Diameter was a better protocol. Keep in mind I need this on a hetrogeneous setup ( linux & windows together). Diameter seemed like a good fit until I discovered that the open source code no longer seems to be maintained ( C/C++).
I was also looking at Kerberos as an option though there is alot overhead with the server. SSL/TLS or EAP? I am looking for simple but secure and am new at the security protocols.
I have a problem with ldap client authentication in ubuntu. I am using rhel5 as openldap server and I configured ubuntu as client, when I am trying to login the following message is coming."su: Authentication service cannot retrieve authentication info. Sorry" But when I do search through "ldapsearch" command output is coming without any errors, Can anybody explain what would be problem.
I tried to change my password through the Users and Groups dialogue, and now neither the old one nor the new one work. I tried to do it once, and it didn't do anything (the password was still my old password), then the second time I did it, when I went to save the configuration it wouldn't take my new password or my old one. Now I can't authenticate for anything.
A wicked backdoor I've noticed is that going into recovery mode offers you a root console without authentication. (Awesome, Linux, secure as all ****, seriously.) Is there any way to use this to set my user password without needing to authenticate?
I'm on ubuntu 10.4 and Cant seem to falsely authenticate myself with my AP. I am trying to break a wep key on one of my older linksys routers; It continues to say this:
Code: root@kevin-laptop:/home/kevin# aireplay-ng -1 1 -a xx:xx:xx:xx:xx:xx mon1 No source MAC (-h) specified. Using the device MAC (xx:xx:xx:xx:xx:xx) 11:39:16 Waiting for beacon frame (BSSID: xx:xx:xx:xx:xx:xx) on channel 6 11:39:16 Sending Authentication Request (Open System) [ACK] 11:39:18 Sending Authentication Request (Open System) [ACK] 11:39:20 Sending Authentication Request (Open System) [ACK]
Attack was unsuccessful. Possible reasons: * Perhaps MAC address filtering is enabled. * Check that the BSSID (-a option) is correct. * Try to change the number of packets (-o option). * The driver/card doesn't support injection. * This attack sometimes fails against some APs. * The card is not on the same channel as the AP. * You're too far from the AP. Get closer, or lower the transmit rate.
root@kevin-laptop:/home/kevin# I'm using an eeepc 701 it has an Atheros card and does injection. I have also tried it with backrack 4 and it works perfectly (it falsely authenticates with the ap and decrypts the wep key) I just cant seem to get it to work on ubuntu 10.4. Could it be a kernel issue? I found out that there is a bug in the new(er) kernel(s). If you use an older kernel (I used 2.6.31-14 which can be found here) and it magically works.
I have a TP-Link Atheros-based USB card: TL-WN422G. It's listed widely as being compatible, but I'm baffled if I can make it work. I'm running an ndiswrapper (XP-64) driver, and that seems to be loaded and recognizing the hardware correctly. The system can scan and correctly identify our network, and other nearby ones, but when the WPA key is entered (correctly, I've triple checked), the "Secrets" windows just keeps popping up and no IP is acquired. I've installed and tried to configure it with wpa-supplicant, all to no avail.
I've attached below list of various outputs that I've looked at. Ubuntu 10.04.1 LTS (Kubuntu); 2.6.32-24-server x86_64 output of lsusb Bus 002 Device 002: ID 0040:073d Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 003: ID 0413:6029 Leadtek Research, Inc. Bus 001 Device 002: ID 0cf3:1006 Atheros Communications, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root .....
I'm running Lucid Lynx. When I go into synaptic package manager and try to take updates, it says it can't authenticate some of the packages, including for example linux-image 2.6.32-27-generic. What is up with this?
Today I've found out that I cannot authenticate and use my ubuntu 10.10 partition as it doesn't recognize my password! The password is correct, I also tried to change the username in "root" but nothing changes. When I write it, it shows for some istants a black screen with words in it (so quickly that it's not easy to read) and then it shows me again the form to access.
My wireless setup was working perfectly in 10.10 but after the upgrade to 11.04 all went wrong, i can see the device yes, and I can see the networks but when I try to connect it asks to reinput the password. And if I try with Wicd it says "bad password" the thing is, the password is the same i was using in 10.10 and it cant connect to an open network either. I am a bit new at all this, but as far as I know I was using p54 drivers in 10.10. in order to make the dongle work i hat to install "linux-firmware-nonfree"... tried to reinstall it, but the same result. Tried windows drivers too with ndiswrapper, and the same result again.
lsusb: Bus 001 Device 007: ID 06b9:0121 Alcatel Telecom SpeedTouch 121g Wireless Dongle
i recently switched to ubuntu 9.10 from win vista, i am having a problem... in ubuntu when ever i do any changes it asks me for my password, i know that its for my own PC's securiety but now i am really annoyed with this.
I installed a few media servers to stream something to my PS3 over the weekend, but now when trying to shutdown the computer, I'm asked to authenticate with a password since other users are still logged in. I installed quite a few programs over the weekend trying to get it to work, so I can't remove a specific one. Is there a way to see which daemons are logged in under a different session? Found it. It turned out to be mythtv.
however, until this morning I had only been using my wired connection with no problems but when I tried to connect to my home's WPA secured wireless network, it just would not connect. The network manager sees the network and when I click on it, a window pops up asking for authentication. I enter the passphrase, but still it will not connect. I'm using a Lenovo X61 LAPTOP (not tablet).
While running the command sudo apt-get upgrade I get this msg
"Failed to authenticate the following packages" AVISO: No se han podido autenticar los siguientes paquetes! libnautilus-extension1 libndesk-dbus1.0-cil libsoup2.4-1 libsoup-gnome2.4-1 libwebkit-1.0-common libwebkit-1.0-2 nautilus nautilus-data notify-osd Fixd
I use Ubuntu in my office NIS environment and I can't upgrade the whole network to LDAP right. I upgraded to 10.04 recently and reinstalled the NIS client and associated packages, among other things.
I have set up my /etc/nsswitch.conf file so that passwd, group and shadow all have "files nis", I'm bound to the correct NIS domain and I can do "ypcat -k passwd" or "ypcat -k hosts" just fine.
Problem is that I can't log on or su to any NIS user, I just get "authentication failure". I've tried the same usernames and passwords on Red Hat NIS clients on the same domain and they work fine.
However: <code> root@domainator:~# ldapaddgroup test >> 01/03/11 - 22:16 : Command : /usr/sbin/ldapaddgroup test ldap_bind: Invalid credentials (49) ldap_bind: Invalid credentials (49) Error adding group test to LDAP Error adding group test to LDAP </code>
Here's various parts of my /etc/ldapscripts/ldapscripts.conf: <code> SERVER="domainator" BINDDN="cn=root,dc=example,dc=home" BINDPWDFILE="/etc/ldapscripts/ldapscripts.passwd" SUFFIX="dc=example,dc=home" # Global suffix GSUFFIX="ou=Groups" # Groups ou (just under $SUFFIX) USUFFIX="ou=Users" # Users ou (just under $SUFFIX) MSUFFIX="ou=Computers" # Machines ou (just under $SUFFIX) GIDSTART="10000" # Group ID UIDSTART="10000" # User ID MIDSTART="20000" # Machine ID </code> /etc/ldapscripts/ldapscripts.passwd permissions are root:root, 0400 a
And I have quadruple checked my password is correct. Is there a way to print out debugging from ldapscripts so I know what commands it is generating?
I have a query regarding login to roundcube via dovecot ldap. I have installed and set up the openldap on Ubuntu Server 11.04 with the help of the following article [URL]. I have also installed Postfix, Dovecot, Dovecot-ldap and roundcube as the mail client. Then, I went on to test if I can login through roundcube. I received "login failed". I'm sure the dovecot is running fine as well as Postfix and openLDAP server. All I can find from the log was "auth(default) LDAP: Can't connect to server: localhost".
CLI upgrades and installations work just fine, as does Synaptic, etc.When I open Update Manager, it checks for new updates just fine, also, but when I click "Install," and the authentication window pops up, there is no field to enter the password. Closing out and retrying later, the authentication window pops up (again, without a password field), shakes back and forth rapidly, and disappears.The same thing happens with the software center. No error messages or anything with either of them, though.I've tried reinstalling the update manager from Synaptic, but to no avail.I'm running Ubuntu 10.10 64-bit (with the server kernel, because for some reason VirtualBox seemed to want it)