29 October 2012

I got sticker from my Mentor Dr. H.S.Rai.

2 GNU & Linux
3 OpenIntents

We design and implement open intents and interfaces to make Android
mobile applications work more closely together. We provide samples and
free applications to demonstrate their usage.

4 ScummVM

ScummVM is a collection of game engine recreations. Originally
designed to play LucasArts adventure games.
It is written in C++ and SDL.
The VM in the name stands for virtual machine.

Games supported by ScummVM
1 LucasArts SCUMM games
2 Sierra On-Line games
3 Coktel Vision games
4 Adventuresoft/Horrorsoft games
5 Games by other developers

25 October 2012

while installing Exim mail server

2012-10-25 12:21:08 Exim configuration error in line 22 of /var/lib/exim4/config.autogenerated.tmp:
main option “domains” unknown
Invalid new configfile /var/lib/exim4/config.autogenerated.tmp, not installing
/var/lib/exim4/config.autogenerated.tmp to /var/lib/exim4/config.autogenerated

Install Sendmail mail server

# apt-get -y –force-yes -f install sendmail

meow@meow-Ideapad-Z570:~$ mail abc@gmail.com
Subject: abc

Declare variable in db.php which is constant in register page.

Selection of object class to be used.
I need specific class which have attributes uid and password
Finally, I found inetorgpeople which solves my problem.

Create Database
Make these field up
Id, firstname, lastname, email address ,password , contactno, gender, birthdate.

Create Registration form
Insert entry in mysql
mysql userid map to ldap userid.

23 October 2012

When I add attributes of an user entry. I define password attribute.
Like this

$info["cn"] = "yuvraj";
$info["sn"] = "singh";
$info["password"] = "singh";
$info["objectclass"] = "inetOrgPerson";

But it is not working.
Then I found how to define password attribute in ldap.
By using this
$info[“userpassword”] = “singh”;
I able to add password attribute now.

Create Form and add user input value to ldap

$info["cn"] = $_POST['cn'];
$info["sn"] = $_POST['sn'];
$info["userpassword"] = $_POST['password'];
$info["user"] = $_POST['username'];
$info["objectclass"] = "inetOrgPerson";


Register user to grant api service.
Registration information store in dbms.
and login information like username and password should be in ldap for authentication.
if above is the case then when user register username and password into dbms is map to ldap.

Take gmail id while register User then I email information of every message sent by user.

This information collect from user while register.
New password

22 October 2012

Problem solved of function ldap_add in php with the help of vigas. Now I am able to add entry in ldap.

The problem is that I add value which already added.
When I asked for vigas to help then he found my mistake.

Today I represent my work on ldap to present GD members.
Topics which I discuss
User and Group management through command line
Directory structure of ldap
Connectivity of ldap with php
Binding and adding entry through php in ldap.


Presentation was Ok Ok. I couldn’t make my interest into the presentation. I was also tired today.
I believe you can deliver a better presentation.
Also Same thing with me, I have lot of stuff to give presentation about, but I never made Presentation ( Slides ).

It was interesting presentation. I listened it carefully and came to know many things about LDAP. She explained LDAP with analogy of DBMS. But still I am not clear with distinguishName (dn). Explain with example.
Suggestion: Try to use chalk and board to explain your topic using diagrams, flow charts etc to develop interest of listeners.

18 October 2012

dn stands for distinguish name.
Its meaning is same as depict in it words. it is a string of relative
distinguish name.

Inder laptop. its dn is
dn= “uid=shahbaz,ou=laptop,dc=inderpreet,dc=singh”

dn are like postal addresses because they have a “most specific
component first” ordering. In a postal address like this:
288 basant Avenue
MA 02104

dn=”uid=geeta,ou=288 basant Avenue,dc=MA,dc=USA”

dc stands for domain components

LDAP server holds a subtree starting from a specific entry, e.g.
“dc=example,dc=com” and its children.

ldap username is dc
dn also contain dc part to distinguish userid.

17 October 2012

I try to add user in ldap through php, not working.

I use ldap_add function.

I follow this link

Not giving any error.
I check through phpldapadmin whether it is adding entry or not.
Even I am able to establish connection with ldap using php.

I can check connection is established or not by this
$ldapconn = ldap_connect($ldaphost)
or die(“Could not connect to LDAP server.”);

16 October 2012

I connect ldap with php.
Here is the link of file.

Everything was working fine up till night but when I came today LDAP giving error.
When I open phpldapadmin it gives following error.

E_WARNING: ldap_connect(): Too many open links (0)
PHP Debug Backtrace
File /usr/share/phpldapadmin/lib/functions.php (184)
Function error (a:5:{i:0;s:50:”E_WARNING: ldap_connect(): Too many…)
File /usr/share/phpldapadmin/lib/functions.php ()
Function app_error_handler (a:5:{i:0;i:2;i:1;s:39:”ldap_connect():
Too many op…)
File /usr/share/phpldapadmin/lib/ds_ldap.php (165)
Function ldap_connect (a:1:{i:0;s:9:”″;})
File /usr/share/phpldapadmin/lib/ds_ldap.php (278)
Function connect (a:3:{i:0;s:4:”user”;i:1;b:0;i:2;b:0;})
File /usr/share/phpldapadmin/htdocs/login.php (25)
Function login (a:3:{i:0;s:28:”cn=admin,dc=navdeep,dc=bagga”;i:1;s…)
File /usr/share/phpldapadmin/htdocs/cmd.php (59)
Function include (a:1:{i:0;s:40:”/usr/share/phpldapadmin/htdocs/logi…)

Problem solved.
Yesterday I change my php.ini file settings.
I recover it.

By default php.ini settings
ldap.max_links = “-1”
I changed to this
ldap.max_links = PHP_INI_SYSTEM
Now i set default

Now it is working.