[vchkpw] Vpopmail + ldap problem

2007-03-07 Thread Erika Rocio Gomez

Hello...

I have a qmail + ldap server...
Everything is working good, but I have a problem with the vpopmail
commands, when I'm trying to modify the password with the vchangepw
it says: Error: No such object (32)
   matched DN: ou= uniibague.edu.co,o=vpopmail
but with vuserinfo command I can see the user.

My ldap tree is like this:
o=vpopmail
 ou=domain
   ou=persons
 ou=employers

The user I'm trying to change is in the last sub tree, it's maybe because
the user is located in a sub tree???
Any ideas??
Thanks
--
Erika...


RE: [vchkpw] vpopmail + ldap problem

2006-03-21 Thread Jennifer Abel


> -Original Message-
> From: Oliver A. Rojo 
> Sent: Sunday, March 19, 2006 5:07 AM
> To: vchkpw@inter7.com
> Subject: Re: [vchkpw] vpopmail + ldap problem
> 
> 
> Jennifer Abel wrote:
> 
> >
> >  
> >
> >>-Original Message-
> >>From: Oliver A. Rojo [mailto:[EMAIL PROTECTED]
> >>Sent: Thursday, March 16, 2006 9:26 PM
> >>To: Vpopmail Mailing List
> >>Subject: [vchkpw] vpopmail + ldap problem
> >>
> >>
> >>Im having a problem with integrating vpopmail with ldap. 
> I've already
> >>installed everything...
> >>
> >>What I did:
> >>
> >>1. I set these options on vldap.h before compile
> >>#define VLDAP_SERVER "localhost"
> >>#define VLDAP_PORT LDAP_PORT
> >>#define VLDAP_USER "cn=vpopmailuser, o=vpopmail"
> >>#define VLDAP_PASSWORD "vpoppasswd"
> >>#define VLDAP_BASEDN "o=vpopmail"
> >>
> >>2. My compile options
> >>--enable-auth-module=ldap
> >>
> >>3. Copied the file slapd.conf and qmailUser.schema from the vpopmail
> >>ldap directory to ldap etc/ and schema/ directory
> >>4. Successful creation of vpopmail database
> >>ldapadd -f vpopmail.ldif -x -w vpoppasswd 
> >>-D'cn=vpopmailuser,o=vpopmail'
> >>
> >>The problem is when I add a virtual domain
> >>
> >>/home/vpopmail/bin/vadddomain mydomain.com
> >>
> >>I get an error saying:
> >>
> >>Error: Object class violation (65)
> >>additional info: object class 'qmailUser' requires
> >>attribute 'sn' Failed while attempting to add user to auth backend
> >>Error: (vadduser) no auth connection
> >>
> >>What seems to be the problem here? Did I missed something?
> >>
> >>Please help!
> >>
> >>Thanks!
> >>
> >>--
> >>
> >>
> >>Oliver A. Rojo
> >>
> >>
> >>
> >>
> >>__
> >>
> >>This email and any files transmitted with it are confidential
> >>and intended solely for the use of the individual or entity to 
> >>whom they are addressed. If you have received this email in error 
> >>please notify the system manager. Please note that any views or 
> >>opinions presented in this email are solely those of the author 
> >>and do not necessarily represent those of the company. Finally, 
> >>the recipient should check this email and any attachments for 
> >>the  presence of viruses. The company accepts no liability for any 
> >>damage caused by any virus transmitted by this email.
> >>
> >>
> >
> >
> >
> >I am new to LDAP, so I am not sure what I might have 
> possibly broken. 
> >The way I stopped that error from happening was to edit the 
> schemas. I 
> >changed sn and cn from must to may in the Person directive in 
> >core.schema.
> >
> >Jennifer
> > 
> >
> >
> >  
> >
> ok i've changed 'person' objectclass at core.schema  from
> 
> objectclass ( 2.5.6.6 NAME 'person'
> DESC 'RFC2256: a person'
> SUP top STRUCTURAL
> MUST ( sn $ cn )
> MAY ( userPassword $ telephoneNumber $ seeAlso $ 
> description ) )
> 
> TO
> 
> objectclass ( 2.5.6.6 NAME 'person'
> DESC 'RFC2256: a person'
> SUP top STRUCTURAL
> MAY ( sn $ cn )
> MAY ( userPassword $ telephoneNumber $ seeAlso $ 
> description ) )
> 
> but when I start slapd it failed and says:
> 
>  Duplicate option before  ( userPassword $ telephoneNumber $ 
> seeAlso $ 
> description ) )
> 
> 
> 
> 
> 
> 
> 
> -- 
> 
> 
> Oliver A. Rojo
> 
> 
> 
> 
> __
> 
> This email and any files transmitted with it are confidential 
> and intended solely for the use of the individual or entity to 
> whom they are addressed. If you have received this email in error 
> please notify the system manager. Please note that any views or 
> opinions presented in this email are solely those of the author 
> and do not necessarily represent those of the company. Finally, 
> the recipient should check this email and any attachments for 
> the  presence of viruses. The company accepts no liability for any 
> damage caused by any virus transmitted by this email.
> 

Oliver A. Rojo,

My person in core.schema looks like this:

objectclass ( 2.5.6.6 NAME 'person'
DESC 'RFC2256: a person'
SUP top STRUCTURAL
MAY ( userPassword $ telephoneNumber $ seeAlso $ description $
sn $ cn ) )


It works fine for me with OpenLDAP 2.3.4 and 2.3.11.
Maybe that will work for you. Again I am new, but it works for me. Hope
you get everything working.

Jennifer


Re: [vchkpw] vpopmail + ldap problem

2006-03-19 Thread Edy Sulai
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Easiest way to edit ldap object is through a GUI client, ie:
phpldapadmin, ldapadministrator, etc. search for ldap client, you should
get quite a lot of option. I use JExplorer myself.
or you could do it by command line with "ldapmodify" command.

And for editing schema file, it's quite complicated considering the tree
structure and whole standard thing. I wouldn't recommend messing the
schema unless you really know what you are doing.
as Matheau pointed out, vpopmail schema file could be outdated.

correct me if i'm wrong but i believed inter7 doesn't provide vpopmail
with ldap functionality. it's an add-on thing and plus ldap function was
made available only because a client of inter7 requested ldap function.
it would be a waste to left the code unused, so they made it available
but without any support whatsoever (unless you pay them to do it). So,
it's doesnot look pretty. you have to make it work on your own.
I did that before.
Look at other option, maybe qmail-ldap?
could work a lot better with enermous support/documentation.



Edy

Oliver A. Rojo wrote:
> Edy Sulai wrote:
> 
> You much fill out the sn field because in qmailUser object, sn is
> required attribute. Make sure each object has their sn entry.
> 
> I had vpopmail setup with ldap before, but that was quite a long time
> ago. As I remembered, a patch to vpopmail source was required. I'm not
> sure on newer vpopmail version.
> 
> 
> Edy
> 
> Oliver A. Rojo wrote:
>  
> 
 Im having a problem with integrating vpopmail with ldap. I've already
 installed everything...

 What I did:

 1. I set these options on vldap.h before compile
 #define VLDAP_SERVER "localhost"
 #define VLDAP_PORT LDAP_PORT
 #define VLDAP_USER "cn=vpopmailuser, o=vpopmail"
 #define VLDAP_PASSWORD "vpoppasswd"
 #define VLDAP_BASEDN "o=vpopmail"

 2. My compile options
 --enable-auth-module=ldap

 3. Copied the file slapd.conf and qmailUser.schema from the vpopmail
 ldap directory to ldap etc/ and schema/ directory
 4. Successful creation of vpopmail database
 ldapadd -f vpopmail.ldif -x -w vpoppasswd -D'cn=vpopmailuser,o=vpopmail'

 The problem is when I add a virtual domain

 /home/vpopmail/bin/vadddomain mydomain.com

 I get an error saying:

 Error: Object class violation (65)
   additional info: object class 'qmailUser' requires attribute 'sn'
 Failed while attempting to add user to auth backend
 Error: (vadduser) no auth connection

 What seems to be the problem here? Did I missed something?

 Please help!

 Thanks!

   
> 
>>
>>

>>
> where will I fill out the 'sn' entry? is it on the schema files? im
> sorry im just a newbie openldap user.


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEHgYFzkzx2xIRtA0RAlswAKCSi2vtL0DEWZuWqfhb0SzI4IXKGgCdE4/2
x74Dc0L8t1/7Zs4kRS+hphM=
=YVbk
-END PGP SIGNATURE-


Re: [vchkpw] vpopmail + ldap problem

2006-03-19 Thread Oliver A. Rojo

Edy Sulai wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

You much fill out the sn field because in qmailUser object, sn is
required attribute. Make sure each object has their sn entry.

I had vpopmail setup with ldap before, but that was quite a long time
ago. As I remembered, a patch to vpopmail source was required. I'm not
sure on newer vpopmail version.


Edy

Oliver A. Rojo wrote:
 


Im having a problem with integrating vpopmail with ldap. I've already
installed everything...

What I did:

1. I set these options on vldap.h before compile
#define VLDAP_SERVER "localhost"
#define VLDAP_PORT LDAP_PORT
#define VLDAP_USER "cn=vpopmailuser, o=vpopmail"
#define VLDAP_PASSWORD "vpoppasswd"
#define VLDAP_BASEDN "o=vpopmail"

2. My compile options
--enable-auth-module=ldap

3. Copied the file slapd.conf and qmailUser.schema from the vpopmail
ldap directory to ldap etc/ and schema/ directory
4. Successful creation of vpopmail database
ldapadd -f vpopmail.ldif -x -w vpoppasswd -D'cn=vpopmailuser,o=vpopmail'

The problem is when I add a virtual domain

/home/vpopmail/bin/vadddomain mydomain.com

I get an error saying:

Error: Object class violation (65)
  additional info: object class 'qmailUser' requires attribute 'sn'
Failed while attempting to add user to auth backend
Error: (vadduser) no auth connection

What seems to be the problem here? Did I missed something?

Please help!

Thanks!

   



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEGiR0zkzx2xIRtA0RAlicAJ0Y/YP5ReSMqzNtof8LEapTfhdJ/gCgj9EY
SFhwQEj7PVvsAnuQjJsXulQ=
=CLJJ
-END PGP SIGNATURE-


 

where will I fill out the 'sn' entry? is it on the schema files? im 
sorry im just a newbie openldap user.


--


Oliver A. Rojo




__

This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to 
whom they are addressed. If you have received this email in error 
please notify the system manager. Please note that any views or 
opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Finally, 
the recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any 
damage caused by any virus transmitted by this email.




Re: [vchkpw] vpopmail + ldap problem

2006-03-19 Thread Oliver A. Rojo

Jennifer Abel wrote:



 


-Original Message-
From: Oliver A. Rojo [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 16, 2006 9:26 PM

To: Vpopmail Mailing List
Subject: [vchkpw] vpopmail + ldap problem


Im having a problem with integrating vpopmail with ldap. I've already 
installed everything...


What I did:

1. I set these options on vldap.h before compile
#define VLDAP_SERVER "localhost"
#define VLDAP_PORT LDAP_PORT
#define VLDAP_USER "cn=vpopmailuser, o=vpopmail"
#define VLDAP_PASSWORD "vpoppasswd"
#define VLDAP_BASEDN "o=vpopmail"

2. My compile options
--enable-auth-module=ldap

3. Copied the file slapd.conf and qmailUser.schema from the vpopmail 
ldap directory to ldap etc/ and schema/ directory

4. Successful creation of vpopmail database
ldapadd -f vpopmail.ldif -x -w vpoppasswd 
-D'cn=vpopmailuser,o=vpopmail'


The problem is when I add a virtual domain

/home/vpopmail/bin/vadddomain mydomain.com

I get an error saying:

Error: Object class violation (65)
   additional info: object class 'qmailUser' requires 
attribute 'sn' Failed while attempting to add user to auth backend

Error: (vadduser) no auth connection

What seems to be the problem here? Did I missed something?

Please help!

Thanks!

--


Oliver A. Rojo




__

This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to 
whom they are addressed. If you have received this email in error 
please notify the system manager. Please note that any views or 
opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Finally, 
the recipient should check this email and any attachments for 
the  presence of viruses. The company accepts no liability for any 
damage caused by any virus transmitted by this email.
   





I am new to LDAP, so I am not sure what I might have possibly broken.
The way I stopped that error from happening was to edit the schemas.
I changed sn and cn from must to may in the Person directive in
core.schema.

Jennifer



 


ok i've changed 'person' objectclass at core.schema  from

objectclass ( 2.5.6.6 NAME 'person'
   DESC 'RFC2256: a person'
   SUP top STRUCTURAL
   MUST ( sn $ cn )
   MAY ( userPassword $ telephoneNumber $ seeAlso $ description ) )

TO

objectclass ( 2.5.6.6 NAME 'person'
   DESC 'RFC2256: a person'
   SUP top STRUCTURAL
   MAY ( sn $ cn )
   MAY ( userPassword $ telephoneNumber $ seeAlso $ description ) )

but when I start slapd it failed and says:

Duplicate option before  ( userPassword $ telephoneNumber $ seeAlso $ 
description ) )








--


Oliver A. Rojo




__

This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to 
whom they are addressed. If you have received this email in error 
please notify the system manager. Please note that any views or 
opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Finally, 
the recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any 
damage caused by any virus transmitted by this email.




Re[2]: [vchkpw] vpopmail + ldap problem

2006-03-18 Thread Mathieu CHATEAU

Friday, March 17, 2006, 3:59:37 PM, you wrote:



>> -Original Message-
>> From: Oliver A. Rojo [mailto:[EMAIL PROTECTED] 
>> Sent: Thursday, March 16, 2006 9:26 PM
>> To: Vpopmail Mailing List
>> Subject: [vchkpw] vpopmail + ldap problem
>> 
>> 
>> Im having a problem with integrating vpopmail with ldap. I've already 
>> installed everything...
>> 
>> What I did:
>> 
>> 1. I set these options on vldap.h before compile
>> #define VLDAP_SERVER "localhost"
>> #define VLDAP_PORT LDAP_PORT
>> #define VLDAP_USER "cn=vpopmailuser, o=vpopmail"
>> #define VLDAP_PASSWORD "vpoppasswd"
>> #define VLDAP_BASEDN "o=vpopmail"
>> 
>> 2. My compile options
>> --enable-auth-module=ldap
>> 
>> 3. Copied the file slapd.conf and qmailUser.schema from the vpopmail 
>> ldap directory to ldap etc/ and schema/ directory
>> 4. Successful creation of vpopmail database
>> ldapadd -f vpopmail.ldif -x -w vpoppasswd 
>> -D'cn=vpopmailuser,o=vpopmail'
>> 
>> The problem is when I add a virtual domain
>> 
>> /home/vpopmail/bin/vadddomain mydomain.com
>> 
>> I get an error saying:
>> 
>> Error: Object class violation (65)
>> additional info: object class 'qmailUser' requires 
>> attribute 'sn' Failed while attempting to add user to auth backend
>> Error: (vadduser) no auth connection
>> 
>> What seems to be the problem here? Did I missed something?
>> 
>> Please help!
>> 
>> Thanks!
>> 
>> -- 
>> 
>> 
>> Oliver A. Rojo
>> 
>> 
>> 
>> 
>> __
>> 
>> This email and any files transmitted with it are confidential 
>> and intended solely for the use of the individual or entity to 
>> whom they are addressed. If you have received this email in error 
>> please notify the system manager. Please note that any views or 
>> opinions presented in this email are solely those of the author 
>> and do not necessarily represent those of the company. Finally, 
>> the recipient should check this email and any attachments for 
>> the  presence of viruses. The company accepts no liability for any 
>> damage caused by any virus transmitted by this email.



JA> I am new to LDAP, so I am not sure what I might have possibly broken.
JA> The way I stopped that error from happening was to edit the schemas.
JA> I changed sn and cn from must to may in the Person directive in
JA> core.schema.

JA> Jennifer
JA>  

this is a "bug" in the vpopmail ldap schema (the schema is bad)
Their schema works until version 2.3 of OpenLdap.

Mathieu CHATEAU



RE: [vchkpw] vpopmail + ldap problem

2006-03-17 Thread Jennifer Abel



> -Original Message-
> From: Oliver A. Rojo [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 16, 2006 9:26 PM
> To: Vpopmail Mailing List
> Subject: [vchkpw] vpopmail + ldap problem
> 
> 
> Im having a problem with integrating vpopmail with ldap. I've already 
> installed everything...
> 
> What I did:
> 
> 1. I set these options on vldap.h before compile
> #define VLDAP_SERVER "localhost"
> #define VLDAP_PORT LDAP_PORT
> #define VLDAP_USER "cn=vpopmailuser, o=vpopmail"
> #define VLDAP_PASSWORD "vpoppasswd"
> #define VLDAP_BASEDN "o=vpopmail"
> 
> 2. My compile options
> --enable-auth-module=ldap
> 
> 3. Copied the file slapd.conf and qmailUser.schema from the vpopmail 
> ldap directory to ldap etc/ and schema/ directory
> 4. Successful creation of vpopmail database
> ldapadd -f vpopmail.ldif -x -w vpoppasswd 
> -D'cn=vpopmailuser,o=vpopmail'
> 
> The problem is when I add a virtual domain
> 
> /home/vpopmail/bin/vadddomain mydomain.com
> 
> I get an error saying:
> 
> Error: Object class violation (65)
> additional info: object class 'qmailUser' requires 
> attribute 'sn' Failed while attempting to add user to auth backend
> Error: (vadduser) no auth connection
> 
> What seems to be the problem here? Did I missed something?
> 
> Please help!
> 
> Thanks!
> 
> -- 
> 
> 
> Oliver A. Rojo
> 
> 
> 
> 
> __
> 
> This email and any files transmitted with it are confidential 
> and intended solely for the use of the individual or entity to 
> whom they are addressed. If you have received this email in error 
> please notify the system manager. Please note that any views or 
> opinions presented in this email are solely those of the author 
> and do not necessarily represent those of the company. Finally, 
> the recipient should check this email and any attachments for 
> the  presence of viruses. The company accepts no liability for any 
> damage caused by any virus transmitted by this email.



I am new to LDAP, so I am not sure what I might have possibly broken.
The way I stopped that error from happening was to edit the schemas.
I changed sn and cn from must to may in the Person directive in
core.schema.

Jennifer
 


Re: [vchkpw] vpopmail + ldap problem

2006-03-16 Thread Edy Sulai
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

You much fill out the sn field because in qmailUser object, sn is
required attribute. Make sure each object has their sn entry.

I had vpopmail setup with ldap before, but that was quite a long time
ago. As I remembered, a patch to vpopmail source was required. I'm not
sure on newer vpopmail version.


Edy

Oliver A. Rojo wrote:
> Im having a problem with integrating vpopmail with ldap. I've already
> installed everything...
> 
> What I did:
> 
> 1. I set these options on vldap.h before compile
> #define VLDAP_SERVER "localhost"
> #define VLDAP_PORT LDAP_PORT
> #define VLDAP_USER "cn=vpopmailuser, o=vpopmail"
> #define VLDAP_PASSWORD "vpoppasswd"
> #define VLDAP_BASEDN "o=vpopmail"
> 
> 2. My compile options
> --enable-auth-module=ldap
> 
> 3. Copied the file slapd.conf and qmailUser.schema from the vpopmail
> ldap directory to ldap etc/ and schema/ directory
> 4. Successful creation of vpopmail database
> ldapadd -f vpopmail.ldif -x -w vpoppasswd -D'cn=vpopmailuser,o=vpopmail'
> 
> The problem is when I add a virtual domain
> 
> /home/vpopmail/bin/vadddomain mydomain.com
> 
> I get an error saying:
> 
> Error: Object class violation (65)
>additional info: object class 'qmailUser' requires attribute 'sn'
> Failed while attempting to add user to auth backend
> Error: (vadduser) no auth connection
> 
> What seems to be the problem here? Did I missed something?
> 
> Please help!
> 
> Thanks!
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEGiR0zkzx2xIRtA0RAlicAJ0Y/YP5ReSMqzNtof8LEapTfhdJ/gCgj9EY
SFhwQEj7PVvsAnuQjJsXulQ=
=CLJJ
-END PGP SIGNATURE-


[vchkpw] vpopmail + ldap problem

2006-03-16 Thread Oliver A. Rojo
Im having a problem with integrating vpopmail with ldap. I've already 
installed everything...


What I did:

1. I set these options on vldap.h before compile
#define VLDAP_SERVER "localhost"
#define VLDAP_PORT LDAP_PORT
#define VLDAP_USER "cn=vpopmailuser, o=vpopmail"
#define VLDAP_PASSWORD "vpoppasswd"
#define VLDAP_BASEDN "o=vpopmail"

2. My compile options
--enable-auth-module=ldap

3. Copied the file slapd.conf and qmailUser.schema from the vpopmail 
ldap directory to ldap etc/ and schema/ directory

4. Successful creation of vpopmail database
ldapadd -f vpopmail.ldif -x -w vpoppasswd -D'cn=vpopmailuser,o=vpopmail'

The problem is when I add a virtual domain

/home/vpopmail/bin/vadddomain mydomain.com

I get an error saying:

Error: Object class violation (65)
   additional info: object class 'qmailUser' requires attribute 'sn'
Failed while attempting to add user to auth backend
Error: (vadduser) no auth connection

What seems to be the problem here? Did I missed something?

Please help!

Thanks!

--


Oliver A. Rojo




__

This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to 
whom they are addressed. If you have received this email in error 
please notify the system manager. Please note that any views or 
opinions presented in this email are solely those of the author 
and do not necessarily represent those of the company. Finally, 
the recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any 
damage caused by any virus transmitted by this email.