Re: [ubuntu-uk] LDAP server Invalid credentials
that might be it, I changed my domain name I'll try putting this in the basic and re-installing olcSuffix: dc=cyberkingsolutions,dc=co,dc=uk olcRootDN: cn=admin,dc=cyberkingsulutions,dc=co,dc=uk Jacob Mansfield Programmer -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] LDAP server Invalid credentials
On 19 January 2011 22:07, Jacob Mansfield cyberja...@gmail.com wrote: On 17/01/11 09:00, Byte Soup wrote: Hi Jacob, I have a small amount of experience using Sun's LDAP, see my comment below -Mark On 14 January 2011 22:31, Jacob Mansfield cyberja...@gmail.com wrote: I have been trying to set up an LDAP server for some time now. when I finally found an up-to-date tutorial at http://www.zarafa.com/wiki/index.php/Zarafa_LDAP_cn_config_How_To the first step of this has worked fine however when running the command ldapadd -x -D cn=admin,dc=cyberkingsolutions,dc=co,dc=up -W -f base.ldif try using the -w switch followed by a password. For example this is a command I used to import a schema ./ldapmodify -v -c -a -e /opt/schema_rejects -h localhost -p 390 -D cn=dmanager -w dmanager -f /path/to/schema/ldif-file I am prompted for a password. I enter the password I have used at all other points tn the tut and are met with a fail message: ldap_bind: Invalid credentials (49) when not entering a password at the prompt (just hitting return) I get ldap_bind: server is unwilling to perform (53) additional info: unauthenticated bind (DN with no password) disallowed. please help me get LDAP working, and thanks in advance (I know all of you awsome guys (and gals (or gales according to auto-correct)) will find the problem and help me fix it) -- Jacob Mansfield Programmer import disclaimer from email -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ I ran: root@megacat:~# ldapmodify -v -c -a -x -D cn=admin -w MyPassWord -f base.ldif and got: ldap_initialise( DEFAULT ) ldap_bind: Invalid Credentials (49) so it didn't work, unless I got it wrong When you installed LDAP you must have had to give the admin user name and password? Try specifying the host and port too? -Mark -- Jacob Mansfield Programmer import disclaimer from email -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] LDAP server Invalid credentials
when I installed LDAP it didn't ask for anything, and running dpkg-reconfigure didn't ask for those anyay, like I said I followed the tutorial at http://www.zarafa.com/wiki/index.php/Zarafa_LDAP_cn_config_How_To the first to set it up as it is the only one I could find that doesn't say to edit /etc/ldap/slapd.conf Jacob Mansfield Programmer On 20 January 2011 10:34, Byte Soup bytes...@gmail.com wrote: When you installed LDAP you must have had to give the admin user name and password? Try specifying the host and port too? -Mark -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] LDAP server Invalid credentials
On 20 January 2011 10:41, Jacob Mansfield cyberja...@gmail.com wrote: when I installed LDAP it didn't ask for anything, and running dpkg-reconfigure didn't ask for those anyay, like I said I followed the tutorial at http://www.zarafa.com/wiki/index.php/Zarafa_LDAP_cn_config_How_To the first to set it up as it is the only one I could find that doesn't say to edit /etc/ldap/slapd.conf When you created the file db.ldif you used the same hashed password or did you generate your own own one using slappasswd? And you used the 1234 password throughout previous steps as outlined in the tutorial? -Mark -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] LDAP server Invalid credentials
I used the same hashed password that I created using slappsswd it's not the same one that's in the tut Jacob Mansfield Programmer On 20 January 2011 11:04, Byte Soup bytes...@gmail.com wrote: On 20 January 2011 10:41, Jacob Mansfield cyberja...@gmail.com wrote: when I installed LDAP it didn't ask for anything, and running dpkg-reconfigure didn't ask for those anyay, like I said I followed the tutorial at http://www.zarafa.com/wiki/index.php/Zarafa_LDAP_cn_config_How_To the first to set it up as it is the only one I could find that doesn't say to edit /etc/ldap/slapd.conf When you created the file db.ldif you used the same hashed password or did you generate your own own one usingĀ slappasswd? And you used the 1234 password throughout previous steps as outlined in the tutorial? -Mark -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] LDAP server Invalid credentials
On 20 January 2011 14:33, Jacob Mansfield cyberja...@gmail.com wrote: I used the same hashed password that I created using slappsswd it's not the same one that's in the tut Jacob Mansfield Programmer Can you try ldapddd -v -x -D cn=admin,dc=cyberkingsolutions,dc=co,dc=up -w your password -f base.ldif So its just adding a -v and a -w (instead of the -W) switch from your original one as per the tutorial -Mark -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] LDAP server Invalid credentials
On 20/01/11 17:22, Byte Soup wrote: On 20 January 2011 14:33, Jacob Mansfield cyberja...@gmail.com mailto:cyberja...@gmail.com wrote: I used the same hashed password that I created using slappsswd it's not the same one that's in the tut Jacob Mansfield Programmer Can you try ldapddd -v -x -D cn=admin,dc=cyberkingsolutions,dc=co,dc=up -w your password -f base.ldif So its just adding a -v and a -w (instead of the -W) switch from your original one as per the tutorial -Mark same error as before. I have attached the previous ldiff I ran and the new one I'm trying to run -- Jacob Mansfield Programmer import disclaimer from email # Load dynamic backend modules dn: cn=module,cn=config objectClass: olcModuleList cn: module olcModulepath: /usr/lib/ldap olcModuleload: back_hdb # Database settings dn: olcDatabase=hdb,cn=config objectClass: olcDatabaseConfig objectClass: olcHdbConfig olcDatabase: {1}hdb olcSuffix: dc=cyberjacob,dc=co.cc olcDbDirectory: /var/lib/ldap olcRootDN: cn=admin,dc=cyberjacob,dc=co.cc olcRootPW: Jacob[0012] olcDbConfig: set_cachesize 0 2097152 0 olcDbConfig: set_lk_max_objects 1500 olcDbConfig: set_lk_max_locks 1500 olcDbConfig: set_lk_max_lockers 1500 olcDbIndex: objectClass eq olcLastMod: TRUE olcDbCheckpoint: 512 30 olcAccess: to attrs=userPassword by dn=cn=admin,dc=cyberjacob,dc=co.cc write by anonymous auth by self write by * none olcAccess: to attrs=shadowLastChange by self write by * read olcAccess: to dn.base= by * read olcAccess: to * by dn=cn=admin,dc=cyberjacob,dc=co.cc write by * read # Tree root dn: dc=cyberkingsolutions,dc=co,dc=uk objectClass: dcObject objectclass: organization o: cyberkingsolutions.co.uk dc: cyberkingsolutions description: Tree root # LDAP admin dn: cn=admin,dc=cyberkingsolutions,dc=co,dc=uk objectClass: simpleSecurityObject objectClass: organizationalRole cn: admin userPassword: {SSHA}E7fi/nIxNmoK4TwWWQ+qJtcgOhuJMhrw description: LDAP administrator 0x3621BF02.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] LDAP server Invalid credentials
Im trying my best to help here, but Im not sure how much more I can be of use, bear with me though :-) On 20 January 2011 17:51, Jacob Mansfield cyberja...@gmail.com wrote: On 20/01/11 17:22, Byte Soup wrote: On 20 January 2011 14:33, Jacob Mansfield cyberja...@gmail.com wrote: I used the same hashed password that I created using slappsswd it's not the same one that's in the tut Jacob Mansfield Programmer Can you try ldapddd -v -x -D cn=admin,dc=cyberkingsolutions,dc=co,dc=up -w your password -f base.ldif So its just adding a -v and a -w (instead of the -W) switch from your original one as per the tutorial -Mark same error as before. I have attached the previous ldiff I ran and the new one I'm trying to run I noticed in the example when they set up the minumum configuration they use this olcSuffix: dc=example,dc=com olcRootDN: cn=admin,dc=example,dc=com In your one you have olcSuffix: dc=cyberjacob,dc=co.cc olcRootDN: cn=admin,dc=cyberjacob,dc=co.cc Then in the example base.ldif they use # LDAP admin dn: cn=admin,dc=example,dc=com In your one # LDAP admin dn: cn=admin,dc=cyberkingsolutions,dc=co,dc=uk So your using a different dn. Is this a problem or is this correct? -- Jacob Mansfield Programmer import disclaimer from email -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] LDAP server Invalid credentials
On 19/01/11 00:22, Tony Travis wrote: On 18/01/11 16:40, Jacob Mansfield wrote: it's the new version of slapd in the repos, there isn't a /etc/ldap/slapd.conf Hi, Jacob. OK, but... Using slapd.conf It is possible to fall back to the old config method with a slapd.conf config file. The default init script of Ubuntu 10.04.1 does not support this. Below is a modified init script which can do both config methods: * if a file /etc/ldap/slapd.conf exists, slapd will start using the slapd.conf config file. * if this file does not exist, slapd will start using the new cn=config method. I'm running Ubuntu 8.04 LTS, with OpenLDAP 2.4.23 compiled from source: http://www.openldap.org/software/download/ Bye, Tony. so do I, but from the repos not manually compiled. -- Jacob Mansfield Programmer import disclaimer from email signature.asc Description: OpenPGP digital signature -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] LDAP server Invalid credentials
On 17/01/11 09:00, Byte Soup wrote: Hi Jacob, I have a small amount of experience using Sun's LDAP, see my comment below -Mark On 14 January 2011 22:31, Jacob Mansfield cyberja...@gmail.com mailto:cyberja...@gmail.com wrote: I have been trying to set up an LDAP server for some time now. when I finally found an up-to-date tutorial at http://www.zarafa.com/wiki/index.php/Zarafa_LDAP_cn_config_How_To the first step of this has worked fine however when running the command ldapadd -x -D cn=admin,dc=cyberkingsolutions,dc=co,dc=up -W -f base.ldif try using the -w switch followed by a password. For example this is a command I used to import a schema |./ldapmodify -v -c -a -e /opt/schema_rejects -h localhost -p 390 -D cn=dmanager -w dmanager -f /path/to/schema/ldif-file| I am prompted for a password. I enter the password I have used at all other points tn the tut and are met with a fail message: ldap_bind: Invalid credentials (49) when not entering a password at the prompt (just hitting return) I get ldap_bind: server is unwilling to perform (53) additional info: unauthenticated bind (DN with no password) disallowed. please help me get LDAP working, and thanks in advance (I know all of you awsome guys (and gals (or gales according to auto-correct)) will find the problem and help me fix it) -- Jacob Mansfield Programmer import disclaimer from email -- ubuntu-uk@lists.ubuntu.com mailto:ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ I ran: root@megacat:~# ldapmodify -v -c -a -x -D cn=admin -w MyPassWord -f base.ldif and got: ldap_initialise( DEFAULT ) ldap_bind: Invalid Credentials (49) so it didn't work, unless I got it wrong -- Jacob Mansfield Programmer import disclaimer from email signature.asc Description: OpenPGP digital signature -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] LDAP server Invalid credentials
On 14/01/11 22:31, Jacob Mansfield wrote: I have been trying to set up an LDAP server for some time now. when I finally found an up-to-date tutorial at http://www.zarafa.com/wiki/index.php/Zarafa_LDAP_cn_config_How_To the first step of this has worked fine however when running the command ldapadd -x -D cn=admin,dc=cyberkingsolutions,dc=co,dc=up -W -f base.ldif I am prompted for a password. I enter the password I have used at all other points tn the tut and are met with a fail message: ldap_bind: Invalid credentials (49) when not entering a password at the prompt (just hitting return) I get ldap_bind: server is unwilling to perform (53) additional info: unauthenticated bind (DN with no password) disallowed. [...] Hi, Jacob. I'm struggling my way up the LDAP learning curve too ;-) Look at the 'rootpw' settings in: /etc/ldap/slapd.conf There can be different passwords for read access and admin access (e.g. to update). You can create a new password hash using: slappasswd HTH, Tony. -- Dr. A.J.Travis, University of Aberdeen, Rowett Institute of Nutrition and Health, Greenburn Road, Bucksburn, Aberdeen AB21 9SB, Scotland, UK tel +44(0)1224 712751, fax +44(0)1224 716687, http://www.rowett.ac.uk mailto:a.tra...@abdn.ac.uk, http://bioinformatics.rri.sari.ac.uk -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] LDAP server Invalid credentials
On 18/01/11 16:40, Jacob Mansfield wrote: it's the new version of slapd in the repos, there isn't a /etc/ldap/slapd.conf Hi, Jacob. OK, but... Using slapd.conf It is possible to fall back to the old config method with a slapd.conf config file. The default init script of Ubuntu 10.04.1 does not support this. Below is a modified init script which can do both config methods: * if a file /etc/ldap/slapd.conf exists, slapd will start using the slapd.conf config file. * if this file does not exist, slapd will start using the new cn=config method. I'm running Ubuntu 8.04 LTS, with OpenLDAP 2.4.23 compiled from source: http://www.openldap.org/software/download/ Bye, Tony. -- Dr. A.J.Travis, University of Aberdeen, Rowett Institute of Nutrition and Health, Greenburn Road, Bucksburn, Aberdeen AB21 9SB, Scotland, UK tel +44(0)1224 712751, fax +44(0)1224 716687, http://www.rowett.ac.uk mailto:a.tra...@abdn.ac.uk, http://bioinformatics.rri.sari.ac.uk -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
[ubuntu-uk] LDAP server Invalid credentials
I have been trying to set up an LDAP server for some time now. when I finally found an up-to-date tutorial at http://www.zarafa.com/wiki/index.php/Zarafa_LDAP_cn_config_How_To the first step of this has worked fine however when running the command ldapadd -x -D cn=admin,dc=cyberkingsolutions,dc=co,dc=up -W -f base.ldif I am prompted for a password. I enter the password I have used at all other points tn the tut and are met with a fail message: ldap_bind: Invalid credentials (49) when not entering a password at the prompt (just hitting return) I get ldap_bind: server is unwilling to perform (53) additional info: unauthenticated bind (DN with no password) disallowed. please help me get LDAP working, and thanks in advance (I know all of you awsome guys (and gals (or gales according to auto-correct)) will find the problem and help me fix it) -- Jacob Mansfield Programmer import disclaimer from email signature.asc Description: OpenPGP digital signature -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/