Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Directory (http://www.linux-archive.org/fedora-directory/)
-   -   Please help me to build my ldif file . (http://www.linux-archive.org/fedora-directory/690582-please-help-me-build-my-ldif-file.html)

Fosiul Alam 08-04-2012 04:47 PM

Please help me to build my ldif file .
 
Hi Thanks for reply
If you see the search
ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
"ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000

its returns fine. Which means the authentication is fine
But dont know how to crete the ldif file for that user.

Thanks

On Sat, Aug 4, 2012 at 5:00 PM, Grzegorz Dwornicki <gd1100@gmail.com> wrote:
> It looks like you are using wrong directory manager DN. Maybe you have
> administrator named just "cn=Directory Manager"?
>
> Greg.
>
> Send from htc desire z
>
> 04-08-2012 15:52, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>>
>> Hi for bellow search i get this :
>>
>>
>> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>> # extended LDIF
>> #
>> # LDAPv3
>> # base <ou=users,l=uk,dc=fosiul,dc=lan> with scope subtree
>> # filter: uidNumber=1000
>> # requesting: ALL
>> #
>>
>> # falam, users, UK, fosiul.lan
>> dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan
>> givenName: Fosiul
>> sn: Alam
>> loginShell: /bin/bash
>> uidNumber: 1000
>> gidNumber: 6000
>> objectClass: top
>> objectClass: person
>> objectClass: organizationalPerson
>> objectClass: inetorgperson
>> objectClass: posixAccount
>> uid: falam
>> cn: Fosiul Alam
>> homeDirectory: /home/falam
>> userPassword:: e1NTSEF9MSG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=
>> =
>>
>> # search result
>> search: 3
>> result: 0 Success
>>
>> # numResponses: 2
>> # numEntries: 1
>>
>> NOw i am trying to create ldif file so that i can add entry manually .
>>
>> -----------------------------------------------------------------------------------------
>>
>> adding a new user :
>>
>> dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan
>> objectClass: top
>> objectClass: person
>> objectClass: organizationalPerson
>> objectClass: inetorgperson
>> objectClass: posixAccount
>> cn: Yafali Alam
>> uid: salam
>> uidNumber: 1001
>> gidNumber: 6000
>> homeDirectory: /home/yalam
>> loginShell: /bin/bash
>> gecos: Yafali Alam,Karate Instructor,Room 37A,435-555-555,801-555-555
>> userPassword: {crypt}x
>> shadowLastChange: 0
>> shadowMax: 0
>> shadowWarning: 0
>>
>> but wh en i do this :
>> =======================================
>> ldapadd -xZZ -D "cn=Directory Manager,l=UK,dc=fosiul,dc=lan" -w
>> testtest -f add.ldif
>> I get bellow error :
>>
>> dap_bind: No such object (32)
>> matched DN: l=uk,dc=fosiul,dc=lan
>>
>> Can any one please help me to build the ldif ??
>> Thanks
>> --
>> 389 users mailing list
>> 389-users@lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>
>
> --
> 389 users mailing list
> 389-users@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users



--
Regards
Fosiul Alam
07877100621
http://www.fosiul.co.uk
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Grzegorz Dwornicki 08-04-2012 05:27 PM

Please help me to build my ldif file .
 
wiadomosc wyslana z htc desire z

04-08-2012 18:47, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
Hi Thanks for reply

If you see the search

ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b

"ou=users,l=uk,dc=fosiul,dc=lan" *uidNumber=1000



its returns fine. Which means the authentication is fine

But dont know *how to crete the ldif file for that user.



Thanks



On Sat, Aug 4, 2012 at 5:00 PM, Grzegorz Dwornicki <gd1100@gmail.com> wrote:

> It looks like you are using wrong directory manager DN. Maybe you have

> administrator named just "cn=Directory Manager"?

>

> Greg.

>

> Send from htc desire z

>

> 04-08-2012 15:52, "Fosiul Alam" <fosiul@gmail.com> napisał(a):

>>

>> Hi for bellow search i get this :

>>

>>

>> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b

>> "ou=users,l=uk,dc=fosiul,dc=lan" *uidNumber=1000

>> # extended LDIF

>> #

>> # LDAPv3

>> # base <ou=users,l=uk,dc=fosiul,dc=lan> with scope subtree

>> # filter: uidNumber=1000

>> # requesting: ALL

>> #

>>

>> # falam, users, UK, fosiul.lan

>> dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan

>> givenName: Fosiul

>> sn: Alam

>> loginShell: /bin/bash

>> uidNumber: 1000

>> gidNumber: 6000

>> objectClass: top

>> objectClass: person

>> objectClass: organizationalPerson

>> objectClass: inetorgperson

>> objectClass: posixAccount

>> uid: falam

>> cn: Fosiul Alam

>> homeDirectory: /home/falam

>> userPassword:: e1NTSEF9MSG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=

>> *=

>>

>> # search result

>> search: 3

>> result: 0 Success

>>

>> # numResponses: 2

>> # numEntries: 1

>>

>> NOw i am trying to create ldif file so that i can add entry manually .

>>

>> -----------------------------------------------------------------------------------------

>>

>> adding a new user :

>>

>> dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan

>> objectClass: top

>> objectClass: person

>> objectClass: organizationalPerson

>> objectClass: inetorgperson

>> objectClass: posixAccount

>> cn: Yafali Alam

>> uid: salam

>> uidNumber: 1001

>> gidNumber: 6000

>> homeDirectory: /home/yalam

>> loginShell: /bin/bash

>> gecos: Yafali Alam,Karate Instructor,Room 37A,435-555-555,801-555-555

>> userPassword: {crypt}x

>> shadowLastChange: 0

>> shadowMax: 0

>> shadowWarning: 0

>>

>> but wh en i do this :

>> =======================================

>> ldapadd -xZZ *-D "cn=Directory Manager,l=UK,dc=fosiul,dc=lan" -w

>> testtest -f add.ldif

>> I get bellow error :

>>

>> dap_bind: No such object (32)

>> * * * * matched DN: l=uk,dc=fosiul,dc=lan

>>

>> Can any one please help me to build the ldif ??

>> Thanks

>> --

>> 389 users mailing list

>> 389-users@lists.fedoraproject.org

>> https://admin.fedoraproject.org/mailman/listinfo/389-users

>

>

> --

> 389 users mailing list

> 389-users@lists.fedoraproject.org

> https://admin.fedoraproject.org/mailman/listinfo/389-users







--

Regards

Fosiul Alam

07877100621

http://www.fosiul.co.uk

--

389 users mailing list

389-users@lists.fedoraproject.org

https://admin.fedoraproject.org/mailman/listinfo/389-users
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Grzegorz Dwornicki 08-04-2012 05:31 PM

Please help me to build my ldif file .
 
Sorry for empty message.


You are close. When you use "cn=Directory Manager" for ldapsearch, then you use same "cn=Directory Manager" as -D paameter for ldapadd aswell not "cn=Directory Manager,l=UK,dc=fasiul,dc=lan" like you used in ldapadd.



Greg.


Send from htc desire z

04-08-2012 19:27, "Grzegorz Dwornicki" <gd1100@gmail.com> napisał(a):




wiadomosc wyslana z htc desire z

04-08-2012 18:47, "Fosiul Alam" <fosiul@gmail.com> napisał(a):

Hi Thanks for reply

If you see the search

ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b

"ou=users,l=uk,dc=fosiul,dc=lan" *uidNumber=1000



its returns fine. Which means the authentication is fine

But dont know *how to crete the ldif file for that user.



Thanks



On Sat, Aug 4, 2012 at 5:00 PM, Grzegorz Dwornicki <gd1100@gmail.com> wrote:

> It looks like you are using wrong directory manager DN. Maybe you have

> administrator named just "cn=Directory Manager"?

>

> Greg.

>

> Send from htc desire z

>

> 04-08-2012 15:52, "Fosiul Alam" <fosiul@gmail.com> napisał(a):

>>

>> Hi for bellow search i get this :

>>

>>

>> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b

>> "ou=users,l=uk,dc=fosiul,dc=lan" *uidNumber=1000

>> # extended LDIF

>> #

>> # LDAPv3

>> # base <ou=users,l=uk,dc=fosiul,dc=lan> with scope subtree

>> # filter: uidNumber=1000

>> # requesting: ALL

>> #

>>

>> # falam, users, UK, fosiul.lan

>> dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan

>> givenName: Fosiul

>> sn: Alam

>> loginShell: /bin/bash

>> uidNumber: 1000

>> gidNumber: 6000

>> objectClass: top

>> objectClass: person

>> objectClass: organizationalPerson

>> objectClass: inetorgperson

>> objectClass: posixAccount

>> uid: falam

>> cn: Fosiul Alam

>> homeDirectory: /home/falam

>> userPassword:: e1NTSEF9MSG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=

>> *=

>>

>> # search result

>> search: 3

>> result: 0 Success

>>

>> # numResponses: 2

>> # numEntries: 1

>>

>> NOw i am trying to create ldif file so that i can add entry manually .

>>

>> -----------------------------------------------------------------------------------------

>>

>> adding a new user :

>>

>> dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan

>> objectClass: top

>> objectClass: person

>> objectClass: organizationalPerson

>> objectClass: inetorgperson

>> objectClass: posixAccount

>> cn: Yafali Alam

>> uid: salam

>> uidNumber: 1001

>> gidNumber: 6000

>> homeDirectory: /home/yalam

>> loginShell: /bin/bash

>> gecos: Yafali Alam,Karate Instructor,Room 37A,435-555-555,801-555-555

>> userPassword: {crypt}x

>> shadowLastChange: 0

>> shadowMax: 0

>> shadowWarning: 0

>>

>> but wh en i do this :

>> =======================================

>> ldapadd -xZZ *-D "cn=Directory Manager,l=UK,dc=fosiul,dc=lan" -w

>> testtest -f add.ldif

>> I get bellow error :

>>

>> dap_bind: No such object (32)

>> * * * * matched DN: l=uk,dc=fosiul,dc=lan

>>

>> Can any one please help me to build the ldif ??

>> Thanks

>> --

>> 389 users mailing list

>> 389-users@lists.fedoraproject.org

>> https://admin.fedoraproject.org/mailman/listinfo/389-users

>

>

> --

> 389 users mailing list

> 389-users@lists.fedoraproject.org

> https://admin.fedoraproject.org/mailman/listinfo/389-users







--

Regards

Fosiul Alam

07877100621

http://www.fosiul.co.uk

--

389 users mailing list

389-users@lists.fedoraproject.org

https://admin.fedoraproject.org/mailman/listinfo/389-users

--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Fosiul Alam 08-04-2012 05:34 PM

Please help me to build my ldif file .
 
Sorry What are you saying ???
Did not understand


On Sat, Aug 4, 2012 at 6:27 PM, Grzegorz Dwornicki <gd1100@gmail.com> wrote:
> wiadomosc wyslana z htc desire z
>
> 04-08-2012 18:47, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>
>> Hi Thanks for reply
>> If you see the search
>> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>>
>> its returns fine. Which means the authentication is fine
>> But dont know how to crete the ldif file for that user.
>>
>> Thanks
>>
>> On Sat, Aug 4, 2012 at 5:00 PM, Grzegorz Dwornicki <gd1100@gmail.com>
>> wrote:
>> > It looks like you are using wrong directory manager DN. Maybe you have
>> > administrator named just "cn=Directory Manager"?
>> >
>> > Greg.
>> >
>> > Send from htc desire z
>> >
>> > 04-08-2012 15:52, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>> >>
>> >> Hi for bellow search i get this :
>> >>
>> >>
>> >> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>> >> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>> >> # extended LDIF
>> >> #
>> >> # LDAPv3
>> >> # base <ou=users,l=uk,dc=fosiul,dc=lan> with scope subtree
>> >> # filter: uidNumber=1000
>> >> # requesting: ALL
>> >> #
>> >>
>> >> # falam, users, UK, fosiul.lan
>> >> dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan
>> >> givenName: Fosiul
>> >> sn: Alam
>> >> loginShell: /bin/bash
>> >> uidNumber: 1000
>> >> gidNumber: 6000
>> >> objectClass: top
>> >> objectClass: person
>> >> objectClass: organizationalPerson
>> >> objectClass: inetorgperson
>> >> objectClass: posixAccount
>> >> uid: falam
>> >> cn: Fosiul Alam
>> >> homeDirectory: /home/falam
>> >> userPassword:: e1NTSEF9MSG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=
>> >> =
>> >>
>> >> # search result
>> >> search: 3
>> >> result: 0 Success
>> >>
>> >> # numResponses: 2
>> >> # numEntries: 1
>> >>
>> >> NOw i am trying to create ldif file so that i can add entry manually .
>> >>
>> >>
>> >> -----------------------------------------------------------------------------------------
>> >>
>> >> adding a new user :
>> >>
>> >> dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan
>> >> objectClass: top
>> >> objectClass: person
>> >> objectClass: organizationalPerson
>> >> objectClass: inetorgperson
>> >> objectClass: posixAccount
>> >> cn: Yafali Alam
>> >> uid: salam
>> >> uidNumber: 1001
>> >> gidNumber: 6000
>> >> homeDirectory: /home/yalam
>> >> loginShell: /bin/bash
>> >> gecos: Yafali Alam,Karate Instructor,Room 37A,435-555-555,801-555-555
>> >> userPassword: {crypt}x
>> >> shadowLastChange: 0
>> >> shadowMax: 0
>> >> shadowWarning: 0
>> >>
>> >> but wh en i do this :
>> >> =======================================
>> >> ldapadd -xZZ -D "cn=Directory Manager,l=UK,dc=fosiul,dc=lan" -w
>> >> testtest -f add.ldif
>> >> I get bellow error :
>> >>
>> >> dap_bind: No such object (32)
>> >> matched DN: l=uk,dc=fosiul,dc=lan
>> >>
>> >> Can any one please help me to build the ldif ??
>> >> Thanks
>> >> --
>> >> 389 users mailing list
>> >> 389-users@lists.fedoraproject.org
>> >> https://admin.fedoraproject.org/mailman/listinfo/389-users
>> >
>> >
>> > --
>> > 389 users mailing list
>> > 389-users@lists.fedoraproject.org
>> > https://admin.fedoraproject.org/mailman/listinfo/389-users
>>
>>
>>
>> --
>> Regards
>> Fosiul Alam
>> 07877100621
>> http://www.fosiul.co.uk
>> --
>> 389 users mailing list
>> 389-users@lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>
>
> --
> 389 users mailing list
> 389-users@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users



--
Regards
Fosiul Alam
07877100621
http://www.fosiul.co.uk
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Fosiul Alam 08-04-2012 05:41 PM

Please help me to build my ldif file .
 
Hi thanks for reply.
can you please explain litlte bit
I am still confused.
Thanks



On Sat, Aug 4, 2012 at 6:31 PM, Grzegorz Dwornicki <gd1100@gmail.com> wrote:
> Sorry for empty message.
>
> You are close. When you use "cn=Directory Manager" for ldapsearch, then you
> use same "cn=Directory Manager" as -D paameter for ldapadd aswell not
> "cn=Directory Manager,l=UK,dc=fasiul,dc=lan" like you used in ldapadd.
>
> Greg.
>
> Send from htc desire z
>
> 04-08-2012 19:27, "Grzegorz Dwornicki" <gd1100@gmail.com> napisał(a):
>
>> wiadomosc wyslana z htc desire z
>>
>> 04-08-2012 18:47, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>>>
>>> Hi Thanks for reply
>>> If you see the search
>>> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>>> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>>>
>>> its returns fine. Which means the authentication is fine
>>> But dont know how to crete the ldif file for that user.
>>>
>>> Thanks
>>>
>>> On Sat, Aug 4, 2012 at 5:00 PM, Grzegorz Dwornicki <gd1100@gmail.com>
>>> wrote:
>>> > It looks like you are using wrong directory manager DN. Maybe you have
>>> > administrator named just "cn=Directory Manager"?
>>> >
>>> > Greg.
>>> >
>>> > Send from htc desire z
>>> >
>>> > 04-08-2012 15:52, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>>> >>
>>> >> Hi for bellow search i get this :
>>> >>
>>> >>
>>> >> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>>> >> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>>> >> # extended LDIF
>>> >> #
>>> >> # LDAPv3
>>> >> # base <ou=users,l=uk,dc=fosiul,dc=lan> with scope subtree
>>> >> # filter: uidNumber=1000
>>> >> # requesting: ALL
>>> >> #
>>> >>
>>> >> # falam, users, UK, fosiul.lan
>>> >> dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan
>>> >> givenName: Fosiul
>>> >> sn: Alam
>>> >> loginShell: /bin/bash
>>> >> uidNumber: 1000
>>> >> gidNumber: 6000
>>> >> objectClass: top
>>> >> objectClass: person
>>> >> objectClass: organizationalPerson
>>> >> objectClass: inetorgperson
>>> >> objectClass: posixAccount
>>> >> uid: falam
>>> >> cn: Fosiul Alam
>>> >> homeDirectory: /home/falam
>>> >> userPassword:: e1NTSEF9MSG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=
>>> >> =
>>> >>
>>> >> # search result
>>> >> search: 3
>>> >> result: 0 Success
>>> >>
>>> >> # numResponses: 2
>>> >> # numEntries: 1
>>> >>
>>> >> NOw i am trying to create ldif file so that i can add entry manually .
>>> >>
>>> >>
>>> >> -----------------------------------------------------------------------------------------
>>> >>
>>> >> adding a new user :
>>> >>
>>> >> dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan
>>> >> objectClass: top
>>> >> objectClass: person
>>> >> objectClass: organizationalPerson
>>> >> objectClass: inetorgperson
>>> >> objectClass: posixAccount
>>> >> cn: Yafali Alam
>>> >> uid: salam
>>> >> uidNumber: 1001
>>> >> gidNumber: 6000
>>> >> homeDirectory: /home/yalam
>>> >> loginShell: /bin/bash
>>> >> gecos: Yafali Alam,Karate Instructor,Room 37A,435-555-555,801-555-555
>>> >> userPassword: {crypt}x
>>> >> shadowLastChange: 0
>>> >> shadowMax: 0
>>> >> shadowWarning: 0
>>> >>
>>> >> but wh en i do this :
>>> >> =======================================
>>> >> ldapadd -xZZ -D "cn=Directory Manager,l=UK,dc=fosiul,dc=lan" -w
>>> >> testtest -f add.ldif
>>> >> I get bellow error :
>>> >>
>>> >> dap_bind: No such object (32)
>>> >> matched DN: l=uk,dc=fosiul,dc=lan
>>> >>
>>> >> Can any one please help me to build the ldif ??
>>> >> Thanks
>>> >> --
>>> >> 389 users mailing list
>>> >> 389-users@lists.fedoraproject.org
>>> >> https://admin.fedoraproject.org/mailman/listinfo/389-users
>>> >
>>> >
>>> > --
>>> > 389 users mailing list
>>> > 389-users@lists.fedoraproject.org
>>> > https://admin.fedoraproject.org/mailman/listinfo/389-users
>>>
>>>
>>>
>>> --
>>> Regards
>>> Fosiul Alam
>>> 07877100621
>>> http://www.fosiul.co.uk
>>> --
>>> 389 users mailing list
>>> 389-users@lists.fedoraproject.org
>>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>
>
> --
> 389 users mailing list
> 389-users@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users



--
Regards
Fosiul Alam
07877100621
http://www.fosiul.co.uk
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Grzegorz Dwornicki 08-04-2012 06:05 PM

Please help me to build my ldif file .
 
Look what account you typed in ldapsearch and ldapadd. Both should be "cn=Directory Manager". But in ldapadd you use other perhaps non existing account.


Greg.


Send from htc desire z

04-08-2012 19:41, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
Hi thanks for reply.

can you please explain litlte bit

I am still confused.

Thanks







On Sat, Aug 4, 2012 at 6:31 PM, Grzegorz Dwornicki <gd1100@gmail.com> wrote:

> Sorry for empty message.

>

> You are close. When you use "cn=Directory Manager" for ldapsearch, then you

> use same "cn=Directory Manager" as -D paameter for ldapadd aswell not

> "cn=Directory Manager,l=UK,dc=fasiul,dc=lan" like you used in ldapadd.

>

> Greg.

>

> Send from htc desire z

>

> 04-08-2012 19:27, "Grzegorz Dwornicki" <gd1100@gmail.com> napisał(a):

>

>> wiadomosc wyslana z htc desire z

>>

>> 04-08-2012 18:47, "Fosiul Alam" <fosiul@gmail.com> napisał(a):

>>>

>>> Hi Thanks for reply

>>> If you see the search

>>> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b

>>> "ou=users,l=uk,dc=fosiul,dc=lan" *uidNumber=1000

>>>

>>> its returns fine. Which means the authentication is fine

>>> But dont know *how to crete the ldif file for that user.

>>>

>>> Thanks

>>>

>>> On Sat, Aug 4, 2012 at 5:00 PM, Grzegorz Dwornicki <gd1100@gmail.com>

>>> wrote:

>>> > It looks like you are using wrong directory manager DN. Maybe you have

>>> > administrator named just "cn=Directory Manager"?

>>> >

>>> > Greg.

>>> >

>>> > Send from htc desire z

>>> >

>>> > 04-08-2012 15:52, "Fosiul Alam" <fosiul@gmail.com> napisał(a):

>>> >>

>>> >> Hi for bellow search i get this :

>>> >>

>>> >>

>>> >> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b

>>> >> "ou=users,l=uk,dc=fosiul,dc=lan" *uidNumber=1000

>>> >> # extended LDIF

>>> >> #

>>> >> # LDAPv3

>>> >> # base <ou=users,l=uk,dc=fosiul,dc=lan> with scope subtree

>>> >> # filter: uidNumber=1000

>>> >> # requesting: ALL

>>> >> #

>>> >>

>>> >> # falam, users, UK, fosiul.lan

>>> >> dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan

>>> >> givenName: Fosiul

>>> >> sn: Alam

>>> >> loginShell: /bin/bash

>>> >> uidNumber: 1000

>>> >> gidNumber: 6000

>>> >> objectClass: top

>>> >> objectClass: person

>>> >> objectClass: organizationalPerson

>>> >> objectClass: inetorgperson

>>> >> objectClass: posixAccount

>>> >> uid: falam

>>> >> cn: Fosiul Alam

>>> >> homeDirectory: /home/falam

>>> >> userPassword:: e1NTSEF9MSG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=

>>> >> *=

>>> >>

>>> >> # search result

>>> >> search: 3

>>> >> result: 0 Success

>>> >>

>>> >> # numResponses: 2

>>> >> # numEntries: 1

>>> >>

>>> >> NOw i am trying to create ldif file so that i can add entry manually .

>>> >>

>>> >>

>>> >> -----------------------------------------------------------------------------------------

>>> >>

>>> >> adding a new user :

>>> >>

>>> >> dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan

>>> >> objectClass: top

>>> >> objectClass: person

>>> >> objectClass: organizationalPerson

>>> >> objectClass: inetorgperson

>>> >> objectClass: posixAccount

>>> >> cn: Yafali Alam

>>> >> uid: salam

>>> >> uidNumber: 1001

>>> >> gidNumber: 6000

>>> >> homeDirectory: /home/yalam

>>> >> loginShell: /bin/bash

>>> >> gecos: Yafali Alam,Karate Instructor,Room 37A,435-555-555,801-555-555

>>> >> userPassword: {crypt}x

>>> >> shadowLastChange: 0

>>> >> shadowMax: 0

>>> >> shadowWarning: 0

>>> >>

>>> >> but wh en i do this :

>>> >> =======================================

>>> >> ldapadd -xZZ *-D "cn=Directory Manager,l=UK,dc=fosiul,dc=lan" -w

>>> >> testtest -f add.ldif

>>> >> I get bellow error :

>>> >>

>>> >> dap_bind: No such object (32)

>>> >> * * * * matched DN: l=uk,dc=fosiul,dc=lan

>>> >>

>>> >> Can any one please help me to build the ldif ??

>>> >> Thanks

>>> >> --

>>> >> 389 users mailing list

>>> >> 389-users@lists.fedoraproject.org

>>> >> https://admin.fedoraproject.org/mailman/listinfo/389-users

>>> >

>>> >

>>> > --

>>> > 389 users mailing list

>>> > 389-users@lists.fedoraproject.org

>>> > https://admin.fedoraproject.org/mailman/listinfo/389-users

>>>

>>>

>>>

>>> --

>>> Regards

>>> Fosiul Alam

>>> 07877100621

>>> http://www.fosiul.co.uk

>>> --

>>> 389 users mailing list

>>> 389-users@lists.fedoraproject.org

>>> https://admin.fedoraproject.org/mailman/listinfo/389-users

>

>

> --

> 389 users mailing list

> 389-users@lists.fedoraproject.org

> https://admin.fedoraproject.org/mailman/listinfo/389-users







--

Regards

Fosiul Alam

07877100621

http://www.fosiul.co.uk

--

389 users mailing list

389-users@lists.fedoraproject.org

https://admin.fedoraproject.org/mailman/listinfo/389-users
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Fosiul Alam 08-04-2012 06:20 PM

Please help me to build my ldif file .
 
My ldap serch (This works fine):

ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
"ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000

I have tried 2 way :

ldapadd -xZZ -D "cn=Directory Manager,l=uk,dc=fosiul,dc=lan" -w
testtest -f add.ldif
ldap_bind: No such object (32)
matched DN: l=uk,dc=fosiul,dc=lan

ldapadd -xZZ -D "cn=Directory Manager,l=uk,dc=fosiul,dc=lan" -w
testtest -f add.ldif
ldap_bind: No such object (32)
matched DN: l=uk,dc=fosiul,dc=lan


On Sat, Aug 4, 2012 at 7:05 PM, Grzegorz Dwornicki <gd1100@gmail.com> wrote:
> Look what account you typed in ldapsearch and ldapadd. Both should be
> "cn=Directory Manager". But in ldapadd you use other perhaps non existing
> account.
>
> Greg.
>
> Send from htc desire z
>
> 04-08-2012 19:41, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>
>> Hi thanks for reply.
>> can you please explain litlte bit
>> I am still confused.
>> Thanks
>>
>>
>>
>> On Sat, Aug 4, 2012 at 6:31 PM, Grzegorz Dwornicki <gd1100@gmail.com>
>> wrote:
>> > Sorry for empty message.
>> >
>> > You are close. When you use "cn=Directory Manager" for ldapsearch, then
>> > you
>> > use same "cn=Directory Manager" as -D paameter for ldapadd aswell not
>> > "cn=Directory Manager,l=UK,dc=fasiul,dc=lan" like you used in ldapadd.
>> >
>> > Greg.
>> >
>> > Send from htc desire z
>> >
>> > 04-08-2012 19:27, "Grzegorz Dwornicki" <gd1100@gmail.com> napisał(a):
>> >
>> >> wiadomosc wyslana z htc desire z
>> >>
>> >> 04-08-2012 18:47, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>> >>>
>> >>> Hi Thanks for reply
>> >>> If you see the search
>> >>> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>> >>> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>> >>>
>> >>> its returns fine. Which means the authentication is fine
>> >>> But dont know how to crete the ldif file for that user.
>> >>>
>> >>> Thanks
>> >>>
>> >>> On Sat, Aug 4, 2012 at 5:00 PM, Grzegorz Dwornicki <gd1100@gmail.com>
>> >>> wrote:
>> >>> > It looks like you are using wrong directory manager DN. Maybe you
>> >>> > have
>> >>> > administrator named just "cn=Directory Manager"?
>> >>> >
>> >>> > Greg.
>> >>> >
>> >>> > Send from htc desire z
>> >>> >
>> >>> > 04-08-2012 15:52, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>> >>> >>
>> >>> >> Hi for bellow search i get this :
>> >>> >>
>> >>> >>
>> >>> >> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>> >>> >> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>> >>> >> # extended LDIF
>> >>> >> #
>> >>> >> # LDAPv3
>> >>> >> # base <ou=users,l=uk,dc=fosiul,dc=lan> with scope subtree
>> >>> >> # filter: uidNumber=1000
>> >>> >> # requesting: ALL
>> >>> >> #
>> >>> >>
>> >>> >> # falam, users, UK, fosiul.lan
>> >>> >> dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan
>> >>> >> givenName: Fosiul
>> >>> >> sn: Alam
>> >>> >> loginShell: /bin/bash
>> >>> >> uidNumber: 1000
>> >>> >> gidNumber: 6000
>> >>> >> objectClass: top
>> >>> >> objectClass: person
>> >>> >> objectClass: organizationalPerson
>> >>> >> objectClass: inetorgperson
>> >>> >> objectClass: posixAccount
>> >>> >> uid: falam
>> >>> >> cn: Fosiul Alam
>> >>> >> homeDirectory: /home/falam
>> >>> >> userPassword:: e1NTSEF9MSG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=
>> >>> >> =
>> >>> >>
>> >>> >> # search result
>> >>> >> search: 3
>> >>> >> result: 0 Success
>> >>> >>
>> >>> >> # numResponses: 2
>> >>> >> # numEntries: 1
>> >>> >>
>> >>> >> NOw i am trying to create ldif file so that i can add entry
>> >>> >> manually .
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> -----------------------------------------------------------------------------------------
>> >>> >>
>> >>> >> adding a new user :
>> >>> >>
>> >>> >> dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan
>> >>> >> objectClass: top
>> >>> >> objectClass: person
>> >>> >> objectClass: organizationalPerson
>> >>> >> objectClass: inetorgperson
>> >>> >> objectClass: posixAccount
>> >>> >> cn: Yafali Alam
>> >>> >> uid: salam
>> >>> >> uidNumber: 1001
>> >>> >> gidNumber: 6000
>> >>> >> homeDirectory: /home/yalam
>> >>> >> loginShell: /bin/bash
>> >>> >> gecos: Yafali Alam,Karate Instructor,Room
>> >>> >> 37A,435-555-555,801-555-555
>> >>> >> userPassword: {crypt}x
>> >>> >> shadowLastChange: 0
>> >>> >> shadowMax: 0
>> >>> >> shadowWarning: 0
>> >>> >>
>> >>> >> but wh en i do this :
>> >>> >> =======================================
>> >>> >> ldapadd -xZZ -D "cn=Directory Manager,l=UK,dc=fosiul,dc=lan" -w
>> >>> >> testtest -f add.ldif
>> >>> >> I get bellow error :
>> >>> >>
>> >>> >> dap_bind: No such object (32)
>> >>> >> matched DN: l=uk,dc=fosiul,dc=lan
>> >>> >>
>> >>> >> Can any one please help me to build the ldif ??
>> >>> >> Thanks
>> >>> >> --
>> >>> >> 389 users mailing list
>> >>> >> 389-users@lists.fedoraproject.org
>> >>> >> https://admin.fedoraproject.org/mailman/listinfo/389-users
>> >>> >
>> >>> >
>> >>> > --
>> >>> > 389 users mailing list
>> >>> > 389-users@lists.fedoraproject.org
>> >>> > https://admin.fedoraproject.org/mailman/listinfo/389-users
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Regards
>> >>> Fosiul Alam
>> >>> 07877100621
>> >>> http://www.fosiul.co.uk
>> >>> --
>> >>> 389 users mailing list
>> >>> 389-users@lists.fedoraproject.org
>> >>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>> >
>> >
>> > --
>> > 389 users mailing list
>> > 389-users@lists.fedoraproject.org
>> > https://admin.fedoraproject.org/mailman/listinfo/389-users
>>
>>
>>
>> --
>> Regards
>> Fosiul Alam
>> 07877100621
>> http://www.fosiul.co.uk
>> --
>> 389 users mailing list
>> 389-users@lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>
>
> --
> 389 users mailing list
> 389-users@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users



--
Regards
Fosiul Alam
07877100621
http://www.fosiul.co.uk
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Grzegorz Dwornicki 08-04-2012 06:22 PM

Please help me to build my ldif file .
 
Try this:


ldapadd -xZZ -D "cn=Directory Manager" -W -f add.ldif


Greg.


wiadomosc wyslana z htc desire z

04-08-2012 20:20, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
My ldap serch (This works fine):



ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b

"ou=users,l=uk,dc=fosiul,dc=lan" *uidNumber=1000



I have tried 2 way :



*ldapadd -xZZ *-D "cn=Directory Manager,l=uk,dc=fosiul,dc=lan" -w

testtest -f add.ldif

ldap_bind: No such object (32)

* * * * matched DN: l=uk,dc=fosiul,dc=lan



ldapadd -xZZ *-D "cn=Directory Manager,l=uk,dc=fosiul,dc=lan" -w

testtest -f add.ldif

ldap_bind: No such object (32)

* * * * matched DN: l=uk,dc=fosiul,dc=lan





On Sat, Aug 4, 2012 at 7:05 PM, Grzegorz Dwornicki <gd1100@gmail.com> wrote:

> Look what account you typed in ldapsearch and ldapadd. Both should be

> "cn=Directory Manager". But in ldapadd you use other perhaps non existing

> account.

>

> Greg.

>

> Send from htc desire z

>

> 04-08-2012 19:41, "Fosiul Alam" <fosiul@gmail.com> napisał(a):

>

>> Hi thanks for reply.

>> can you please explain litlte bit

>> I am still confused.

>> Thanks

>>

>>

>>

>> On Sat, Aug 4, 2012 at 6:31 PM, Grzegorz Dwornicki <gd1100@gmail.com>

>> wrote:

>> > Sorry for empty message.

>> >

>> > You are close. When you use "cn=Directory Manager" for ldapsearch, then

>> > you

>> > use same "cn=Directory Manager" as -D paameter for ldapadd aswell not

>> > "cn=Directory Manager,l=UK,dc=fasiul,dc=lan" like you used in ldapadd.

>> >

>> > Greg.

>> >

>> > Send from htc desire z

>> >

>> > 04-08-2012 19:27, "Grzegorz Dwornicki" <gd1100@gmail.com> napisał(a):

>> >

>> >> wiadomosc wyslana z htc desire z

>> >>

>> >> 04-08-2012 18:47, "Fosiul Alam" <fosiul@gmail.com> napisał(a):

>> >>>

>> >>> Hi Thanks for reply

>> >>> If you see the search

>> >>> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b

>> >>> "ou=users,l=uk,dc=fosiul,dc=lan" *uidNumber=1000

>> >>>

>> >>> its returns fine. Which means the authentication is fine

>> >>> But dont know *how to crete the ldif file for that user.

>> >>>

>> >>> Thanks

>> >>>

>> >>> On Sat, Aug 4, 2012 at 5:00 PM, Grzegorz Dwornicki <gd1100@gmail.com>

>> >>> wrote:

>> >>> > It looks like you are using wrong directory manager DN. Maybe you

>> >>> > have

>> >>> > administrator named just "cn=Directory Manager"?

>> >>> >

>> >>> > Greg.

>> >>> >

>> >>> > Send from htc desire z

>> >>> >

>> >>> > 04-08-2012 15:52, "Fosiul Alam" <fosiul@gmail.com> napisał(a):

>> >>> >>

>> >>> >> Hi for bellow search i get this :

>> >>> >>

>> >>> >>

>> >>> >> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b

>> >>> >> "ou=users,l=uk,dc=fosiul,dc=lan" *uidNumber=1000

>> >>> >> # extended LDIF

>> >>> >> #

>> >>> >> # LDAPv3

>> >>> >> # base <ou=users,l=uk,dc=fosiul,dc=lan> with scope subtree

>> >>> >> # filter: uidNumber=1000

>> >>> >> # requesting: ALL

>> >>> >> #

>> >>> >>

>> >>> >> # falam, users, UK, fosiul.lan

>> >>> >> dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan

>> >>> >> givenName: Fosiul

>> >>> >> sn: Alam

>> >>> >> loginShell: /bin/bash

>> >>> >> uidNumber: 1000

>> >>> >> gidNumber: 6000

>> >>> >> objectClass: top

>> >>> >> objectClass: person

>> >>> >> objectClass: organizationalPerson

>> >>> >> objectClass: inetorgperson

>> >>> >> objectClass: posixAccount

>> >>> >> uid: falam

>> >>> >> cn: Fosiul Alam

>> >>> >> homeDirectory: /home/falam

>> >>> >> userPassword:: e1NTSEF9MSG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=

>> >>> >> *=

>> >>> >>

>> >>> >> # search result

>> >>> >> search: 3

>> >>> >> result: 0 Success

>> >>> >>

>> >>> >> # numResponses: 2

>> >>> >> # numEntries: 1

>> >>> >>

>> >>> >> NOw i am trying to create ldif file so that i can add entry

>> >>> >> manually .

>> >>> >>

>> >>> >>

>> >>> >>

>> >>> >> -----------------------------------------------------------------------------------------

>> >>> >>

>> >>> >> adding a new user :

>> >>> >>

>> >>> >> dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan

>> >>> >> objectClass: top

>> >>> >> objectClass: person

>> >>> >> objectClass: organizationalPerson

>> >>> >> objectClass: inetorgperson

>> >>> >> objectClass: posixAccount

>> >>> >> cn: Yafali Alam

>> >>> >> uid: salam

>> >>> >> uidNumber: 1001

>> >>> >> gidNumber: 6000

>> >>> >> homeDirectory: /home/yalam

>> >>> >> loginShell: /bin/bash

>> >>> >> gecos: Yafali Alam,Karate Instructor,Room

>> >>> >> 37A,435-555-555,801-555-555

>> >>> >> userPassword: {crypt}x

>> >>> >> shadowLastChange: 0

>> >>> >> shadowMax: 0

>> >>> >> shadowWarning: 0

>> >>> >>

>> >>> >> but wh en i do this :

>> >>> >> =======================================

>> >>> >> ldapadd -xZZ *-D "cn=Directory Manager,l=UK,dc=fosiul,dc=lan" -w

>> >>> >> testtest -f add.ldif

>> >>> >> I get bellow error :

>> >>> >>

>> >>> >> dap_bind: No such object (32)

>> >>> >> * * * * matched DN: l=uk,dc=fosiul,dc=lan

>> >>> >>

>> >>> >> Can any one please help me to build the ldif ??

>> >>> >> Thanks

>> >>> >> --

>> >>> >> 389 users mailing list

>> >>> >> 389-users@lists.fedoraproject.org

>> >>> >> https://admin.fedoraproject.org/mailman/listinfo/389-users

>> >>> >

>> >>> >

>> >>> > --

>> >>> > 389 users mailing list

>> >>> > 389-users@lists.fedoraproject.org

>> >>> > https://admin.fedoraproject.org/mailman/listinfo/389-users

>> >>>

>> >>>

>> >>>

>> >>> --

>> >>> Regards

>> >>> Fosiul Alam

>> >>> 07877100621

>> >>> http://www.fosiul.co.uk

>> >>> --

>> >>> 389 users mailing list

>> >>> 389-users@lists.fedoraproject.org

>> >>> https://admin.fedoraproject.org/mailman/listinfo/389-users

>> >

>> >

>> > --

>> > 389 users mailing list

>> > 389-users@lists.fedoraproject.org

>> > https://admin.fedoraproject.org/mailman/listinfo/389-users

>>

>>

>>

>> --

>> Regards

>> Fosiul Alam

>> 07877100621

>> http://www.fosiul.co.uk

>> --

>> 389 users mailing list

>> 389-users@lists.fedoraproject.org

>> https://admin.fedoraproject.org/mailman/listinfo/389-users

>

>

> --

> 389 users mailing list

> 389-users@lists.fedoraproject.org

> https://admin.fedoraproject.org/mailman/listinfo/389-users







--

Regards

Fosiul Alam

07877100621

http://www.fosiul.co.uk

--

389 users mailing list

389-users@lists.fedoraproject.org

https://admin.fedoraproject.org/mailman/listinfo/389-users
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Fosiul Alam 08-04-2012 06:27 PM

Please help me to build my ldif file .
 
Hi Thanks for quick reply

ldapadd -xZZ -D "cn=Directory Manager" -W -f add.ldif
Enter LDAP Password:
ldapadd: invalid format (line 7) entry:
"uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan"

Bellow is my add.ldif file


dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: posixAccount
sn=Alam
cn: Yafali Alam
uid: salam
uidNumber: 1001
gidNumber: 6000
homeDirectory: /home/yalam
loginShell: /bin/bash
gecos: Yçafali Alam,Karate Instructor,Room 37A,435-555-555,801-555-555
userPassword: {crypt}x
shadowLastChange: 0
shadowMax: 0
shadowWarning: 0

On Sat, Aug 4, 2012 at 7:22 PM, Grzegorz Dwornicki <gd1100@gmail.com> wrote:
> Try this:
>
> ldapadd -xZZ -D "cn=Directory Manager" -W -f add.ldif
>
> Greg.
>
> wiadomosc wyslana z htc desire z
>
> 04-08-2012 20:20, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>
>> My ldap serch (This works fine):
>>
>> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>>
>> I have tried 2 way :
>>
>> ldapadd -xZZ -D "cn=Directory Manager,l=uk,dc=fosiul,dc=lan" -w
>> testtest -f add.ldif
>> ldap_bind: No such object (32)
>> matched DN: l=uk,dc=fosiul,dc=lan
>>
>> ldapadd -xZZ -D "cn=Directory Manager,l=uk,dc=fosiul,dc=lan" -w
>> testtest -f add.ldif
>> ldap_bind: No such object (32)
>> matched DN: l=uk,dc=fosiul,dc=lan
>>
>>
>> On Sat, Aug 4, 2012 at 7:05 PM, Grzegorz Dwornicki <gd1100@gmail.com>
>> wrote:
>> > Look what account you typed in ldapsearch and ldapadd. Both should be
>> > "cn=Directory Manager". But in ldapadd you use other perhaps non
>> > existing
>> > account.
>> >
>> > Greg.
>> >
>> > Send from htc desire z
>> >
>> > 04-08-2012 19:41, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>> >
>> >> Hi thanks for reply.
>> >> can you please explain litlte bit
>> >> I am still confused.
>> >> Thanks
>> >>
>> >>
>> >>
>> >> On Sat, Aug 4, 2012 at 6:31 PM, Grzegorz Dwornicki <gd1100@gmail.com>
>> >> wrote:
>> >> > Sorry for empty message.
>> >> >
>> >> > You are close. When you use "cn=Directory Manager" for ldapsearch,
>> >> > then
>> >> > you
>> >> > use same "cn=Directory Manager" as -D paameter for ldapadd aswell not
>> >> > "cn=Directory Manager,l=UK,dc=fasiul,dc=lan" like you used in
>> >> > ldapadd.
>> >> >
>> >> > Greg.
>> >> >
>> >> > Send from htc desire z
>> >> >
>> >> > 04-08-2012 19:27, "Grzegorz Dwornicki" <gd1100@gmail.com> napisał(a):
>> >> >
>> >> >> wiadomosc wyslana z htc desire z
>> >> >>
>> >> >> 04-08-2012 18:47, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>> >> >>>
>> >> >>> Hi Thanks for reply
>> >> >>> If you see the search
>> >> >>> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>> >> >>> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>> >> >>>
>> >> >>> its returns fine. Which means the authentication is fine
>> >> >>> But dont know how to crete the ldif file for that user.
>> >> >>>
>> >> >>> Thanks
>> >> >>>
>> >> >>> On Sat, Aug 4, 2012 at 5:00 PM, Grzegorz Dwornicki
>> >> >>> <gd1100@gmail.com>
>> >> >>> wrote:
>> >> >>> > It looks like you are using wrong directory manager DN. Maybe you
>> >> >>> > have
>> >> >>> > administrator named just "cn=Directory Manager"?
>> >> >>> >
>> >> >>> > Greg.
>> >> >>> >
>> >> >>> > Send from htc desire z
>> >> >>> >
>> >> >>> > 04-08-2012 15:52, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>> >> >>> >>
>> >> >>> >> Hi for bellow search i get this :
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>> >> >>> >> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>> >> >>> >> # extended LDIF
>> >> >>> >> #
>> >> >>> >> # LDAPv3
>> >> >>> >> # base <ou=users,l=uk,dc=fosiul,dc=lan> with scope subtree
>> >> >>> >> # filter: uidNumber=1000
>> >> >>> >> # requesting: ALL
>> >> >>> >> #
>> >> >>> >>
>> >> >>> >> # falam, users, UK, fosiul.lan
>> >> >>> >> dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan
>> >> >>> >> givenName: Fosiul
>> >> >>> >> sn: Alam
>> >> >>> >> loginShell: /bin/bash
>> >> >>> >> uidNumber: 1000
>> >> >>> >> gidNumber: 6000
>> >> >>> >> objectClass: top
>> >> >>> >> objectClass: person
>> >> >>> >> objectClass: organizationalPerson
>> >> >>> >> objectClass: inetorgperson
>> >> >>> >> objectClass: posixAccount
>> >> >>> >> uid: falam
>> >> >>> >> cn: Fosiul Alam
>> >> >>> >> homeDirectory: /home/falam
>> >> >>> >> userPassword:: e1NTSEF9MSG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=
>> >> >>> >> =
>> >> >>> >>
>> >> >>> >> # search result
>> >> >>> >> search: 3
>> >> >>> >> result: 0 Success
>> >> >>> >>
>> >> >>> >> # numResponses: 2
>> >> >>> >> # numEntries: 1
>> >> >>> >>
>> >> >>> >> NOw i am trying to create ldif file so that i can add entry
>> >> >>> >> manually .
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >>
>> >> >>> >> -----------------------------------------------------------------------------------------
>> >> >>> >>
>> >> >>> >> adding a new user :
>> >> >>> >>
>> >> >>> >> dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan
>> >> >>> >> objectClass: top
>> >> >>> >> objectClass: person
>> >> >>> >> objectClass: organizationalPerson
>> >> >>> >> objectClass: inetorgperson
>> >> >>> >> objectClass: posixAccount
>> >> >>> >> cn: Yafali Alam
>> >> >>> >> uid: salam
>> >> >>> >> uidNumber: 1001
>> >> >>> >> gidNumber: 6000
>> >> >>> >> homeDirectory: /home/yalam
>> >> >>> >> loginShell: /bin/bash
>> >> >>> >> gecos: Yafali Alam,Karate Instructor,Room
>> >> >>> >> 37A,435-555-555,801-555-555
>> >> >>> >> userPassword: {crypt}x
>> >> >>> >> shadowLastChange: 0
>> >> >>> >> shadowMax: 0
>> >> >>> >> shadowWarning: 0
>> >> >>> >>
>> >> >>> >> but wh en i do this :
>> >> >>> >> =======================================
>> >> >>> >> ldapadd -xZZ -D "cn=Directory Manager,l=UK,dc=fosiul,dc=lan" -w
>> >> >>> >> testtest -f add.ldif
>> >> >>> >> I get bellow error :
>> >> >>> >>
>> >> >>> >> dap_bind: No such object (32)
>> >> >>> >> matched DN: l=uk,dc=fosiul,dc=lan
>> >> >>> >>
>> >> >>> >> Can any one please help me to build the ldif ??
>> >> >>> >> Thanks
>> >> >>> >> --
>> >> >>> >> 389 users mailing list
>> >> >>> >> 389-users@lists.fedoraproject.org
>> >> >>> >> https://admin.fedoraproject.org/mailman/listinfo/389-users
>> >> >>> >
>> >> >>> >
>> >> >>> > --
>> >> >>> > 389 users mailing list
>> >> >>> > 389-users@lists.fedoraproject.org
>> >> >>> > https://admin.fedoraproject.org/mailman/listinfo/389-users
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> Regards
>> >> >>> Fosiul Alam
>> >> >>> 07877100621
>> >> >>> http://www.fosiul.co.uk
>> >> >>> --
>> >> >>> 389 users mailing list
>> >> >>> 389-users@lists.fedoraproject.org
>> >> >>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>> >> >
>> >> >
>> >> > --
>> >> > 389 users mailing list
>> >> > 389-users@lists.fedoraproject.org
>> >> > https://admin.fedoraproject.org/mailman/listinfo/389-users
>> >>
>> >>
>> >>
>> >> --
>> >> Regards
>> >> Fosiul Alam
>> >> 07877100621
>> >> http://www.fosiul.co.uk
>> >> --
>> >> 389 users mailing list
>> >> 389-users@lists.fedoraproject.org
>> >> https://admin.fedoraproject.org/mailman/listinfo/389-users
>> >
>> >
>> > --
>> > 389 users mailing list
>> > 389-users@lists.fedoraproject.org
>> > https://admin.fedoraproject.org/mailman/listinfo/389-users
>>
>>
>>
>> --
>> Regards
>> Fosiul Alam
>> 07877100621
>> http://www.fosiul.co.uk
>> --
>> 389 users mailing list
>> 389-users@lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>
>
> --
> 389 users mailing list
> 389-users@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users



--
Regards
Fosiul Alam
07877100621
http://www.fosiul.co.uk
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Fosiul Alam 08-04-2012 07:06 PM

Please help me to build my ldif file .
 
Hi
this is strange , this syntax works

ldapmodify -xZZ -a -D "cn=Directory Manager" -w testtest -f add.ldif



On Sat, Aug 4, 2012 at 7:27 PM, Fosiul Alam <fosiul@gmail.com> wrote:
> Hi Thanks for quick reply
>
> ldapadd -xZZ -D "cn=Directory Manager" -W -f add.ldif
> Enter LDAP Password:
> ldapadd: invalid format (line 7) entry:
> "uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan"
>
> Bellow is my add.ldif file
>
>
> dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan
> objectClass: top
> objectClass: person
> objectClass: organizationalPerson
> objectClass: inetorgperson
> objectClass: posixAccount
> sn=Alam
> cn: Yafali Alam
> uid: salam
> uidNumber: 1001
> gidNumber: 6000
> homeDirectory: /home/yalam
> loginShell: /bin/bash
> gecos: Yçafali Alam,Karate Instructor,Room 37A,435-555-555,801-555-555
> userPassword: {crypt}x
> shadowLastChange: 0
> shadowMax: 0
> shadowWarning: 0
>
> On Sat, Aug 4, 2012 at 7:22 PM, Grzegorz Dwornicki <gd1100@gmail.com> wrote:
>> Try this:
>>
>> ldapadd -xZZ -D "cn=Directory Manager" -W -f add.ldif
>>
>> Greg.
>>
>> wiadomosc wyslana z htc desire z
>>
>> 04-08-2012 20:20, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>>
>>> My ldap serch (This works fine):
>>>
>>> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>>> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>>>
>>> I have tried 2 way :
>>>
>>> ldapadd -xZZ -D "cn=Directory Manager,l=uk,dc=fosiul,dc=lan" -w
>>> testtest -f add.ldif
>>> ldap_bind: No such object (32)
>>> matched DN: l=uk,dc=fosiul,dc=lan
>>>
>>> ldapadd -xZZ -D "cn=Directory Manager,l=uk,dc=fosiul,dc=lan" -w
>>> testtest -f add.ldif
>>> ldap_bind: No such object (32)
>>> matched DN: l=uk,dc=fosiul,dc=lan
>>>
>>>
>>> On Sat, Aug 4, 2012 at 7:05 PM, Grzegorz Dwornicki <gd1100@gmail.com>
>>> wrote:
>>> > Look what account you typed in ldapsearch and ldapadd. Both should be
>>> > "cn=Directory Manager". But in ldapadd you use other perhaps non
>>> > existing
>>> > account.
>>> >
>>> > Greg.
>>> >
>>> > Send from htc desire z
>>> >
>>> > 04-08-2012 19:41, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>>> >
>>> >> Hi thanks for reply.
>>> >> can you please explain litlte bit
>>> >> I am still confused.
>>> >> Thanks
>>> >>
>>> >>
>>> >>
>>> >> On Sat, Aug 4, 2012 at 6:31 PM, Grzegorz Dwornicki <gd1100@gmail.com>
>>> >> wrote:
>>> >> > Sorry for empty message.
>>> >> >
>>> >> > You are close. When you use "cn=Directory Manager" for ldapsearch,
>>> >> > then
>>> >> > you
>>> >> > use same "cn=Directory Manager" as -D paameter for ldapadd aswell not
>>> >> > "cn=Directory Manager,l=UK,dc=fasiul,dc=lan" like you used in
>>> >> > ldapadd.
>>> >> >
>>> >> > Greg.
>>> >> >
>>> >> > Send from htc desire z
>>> >> >
>>> >> > 04-08-2012 19:27, "Grzegorz Dwornicki" <gd1100@gmail.com> napisał(a):
>>> >> >
>>> >> >> wiadomosc wyslana z htc desire z
>>> >> >>
>>> >> >> 04-08-2012 18:47, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>>> >> >>>
>>> >> >>> Hi Thanks for reply
>>> >> >>> If you see the search
>>> >> >>> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>>> >> >>> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>>> >> >>>
>>> >> >>> its returns fine. Which means the authentication is fine
>>> >> >>> But dont know how to crete the ldif file for that user.
>>> >> >>>
>>> >> >>> Thanks
>>> >> >>>
>>> >> >>> On Sat, Aug 4, 2012 at 5:00 PM, Grzegorz Dwornicki
>>> >> >>> <gd1100@gmail.com>
>>> >> >>> wrote:
>>> >> >>> > It looks like you are using wrong directory manager DN. Maybe you
>>> >> >>> > have
>>> >> >>> > administrator named just "cn=Directory Manager"?
>>> >> >>> >
>>> >> >>> > Greg.
>>> >> >>> >
>>> >> >>> > Send from htc desire z
>>> >> >>> >
>>> >> >>> > 04-08-2012 15:52, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
>>> >> >>> >>
>>> >> >>> >> Hi for bellow search i get this :
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >> ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
>>> >> >>> >> "ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
>>> >> >>> >> # extended LDIF
>>> >> >>> >> #
>>> >> >>> >> # LDAPv3
>>> >> >>> >> # base <ou=users,l=uk,dc=fosiul,dc=lan> with scope subtree
>>> >> >>> >> # filter: uidNumber=1000
>>> >> >>> >> # requesting: ALL
>>> >> >>> >> #
>>> >> >>> >>
>>> >> >>> >> # falam, users, UK, fosiul.lan
>>> >> >>> >> dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan
>>> >> >>> >> givenName: Fosiul
>>> >> >>> >> sn: Alam
>>> >> >>> >> loginShell: /bin/bash
>>> >> >>> >> uidNumber: 1000
>>> >> >>> >> gidNumber: 6000
>>> >> >>> >> objectClass: top
>>> >> >>> >> objectClass: person
>>> >> >>> >> objectClass: organizationalPerson
>>> >> >>> >> objectClass: inetorgperson
>>> >> >>> >> objectClass: posixAccount
>>> >> >>> >> uid: falam
>>> >> >>> >> cn: Fosiul Alam
>>> >> >>> >> homeDirectory: /home/falam
>>> >> >>> >> userPassword:: e1NTSEF9MSG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=
>>> >> >>> >> =
>>> >> >>> >>
>>> >> >>> >> # search result
>>> >> >>> >> search: 3
>>> >> >>> >> result: 0 Success
>>> >> >>> >>
>>> >> >>> >> # numResponses: 2
>>> >> >>> >> # numEntries: 1
>>> >> >>> >>
>>> >> >>> >> NOw i am trying to create ldif file so that i can add entry
>>> >> >>> >> manually .
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >>
>>> >> >>> >> -----------------------------------------------------------------------------------------
>>> >> >>> >>
>>> >> >>> >> adding a new user :
>>> >> >>> >>
>>> >> >>> >> dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan
>>> >> >>> >> objectClass: top
>>> >> >>> >> objectClass: person
>>> >> >>> >> objectClass: organizationalPerson
>>> >> >>> >> objectClass: inetorgperson
>>> >> >>> >> objectClass: posixAccount
>>> >> >>> >> cn: Yafali Alam
>>> >> >>> >> uid: salam
>>> >> >>> >> uidNumber: 1001
>>> >> >>> >> gidNumber: 6000
>>> >> >>> >> homeDirectory: /home/yalam
>>> >> >>> >> loginShell: /bin/bash
>>> >> >>> >> gecos: Yafali Alam,Karate Instructor,Room
>>> >> >>> >> 37A,435-555-555,801-555-555
>>> >> >>> >> userPassword: {crypt}x
>>> >> >>> >> shadowLastChange: 0
>>> >> >>> >> shadowMax: 0
>>> >> >>> >> shadowWarning: 0
>>> >> >>> >>
>>> >> >>> >> but wh en i do this :
>>> >> >>> >> =======================================
>>> >> >>> >> ldapadd -xZZ -D "cn=Directory Manager,l=UK,dc=fosiul,dc=lan" -w
>>> >> >>> >> testtest -f add.ldif
>>> >> >>> >> I get bellow error :
>>> >> >>> >>
>>> >> >>> >> dap_bind: No such object (32)
>>> >> >>> >> matched DN: l=uk,dc=fosiul,dc=lan
>>> >> >>> >>
>>> >> >>> >> Can any one please help me to build the ldif ??
>>> >> >>> >> Thanks
>>> >> >>> >> --
>>> >> >>> >> 389 users mailing list
>>> >> >>> >> 389-users@lists.fedoraproject.org
>>> >> >>> >> https://admin.fedoraproject.org/mailman/listinfo/389-users
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > --
>>> >> >>> > 389 users mailing list
>>> >> >>> > 389-users@lists.fedoraproject.org
>>> >> >>> > https://admin.fedoraproject.org/mailman/listinfo/389-users
>>> >> >>>
>>> >> >>>
>>> >> >>>
>>> >> >>> --
>>> >> >>> Regards
>>> >> >>> Fosiul Alam
>>> >> >>> 07877100621
>>> >> >>> http://www.fosiul.co.uk
>>> >> >>> --
>>> >> >>> 389 users mailing list
>>> >> >>> 389-users@lists.fedoraproject.org
>>> >> >>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>>> >> >
>>> >> >
>>> >> > --
>>> >> > 389 users mailing list
>>> >> > 389-users@lists.fedoraproject.org
>>> >> > https://admin.fedoraproject.org/mailman/listinfo/389-users
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Regards
>>> >> Fosiul Alam
>>> >> 07877100621
>>> >> http://www.fosiul.co.uk
>>> >> --
>>> >> 389 users mailing list
>>> >> 389-users@lists.fedoraproject.org
>>> >> https://admin.fedoraproject.org/mailman/listinfo/389-users
>>> >
>>> >
>>> > --
>>> > 389 users mailing list
>>> > 389-users@lists.fedoraproject.org
>>> > https://admin.fedoraproject.org/mailman/listinfo/389-users
>>>
>>>
>>>
>>> --
>>> Regards
>>> Fosiul Alam
>>> 07877100621
>>> http://www.fosiul.co.uk
>>> --
>>> 389 users mailing list
>>> 389-users@lists.fedoraproject.org
>>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>>
>>
>> --
>> 389 users mailing list
>> 389-users@lists.fedoraproject.org
>> https://admin.fedoraproject.org/mailman/listinfo/389-users
>
>
>
> --
> Regards
> Fosiul Alam
> 07877100621
> http://www.fosiul.co.uk



--
Regards
Fosiul Alam
07877100621
http://www.fosiul.co.uk
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users


All times are GMT. The time now is 07:20 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.