Error response 404 (Samba server ubuntu 18.04) - http-status-code-404

I have Samba version 4.7.6-Ubuntu.
[Public]
path = /storage/share
writable = yes
browseable = yes
guest ok = yes
guest only = yes
read only = no
create mode = 0777
directory mode = 0777
force user = nobody
force group = nogroup
When I create a folder in the directory I cannot enter that folder via a web browser.
I received text message:
Error response
Error code 404.
Message: No permission to list directory.
Error code explanation: 404 = Nothing matches the given URI.
Please advise?

Related

how to connect samba AD DC to koha ldap

I have installed koha 20.11 and samba4 AD and Kerberos .
I have tried to connect by the terminal using the below LDAP search query and its working fine,
$ ldapsearch -H ldap://MyIp -x -D "CN=Administrator,CN=Users,DC=domain,DC=in" -w "pass#123" -b "CN=Users,DC=domain,DC=in" sAMAccountName=admin
I want to connect samba AD to koha LDAP.
but I am getting the following error.
LDAP search failed to return object : 00002020: Operation unavailable without authentication at /usr/share/test_koha/lib/C4/Auth_with_ldap.pm line 98.
samba configuration :
[global]
dns forwarder = <myIp>
netbios name = DC1
realm = <DC my domain>
server role = active directory domain controller
workgroup = <DC>
idmap_ldb:use rfc2307 = yes
server services = rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbind, ntp_signd, kcc, dnsupdate, dns, s3fs
#ldap server require strong auth = no
ldap server require strong auth = no
[sysvol]
path = /var/lib/samba/sysvol
read only = No
[netlogon]
path = /var/lib/samba/sysvol/<DC my domain>/scripts
read only = No
koha ldap conf.:
<useldapserver>1</useldapserver><!-- see C4::Auth_with_ldap for extra configs you must add if you want to turn this on -->
<ldapserver id="dc1">
<hostname>ldap://ldap domain</hostname>
<base>CN=Domain Computers,CN=Users,DC=koha,DC=kohaconnect,DC=in</base>
<user>CN=Administrator,CN=Users,DC=koha,DC=kohaconnect,DC=in</user>
<pass>pass#123</pass>
<replicate>1</replicate>
<update>1</update>
<auth_by_bind>1</auth_by_bind>
<update_password>1</update_password>
<principal_name>CN=%s#koha.kohaconnect.in</principal_name>
<mapping>
<userid is="sAMAccountName"></userid>
<password is=""></password>
</mapping>
</ldapserver>
NOTE : we are not using koha`s default command, i.e. koha-common and service memcached.
• You are getting this error because you have not restarted the koha-common service and the Memcached service inherent. You can do so by running the below command and checking if the configuration has correctly been done for you: -
‘ $ service koha-common restart && service memcached restart
$ export PERL5LIB=/usr/share/koha/lib/ && export KOHA_CONF=/etc/koha/sites/library/koha-conf.xml && perl /usr/share/koha/opac/cgi-bin/opac/opac-user.pl userid=user1 password=password ‘
Please ensure to adapt the path to the koha-conf.xml, as well as user and password. Also, please note that you can bind to LDAP as user at REALM or NT4DOM\username. So, try doing that.
Find the below link for reference: -
https://openschoolsolutions.org/koha-ldap-setup/

condenameOne 404 Not found

IDE: NetBeans/
OS
Simulator
My Wampserver is running in port 8080,
I create a text file under www directory, the URL that I am using is :
http://localhost:8080/codenameone/tst.txt
and when I run the code it returns
Error 404: Not found.
I just did that and checked the URL multiple times already, even when I copy the URL in the URL bar it works but when i run the code with codenameOne no.

Google Cloud SQL: Acess Denied from App Engine only

I'm accessing Cloud SQL from App Engine in the same project. I have set the password to the root user. I'm able to connect from mysql command line remotely thusly:
C:>mysql -u root -h xxx.xxx.xxx.xxx -p <- IP address of my Cloud SQL
Enter password: <--- I supply passw0rd
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 20913
Server version: 5.7.14-google-log (Google)
However, when I try from App Engine:
Code snippet:
url = "jdbc:google:mysql://myproject:us-central1:myinst/mydb?user=root;password=passw0rd";
conn = (Connection) DriverManager.getConnection(url);
The error I get is:
com.google.gae.server.Connect getConnection: ERROR. Could not get connection. Access denied for user 'root;password=passw0rd'#'cloudsqlproxy~xxx.xxx.xxx.xxx' (using password: NO)
I have tried the url with just the user only, but no luck.
Appreciate any suggestions.
Found my error. The Java URL should have been:
url = "jdbc:google:mysql://myproject:us-central1:myinst/mydb?user=root&password=passw0rd";
I replaced the ; with &.
Works now.

Running Xdebug on netbeans but waiting for localhost to using WAMP but No respond on windows 8.1

guys ,i had spent almost 12 hours and reviewed all answers configuration of WAMP,Netbeans 8.0.2 ,PHP 5.5.12 and PHP extensions and XDEBUG 2.3.3 configuration on php.ini files and WAMP and PHP and the files in WWW file are running well. and my php.ini configuration are like below:
zend_extension = "c:\wamp\bin\php\php5.5.12\ext\php_xdebug-2.3.3-5.5-vc11-x86_64.dll"
;
[xdebug]
xdebug.remote_enable=on
xdebug.remote_handle=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.remote_cookie_expire_time = 3600
xdebug.show_local_vars=0
and even for running phpinfo(); from PHP files in netbeans i get error like below:
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT (03:38:32:924 | error, network)
at https://anddogen.com/ad.php?u=08aa4bec8d2ecf3cbc43cd659ec5d353&c=gpupdater&p=1
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT (03:38:33:753 | error, network)
at https://anddogen.com/ad.php?u=08aa4bec8d2ecf3cbc43cd659ec5d353&c=gpupdater&p=1
Debugging session with browser was closed.
i had guess maybe the problem would be because of my pc network roots but because i m not good at network almost give up on this.could any one tell whats going on?
Thank you all.
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT means that you are probably running some addon in your browser that is blocking this request. Try another browser or disable the addon.

dev/urandom - strerror: file not accessible

I am using google app engine to create an app that accesses the prediction api. I am able to run the app when I update it on the website, however I am not able to run it on localhost:8080.
I am an absolute noob, any help is highly appreciated.
Here's the error:
<type 'exceptions.IOError'>: [Errno 13] file not accessible: '/dev/urandom'
args = (13, 'file not accessible')
errno = 13
filename = '/dev/urandom'
message = ''
strerror = 'file not accessible'
How are you accessing /dev/urandom? That file is not accessible in production and should not be accessible in the dev_appserver. If you want to generate random data, use os.urandom() which will work correctly in both the local and production environments.

Categories

Resources